Skip to content

Instantly share code, notes, and snippets.

@hitherejoe hitherejoe/intent_text.py Secret
Created Feb 10, 2019

Embed
What would you like to do?
import dialogflow_v2 as dialogflow
session_client = dialogflow.SessionsClient()
session = session_client.session_path("google_project_id", session_id)
text_input = dialogflow.types.TextInput(text=text, language_code=language_code)
query_input = dialogflow.types.QueryInput(text=text_input)
response = session_client.detect_intent(session=session, query_input=query_input)
self.lastResponse = response.query_result.fulfillment_text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.