Вам необходимо отправить событие «ДОБРО ПОЖАЛОВАТЬ» как часть ввода запроса на вызов detect_intent()
. Это может выглядеть примерно так
import dialogflow
client = dialogflow.SessionsClient()
session = client.session_path('[PROJECT]', '[SESSION]')
event_input = dialogflow.types.EventInput(name='WELCOME', language_code='en-US')
query_input = dialogflow.types.QueryInput(event=event_input)
response = client.detect_intent(session=session, query_input=query_input)