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

How to use "openMinChat()" function in dialogflow cx messenger?

Hi chatbot developers, Can you please help me to use openMinChat() function with an small example or resource?

https://cloud.google.com/dialogflow/cx/docs/concept/integration/dialogflow-messenger/javascript-func...

Thank you

0 1 169
1 REPLY 1

Hi,

I will suggest trying the code sample that exists in the documentation. This method takes the chat widget and opens it in a minimized version:

const dfMessengerChatBubble = document.querySelector('df-messenger-chat-bubble');
dfMessengerChatBubble
.openMinChat({
  anchor
: 'top-left'
});