Dialogflow Quick Replies Not Showing on Your Website: Fixes
Dialogflow quick replies not showing on your website is normal, because web widgets don't render the quickReplies message type that Telegram and Messenger use. Send a richContent chips payload through Dialogflow Messenger, plus untagged default text messages, and the chips will appear.
- The same fulfillmentMessages JSON is rendered by each channel's own rules, so a bot that works in Telegram can look broken on the web.
- The legacy Web Demo iframe is text-only, and Dialogflow Messenger (df-messenger) is the web widget that renders chips and other rich content.
- Several strings inside one text array are variants and only one is shown, so use separate text objects to get separate bubbles.
- Web chips need a custom payload with a doubly nested richContent array: [[{type: chips}]].
- One Flask webhook can serve Telegram, Messenger and web by sending platform-tagged quickReplies, untagged text and a richContent payload together.
Why are Dialogflow quick replies not showing on my website?
Dialogflow does not produce one universal visual response. Your agent returns a list of typed messages (text, quickReplies, card, image, payload), and each integration draws only the types it knows. Telegram and Facebook Messenger natively support the quickReplies type, so they show buttons. A web widget that has no renderer for quickReplies silently skips it, which is why Dialogflow quick replies are not showing on your page.
The Dialogflow console simulator looks fine because it is a debugging view that displays every message type. A correct console preview proves the agent is configured properly. It does not prove that your website can draw the result.
So the widget is usually not broken. It is receiving the right data and ignoring the parts it cannot render. The fix is to send the format that widget understands, alongside the formats other channels need.
Which web widget am I using?
Two different widgets are called the web integration, and they behave very differently. Check your page source to tell them apart.
| Widget | How it appears in your HTML | Rich responses |
|---|---|---|
| Legacy Web Demo | An <iframe> pointing at bot.dialogflow.com/... (the Web Demo integration) | Text only, very limited. Legacy and no longer the recommended path, so confirm its current status in the console before building on it. |
| Dialogflow Messenger | A <df-messenger> element plus a script from gstatic.com/dialogflow-console/fast/messenger/ | Supports richContent: chips, buttons, info cards, images, lists, accordions, descriptions |
<script src="https://www.gstatic.com/dialogflow-console/fast/messenger/bootstrap.js?v=1"></script>
<df-messenger
intent="WELCOME"
chat-title="Support bot"
agent-id="YOUR-AGENT-ID"
language-code="en">
</df-messenger>What does the platform tag do, and why does web get nothing?
Each entry in fulfillmentMessages can carry a platform field such as TELEGRAM or FACEBOOK. A tagged entry is shown only on that channel. An entry with no platform is the DEFAULT and is available to everyone, including web.
The common mistake is a webhook that returns only platform-tagged entries. Telegram and Messenger get their messages, and the web widget has nothing eligible, so it falls back to fulfillmentText or shows nothing.
Keep the rule simple: always include untagged text messages, then add platform-specific extras on top.
{
"fulfillmentMessages": [
{"platform": "TELEGRAM", "quickReplies": {"title": "Pick one", "quickReplies": ["Yes", "No"]}}
]
}How do I show multiple bubbles instead of one?
Several strings inside a single text array are not several messages. They are variants of one message, and Dialogflow picks one at random. That is why a multi-line answer can appear as only one line.
To get separate bubbles, return separate objects, each with its own text array holding one string.
// Wrong: one bubble, one random variant
{"fulfillmentMessages": [
{"text": {"text": ["Hi!", "How can I help?"]}}
]}
// Right: two bubbles
{"fulfillmentMessages": [
{"text": {"text": ["Hi!"]}},
{"text": {"text": ["How can I help?"]}}
]}How do I send chips that work in Dialogflow Messenger?
Dialogflow Messenger renders a custom payload with a richContent key. The structure is an array of arrays: the outer array is the whole response, and each inner array is one group of rich elements. Using a single array is the most common reason chips do not appear.
Chips go in an element of type chips, with an options list. Each option takes a text and can also take an image or a link.
Other element types use the same nesting: info (title, subtitle, image, actionLink), button (icon, text, link or event), image (rawUrl, accessibilityText), list (title, subtitle, event), accordion (title, subtitle, text) and description (title, text array).
{
"payload": {
"richContent": [
[
{
"type": "chips",
"options": [
{"text": "Yes"},
{"text": "No"},
{"text": "Docs", "link": "https://example.com/help"}
]
},
{
"type": "info",
"title": "Opening hours",
"subtitle": "Mon-Fri 9:00-17:00"
}
]
]
}
} What does a single webhook for every channel look like?
Dialogflow Messenger ignores platform-tagged messages and unsupported types, then shows the default text and the richContent payload. Telegram and Messenger show their own tagged quickReplies. So you can send all of it in one response and every channel picks what it understands.
The Flask example below returns two text bubbles, a TELEGRAM and a FACEBOOK quickReplies entry, and the chips payload for web. It sends proper JSON with an application/json content type. It also reads originalDetectIntentRequest.source, which you can use to branch if you want a leaner response per channel. Treat a missing or unfamiliar source as web.
from flask import Flask, request, jsonify
app = Flask(__name__)
def text(msg):
return {"text": {"text": [msg]}}
@app.route("/webhook", methods=["POST"])
def webhook():
req = request.get_json(silent=True) or {}
source = (req.get("originalDetectIntentRequest") or {}).get("source", "")
options = ["Yes", "No"]
messages = [
text("Thanks, I found your order."),
text("Do you want the tracking link?"),
{"platform": "TELEGRAM",
"quickReplies": {"title": "Tracking link?", "quickReplies": options}},
{"platform": "FACEBOOK",
"quickReplies": {"title": "Tracking link?", "quickReplies": options}},
{"payload": {"richContent": [[
{"type": "chips", "options": [{"text": o} for o in options]}
]]}},
]
body = {
"fulfillmentText": "Thanks, I found your order. Do you want the tracking link?",
"fulfillmentMessages": messages,
}
resp = jsonify(body) # sets Content-Type: application/json
return resp
if __name__ == "__main__":
app.run(port=8080)How do I debug it, and when should I build a custom front end?
Work from the data outward. Confirm what Dialogflow returned, then what the browser received, then what the widget drew.
Remember that a chip click sends its text to the agent as a normal user query. A chip labelled Yes needs an intent or training phrase that matches Yes. Chips cannot carry hidden values. If you need one, use an event (a button with an event) or store the state in a context, then read it in the webhook.
If you need hidden chip values, custom styling, or exact control over what is drawn, call detectIntent yourself using the v2 REST API or a client library. Then render fulfillmentMessages in your own code: loop over the messages, draw text as bubbles, and draw quickReplies as buttons that send their label (or a session parameter) back. You then control every type, including quickReplies, directly.
Dialogflow CX differs in structure. Its messenger also reads richContent payloads, but responses come as responseMessages rather than fulfillmentMessages, and the platform-tag model is replaced by channel handling in the agent. Do not copy ES JSON into CX unchanged.
| Symptom | Likely cause | Fix |
|---|---|---|
| Only first message shows | Several strings in one text array (variants) | Use one text object per bubble |
| Chips missing on web, fine in Telegram | quickReplies is not rendered by web widgets | Add a richContent chips payload |
| Nothing shows on web | Only platform-tagged messages sent | Add untagged text messages |
| Payload ignored | richContent is a single array, not [[...]] | Use the double nested array |
| Static reply instead of webhook reply | Webhook error or timeout (limit 5 seconds), or webhook not enabled for the intent | Fix the error, speed it up, enable fulfillment on the intent |
| Whole response rejected | Trailing comma or invalid JSON, or v1 field names used with v2 | Validate the JSON and use the v2 format |
- Open the console Diagnostic info (or the raw interaction log) for the failing turn and check the webhook status and latency.
- Open the Raw tab in the simulator and compare the fulfillmentMessages with your intended JSON.
- In the browser, listen for the df-response-received event on the df-messenger element and inspect event.detail.raw to see what the widget received.
- Check your webhook logs for exceptions, non-200 responses and anything near the 5 second limit.
- Confirm the intent has Enable webhook call for this intent turned on.
Common questions
Why does my Dialogflow web demo show only the first message?
The legacy Web Demo is text-only, and it also shows a single text message. If your replies sit in one text array, they are variants and only one is chosen. Split them into separate text objects, or move to Dialogflow Messenger.
Do I need to remove the Telegram and Facebook entries for the web?
No. Dialogflow Messenger ignores platform-tagged messages and shows the untagged text and richContent. Keeping them lets the same response work on all channels.
Can a chip send a value different from its label?
No. A chip click sends its visible text as the user query. For hidden data, use a button with an event, set a context, or build a custom front end.
Why does the console show quick replies but my site does not?
The console simulator displays every message type to help you debug. Your website widget renders only the types it supports, and web widgets do not render quickReplies.
Why does the webhook work in the console but the web reply is the static text?
The webhook may fail or exceed the 5 second limit for the website request, or return invalid JSON, so Dialogflow falls back to the static response. Check Diagnostic info for the webhook status.