In a chatbot conversation using dialogflow cx, Is there a way to make the bot speak first?

Hi,

I am building a chatbot using DialogFlow cx. The integrations I want to use are Dialogflow messenger and Google chat.

Need to have my bot to initiate the conversation before user types a message. It would something like welcome message as soon as user clicks on Bot icon. 

Hoping that anyone here can help with this(Both dialogflow messenger and google chat)

Thanks

Solved Solved
1 7 1,122
1 ACCEPTED SOLUTION

HI!

I have a 1 hour video that describes how to do that, it is in spansih but you can follow it enabling subtitles: https://www.youtube.com/watch?v=QOfYEfVTDr4

I explain that in this video in English: https://www.youtube.com/watch?v=vB4NSgSJLsE

Let me know if you need any further information!

Xavi

View solution in original post

7 REPLIES 7

Hi, for a custom integration, you can send a detectIntent request as soon as the users opens the window.

In Dialogflow Messenger you can call a function(https://cloud.google.com/dialogflow/cx/docs/concept/integration/dialogflow-messenger#sendquery) when the bubble is open (https://cloud.google.com/dialogflow/cx/docs/concept/integration/dialogflow-messenger#js-events)

With google Chat, instead of using the built-in solution, you can create a custom one and send a request to dialgoflow as soon as the chat is open too: https://github.com/GoogleCloudPlatform/dialogflow-integrations/tree/master/cx/google-chat

Best,

Xavi

Thanks for the help.

Regarding Google chat, could you please be more specific for the solution? For example, give an example or a screenshot.

I have currently followed this link(https://github.com/GoogleCloudPlatform/dialogflow-integrations/tree/master/cx/google-chat) to do the integration, but it doesn't seem to say how to customize it and send request to dialogflow cx.

Best

HI!

I have a 1 hour video that describes how to do that, it is in spansih but you can follow it enabling subtitles: https://www.youtube.com/watch?v=QOfYEfVTDr4

I explain that in this video in English: https://www.youtube.com/watch?v=vB4NSgSJLsE

Let me know if you need any further information!

Xavi

Thanks for the video, it really helps.

I would like to ask if the build-in solution can accomplish this? Or do we have to customize one?

Jing

I think the built-in solution does not support that

Can we use renderCustomText( Messenger javascript function)  for this purpose?

You can call the detectIntent method from that method yeah

Xavi