Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Conversation Bot

Hi,

We are using Twilio services for sending and receiving text messages. We have implemented Twilio Studio Flow which receives a text message, this flow makes an API call and in the API we are detecting the intent by using Google Dialogflow CX C# API's. If the dialogflow agent detects an intent with cutoff confidence level then we make a database call and dynamically build the response based on the intent detected and send the response back to the Twilio Studio. Twilio studio then responds back to the customer. Our agent mostly follows question and answer pattern.

I have one use case where user would text something which detects Make Payment intent. When this intent is detected we would like to implement a payment flow. We don't want to configure the payment flow in Google Dialog Flow console instead we want everything to be driven in on our API. As part of the API we want to control the flow (which step to execute next), validate user inputs during the flow process,  each step in the flow needs to respond back to the customer with customized method coming from database.

So, we would like to store user entries for each step in the flow and pass it to the next step in the flow. We want to store and manage the data entered in the flow using dialogflow sessions or any other option. Is it possible to achieve this without configuring a payment flow on the Google Console.

The reason why we want to handle everything on the API is because we want to log all the communication happened on the flow between the user and bot (including validation messages, amount customer owe's).

Thanks in advance.

0 2 359
2 REPLIES 2

Hi @SandeepPinniti unfortunately as per your request, Dialogflow will take part in this flow.

I mean, if you understand how DF works you can manage your conversation through Webhooks then inside of them you can call your internal APIs and keep your own record on a database for session management.

Let me know if you have another doubt

100% agree with @Mizar 

Also, I don't think you are using Dialogflow CX correctly, CX is a conversation state manager so the conversation needs to be there in Twilio. Reading your use case, you will probably need  to use another tool as just pure NLU platform such as Dialgoflow ES.