Show picture cards in replies
Some answers are better seen than read. A visitor asking for hiking books wants to see the covers; one asking what the guest house looks like wants the rooms. Turn on reply cards for an agent and, when an answer draws on pages that have pictures, the agent can show them as cards beside its text: the cover of each book with its title and a link to its page, or a small gallery of the photos on the page it quoted.
The pictures come from your own content. Radioso keeps a copy of the images your website pages and WordPress posts name while it processes them, for every document whether or not an agent shows them, so turning the setting on takes effect on the next answer with no re-sync.
Turn reply cards on
Open the agent’s Profile, find Answers, and turn on Show cards in replies. You can also ask Ray to turn it on and apply the card it drafts, or set replyCardsEnabled over the API:
curl -sS -X PUT https://api.radioso.ai/api/v1/agents/$AGENT_ID \
-H "Authorization: Bearer $RADIOSO_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"replyCardsEnabled":true}'The setting is off on every agent until you turn it on, and it applies as soon as you change it. It is the one switch for every kind of card a reply can carry: the pictures of an answer’s documents, and the records a skill returns, such as the listings of a property search (Cards from a skill’s records). Cards appear where a client draws them: the website widget, the public chat link, Test Chat, WhatsApp (Cards on WhatsApp), and any client of the chat API that declares reply.blocks. Channels that carry text alone, such as voice and email, get the answer as text.
What the agent shows
The agent decides whether pictures help the answer and which ones to show, from the pictures of the documents the answer is grounded in. It writes a short caption for the cards and never invents a picture or an address: Radioso builds every card from a stored image, its document’s title and its document’s link.
- A document’s main picture. The picture a page names for itself, such as a book’s cover or a post’s featured image. When an answer draws on several documents, their main pictures form a row of cards, one per document.
- Pictures in the text. An image inside a page is tied to the passage around it, so the agent can show it only when the answer uses that passage. Several of them form a gallery.
An answer shows at most ten cards, and each document offers at most three of its pictures to one answer. An answer that says the content does not cover the question shows none.
Let visitors pick a card
Cards from your documents can be picked. When a reply asks the visitor to choose, such as which of three tours to hear more about, the agent lets them pick: each card gets a Select button. Picking one sends the card’s title as the visitor’s message, and the pick names the card’s page as the subject of the next reply, which answers from what the agent finds on it, in the language the visitor writes in. A reply is picked from once: after the pick, its other cards stay on screen and can no longer be picked. The pick comes back with the conversation’s history, for the visitor and in the Inbox.
The agent decides when a reply is a choice, the same way it decides which cards to show. Radioso reads the picked item from the reply it stored, never from what the browser sends, so a visitor can pick only a card the agent showed them. Each pick records a chat.item_selected analytics event with the conversation, the reply, the block and the item’s key.
A skill’s cards in an open conversation are shown, never picked: a pick there is answered from your documents, so it would never reach the skill. To let a visitor choose one of a skill’s records and act on it, show them from a routine step. A routine’s skill step searches, the chat step after it shows the results as cards with Select buttons, and the pick fills one of the routine’s values, which later steps, the operator notice and the hand-off name by the card’s title (Show a skill’s results as cards). Where cards are off or the channel draws none, that step lists the results in text and the visitor names the one they want.
Many sites name the same picture on every page, a banner or a logo. A picture that more than five documents in the workspace name as their main picture is treated as the site’s, never as any one document’s: the document’s next main picture stands in, or it shows none.
Cards on WhatsApp
On a number connected through the WhatsApp connector, the same cards go out as WhatsApp messages. Say a routine searches homes for a customer who writes in Italian and asks them to choose: they get a carousel of homes, each with its photo, its name and a Scegli button, and tapping one fills the routine’s value just as Select does in the widget.
| The cards | What the customer gets |
|---|---|
| 2 to 10 to pick from, all with a picture | A carousel, one button per card that picks it |
| 2 to 10 shown, all with a picture and a page | A carousel, one button per card that opens its page |
| Shown, all with a picture, some without a page (a gallery) | The reply’s text, then up to 4 pictures, each captioned with its title, then the rest as a numbered list |
| 1 with a picture | The reply’s text, then the picture; when it can be picked, one message with the picture and a button that picks it |
| To pick from, some without a picture | A list the customer opens to pick a row, each row the card’s title |
| Anything else, such as a skill’s records that are only shown and not all have a picture | The reply’s text, then the cards as a numbered list, each with its page |
The customer always sees the items. The reply’s text is the carousel’s or the button message’s own text when it fits in 1,024 characters. A longer reply goes first as a message of its own, and the cards follow under the caption the agent wrote for them. A card’s text is its title and subtitle, cut to WhatsApp’s 160 characters, and a list row’s title is cut to 24 characters with the whole title beneath it. Every cut falls between whole characters, so an emoji, a flag or an accented letter is never split.
WhatsApp has no words of its own for buttons, so the agent writes them with the reply, in the language the customer writes in and at most 20 characters each: one label for the button that picks a card and one for the button that opens a card’s page. When the reply leaves out the label its message needs, the customer gets the reply’s text followed by the cards as a numbered list, and they can answer with a number or a name where a routine step showed the cards.
Meta fetches each picture from Radioso’s own copy, at the address the widget loads it from, the moment the cards are sent. A skill’s pictures are copied after the reply is written, so Radioso copies them at once and waits up to 6 seconds for them before it sends the cards; when they are not ready by then, the customer gets the reply’s text and the numbered list instead.
When WhatsApp cannot take the cards for the moment (a server error, a timeout) and nothing of the reply has gone, Radioso sends the whole reply again later, cards and all. When WhatsApp refuses the cards, or reports afterwards that it could not deliver them (a picture it could not fetch, say), the customer gets the reply’s text, unless it already went, and the numbered list, once per reply. A late report sends the list only while the customer’s last message is less than 24 hours old and no newer reply has gone to them. These are all replies to a message the customer sent, inside WhatsApp’s 24-hour window: Radioso never sends cards on its own. Each outcome is counted in whatsapp_block_send_total.
A tap carries a short id that names the reply and the card, and Radioso reads the card from the reply it stored, as it does for a pick in the widget: the customer’s message is the card’s title. Tapping the same card twice within a few seconds is one pick. A tap on a card that can no longer be picked, such as a second card of a reply already picked from, is refused just as the widget refuses it: no turn runs, and the tap is a message the connector does not support, answered with your unsupported-message reply when you set one. So is a tap on a reply whose log Radioso no longer holds.
Which pictures Radioso keeps
| Content | Main picture | Pictures in the text |
|---|---|---|
| Crawled website pages | og:image, then twitter:image, then the JSON-LD image | Each <img> in the page’s main content, with its alt text and its <figcaption> |
| WordPress posts and products | The featured image, from the REST sync and from the Radioso Sync plugin 0.8.0 or later | — |
| Uploaded files and text added by hand | — | — |
Each picture goes through the same steps:
- Fetched from a public address, the way the crawler fetches a page: private and internal addresses are refused, every redirect is checked, and a fetch has 8 seconds and 15 MB.
- Read from its bytes. JPEG, PNG, WebP, GIF (its first frame) and AVIF are kept. SVG never is.
- Filtered. A picture under 200 pixels on its short side is an icon or a tracking pixel and is not kept. Each address is kept once per document, and a document keeps at most 12 pictures, in the order its content names them.
- Re-encoded to WebP 320 and 640 pixels wide, turned upright, with its EXIF and GPS data dropped. Visitors load Radioso’s copy, never your site’s.
Pictures are fetched after the document’s text is processed, by the same worker, so a page is searchable before its pictures are ready. A picture that cannot be fetched never holds up or fails its document.
Check what a document kept
Open the document from Knowledge. Images lists every picture its content names: a thumbnail of each one kept, and whether it is the document’s main picture or sits in its text. A picture that is still waiting reads Not fetched yet; one that was refused (too small, not a picture Radioso reads, too large, or at an address it may not fetch) reads Not kept. A main picture more than five documents share reads Site-wide, not shown: answers never show it as this document’s own.
When content changes
A re-crawl or a re-sync checks each picture again. One whose address and content did not change keeps its copy, asked about with the entity tag the site sent; one the content no longer names is deleted, copy and all; a new one is fetched. A page crawled before Radioso kept pictures gets its pictures on its next crawl, even when its text did not change.
Pictures belong to their document. Deleting a document, or a source with its documents, stops its pictures from being served at once, and the worker deletes their stored copies within a few minutes. Deleting the workspace deletes them with it. A conversation that showed a card keeps the card’s title and link, and its picture stops loading.
Common failure modes
- A page shows no main picture. Its
og:imagemay be an SVG, smaller than 200 pixels, or shared by more than five pages. Check the document’s Images. - A picture from the page never appears in answers. Pictures in the text are offered only with their passage. Ask about what the passage says, or give the page an
og:image. - Every answer shows the site logo. It is in the page’s main content, larger than 200 pixels. The banner rule covers main pictures only; move the logo out of
<main>or<article>. - WordPress pushes carry no picture. The plugin sends the featured image from version 0.8.0. A post without a featured image has no main picture.
- WhatsApp customers get a numbered list instead of cards. The pictures were not copied within 6 seconds, Meta could not fetch them, or the reply left out a button label. Meta fetches pictures from the backend’s public address, so a stack that Meta cannot reach from the internet always falls back to the list.
- A WhatsApp tap gets no reply. The card can no longer be picked: another card of the same reply was picked, or the conversation has since timed out. Set an unsupported-message reply on the connector to answer these taps.
Read next
- Reply blocks for the cards’ shape and the image address.
- Cards from a skill’s records for cards built from what an MCP tool returns.
- Show a skill’s results as cards for a routine step whose cards the visitor picks.
- Connectors and webhooks for connecting a WhatsApp number.
- Document processing for the worker that fetches pictures.
- WordPress connector for featured images.