DialogFlow+Twilio script

50 views
Skip to first unread message

belhadj asma

unread,
Nov 17, 2020, 12:02:31 PM11/17/20
to Dialogflow Essentials Edition users
I integrated dialogflow with twilio and it works great, now I want to know how to send the customer's address from dialogflow to twilio  and how can i know this adresse is for which call (phone number) for running my script 
thx

Monica (Google Cloud Platform)

unread,
Dec 24, 2020, 1:01:02 PM12/24/20
to Dialogflow Essentials Edition users
As per documentation each session is determined uniquely by a session ID generated by your system. You can use the “CallSid” parameter or set a participantIdentity  for the incoming call and the phone number can be found in the Twilio parameter “From”. The customer’s address can be collected during the conversation into an entity. You can further check this video on entities.

For each conversational turn, your service sends end-user expressions to Dialogflow by calling the detectIntent or streamingDetectIntent method of the Sessions type. Dialogflow responds with information about the matched intent, the action, the parameters, and the response defined for the intent. You can collect the needed information (the address) from the generated JSON file for each session ID.
Reply all
Reply to author
Forward
0 new messages