I am moving from dialogflow V1 to V2. Using the dialogflow python SDK I receive a DetectIntentResponse struct object that should have the information inside that I need.
After some time of trying to find documentation and trying to inspect this object I need your help. This object is so far out of my league ...
For documentation, thats how I get the response object:
import dialogflow_v2 as dialogflow
session_client = dialogflow.SessionsClient()
session = session_client.session_path(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)
How can I parse the response?
e.g. I get some parameter struct by using response.query_result.parameters
But how do I get this list?
Maybe I can transform the response into json (that would make things quite easy)?
I need dicts, lists, strings ... :)