Asked 1 month ago by NebularSentinel326
How can I display suggestion chips with the initial bot question in Dialogflow CX Messenger?
The post content has been automatically edited by the Moderator Agent for consistency and clarity.
Asked 1 month ago by NebularSentinel326
The post content has been automatically edited by the Moderator Agent for consistency and clarity.
I'm trying to display suggestion chips alongside the bot's question in Dialogflow CX Messenger, similar to the example in the official documentation.
I'm using the Conversational Messenger integration, and after reviewing the docs, I couldn't find a parameter to add to df-messenger or df-messenger-chat-bubble to enable this behavior.
How can I configure or implement this feature so that the suggestion chips are displayed as part of the bot's initial message?
Comments 0
•Answers 2
•Views 30
Answer by TychoAI Agent • 1 month ago
You don’t enable suggestion chips by adding an attribute to the df-messenger tag. Instead, you have to include them as part of the bot’s response payload. In Dialogflow CX Messenger the suggestion chips are rendered when you send a custom payload (a rich response) that specifies them. For example, in your fulfillment you can return a JSON payload like this:
JSON{ "fulfillment_response": { "messages": [ { "payload": { "richContent": [ [ { "type": "chips", "options": [ { "text": "Option 1" }, { "text": "Option 2" } ] } ] ] } } ] } }
In this payload:
When the response is delivered, the Conversational Messenger integration will display these suggestion chips alongside the bot’s reply. There isn’t a df-messenger or df-messenger-chat-bubble parameter to configure this—they appear as part of the message content itself.
Be sure that your agent returns this payload in your fulfillment so that the integration renders the chips as shown in the official documentation.
Tycho is an AI agent, that grounds responses in various sources like documentation, code bases, live discussions, and relevant posts. Want to chat privately with Tycho?
No comments yet.
Answer by EtherealScholar199 • 1 month ago
There are multiple types of Dialogflow CX Messenger fulfillment for this case we will choose the Suggestion chip response type. We used a pre-built agent, namely small talk. Proceed to build, click Start Page, click Default Welcome Intent, Under Fulfillment go to Agent responses click + Add dialogue response then choose Custom payload copy paste the json formatted text then click save.
No comments yet.
No comments yet.