How To Add Parameters To Dialogflow Event In Python
I'm trying to send an EventInput using python dialogflow client v2 (https://dialogflow.com/docs/reference/api-v2/rest/v2beta1/projects.agent.sessions/detectIntent#eventinput) but c
Solution 1:
found the solution. parameters
needs to be a google.protobuf.Struct so something like below works
from google.protobuf import struct_pb2
parameters = struct_pb2.Struct()
parameters["result_guid"] = "49A8608C-4854-4964-81C3-0A75F912B994"
event_input = dialogflow.types.EventInput(name=event_name, parameters=parameters, language_code=language_code)
Post a Comment for "How To Add Parameters To Dialogflow Event In Python"