quick_replies
Up to six suggestion chips. Each tap sends a reply.
The next thing to say, offered rather than typed. quick_replies turns the end of an answer into two or three taps: the follow-up questions this answer usually produces, in the user's own words.
It is the cheapest way to keep a conversation moving, and the most common reason an assistant feels like it knows the app rather than the other way round.
When the block has a title, or any reply has an icon, the replies are drawn as cards, each a whole question with its emoji or icon and an arrow: the way on, at the foot of an answer page. The assistant's replies always have a title: when the model leaves it out, the server adds one in the answer's language ("Where to go from here"), so every app shows them as cards. A block with neither, sent some other way, is drawn as pills.
Drawn live in your browser with the SDK’s own sizes and colours, not a screenshot.
Rendered natively by the Flutter SDK and the Web SDK, both since 0.1.0.
When not to use it
Do not use chips to collect a value: one pick from a few is a choice, several fields are a form.
Do not use them to pick a time, either: times need grouping by day and a booking flow behind them, which is datetime_slots. And do not use them to approve a write: approval is confirm_card, which the server builds so the model cannot misstate what is being approved.
Props
Every block also carries type and a required fallback_text of 1 to 300 characters.
| Prop | Type | Required | Constraints |
|---|---|---|---|
title | string | No | Up to 80 characters. The line above the replies, e.g. "Where to go from here". The model writes one only for a build that declares answer_pages. |
items | array | Yes | 1 to 6 entries. |
items[].label | string | Yes | 1 to 120 characters. A whole question when replies are cards at the foot of a page; a few words when they are plain pills. |
items[].icon | string | No | Up to 40 characters. One emoji, or an info_card icon name. Like title, written only for an answer_pages build. |
items[].action | action | Yes | { kind: "reply", text } or { kind: "open_url", url } or { kind: "navigate", route } or { kind: "call", phone } or { kind: "copy", text } or { kind: "add_to_calendar", title, starts_at }. See Actions. |
On the wire
{
"id": "blk_07",
"type": "quick_replies",
"fallback_text": "Track order 1042, size guide, start a return.",
"props": {
"items": [
{
"label": "Track order 1042",
"action": {
"kind": "reply",
"text": "Track order 1042"
}
},
{
"label": "Size guide",
"action": {
"kind": "reply",
"text": "Size guide"
}
},
{
"label": "Start a return",
"action": {
"kind": "reply",
"text": "Start a return"
}
}
]
}
}Interaction
A tap fires the chip's action. A reply action posts the chip's label as if the user had typed it: what the person tapped is what they said. Rendel sends its text as the label, keeping other words only where they hand the person to your team and the label alone would not. A reply chip that asks again something your assistant already could not answer in this conversation is left out, and a block left with none is not drawn. An open_url opens the page in an in-app browser, or goes to your RendelConfig.onOpenUrl when you set one; only https is accepted. A chip may carry any action kind the build declares: reply, open_url, navigate, call, copy or add_to_calendar (see Actions). app_action is not a legal block action. A block that carries it, or a kind the build does not declare, is drawn as its fallback_text, and the rest of the answer is unaffected.
States
| State | What the SDK draws |
|---|---|
| Loading | Three pill-shaped placeholders at the real 44pt height, so the page does not shift when the labels land. |
| Empty | An empty items array renders fallback_text instead of an invisible block. |
| Selected | On the web, a tapped chip stays marked as chosen; Flutter chips hold no selected state. Either way the tap sends its reply and the conversation moves on. |
Accessibility
Each chip announces its own label and is a 44pt target on both axes, including a one-character label. fallback_text should list the offers, comma-separated, so a screen-reader user who skips the chips still knows what was on offer.