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
1 Like
xavidop
October 26, 2023, 10:42am
2
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
xavidop
October 27, 2023, 10:12am
4
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
1 Like
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
1 Like
I think the built-in solution does not support that
1 Like
Can we use renderCustomText( Messenger javascript function) for this purpose?
xavidop
December 30, 2023, 5:06pm
8
You can call the detectIntent method from that method yeah
Xavi