AI helps your business reply to customers faster and more accurately. Normally, AI agents send plain text replies—even if your business provides images, videos, or files, customers usually only get links. This isn’t the best experience.
With ChitChatbot.ai Rich Responses, your AI agent can automatically send interactive messages (buttons, carousels, quick replies, images, videos, and more) using only prompts.
👉 This feature works across all supported channels. ChitChatBot.ai automatically adapts each message to the channel in real time. (Note: some message types may not be supported on every channel.)
1. Instructing AI to Return Rich Messages
ChitChatBot.ai converts AI output into structured, rich messages. You only need to tell the AI to respond in a specific format.
Prompt Instruction
Add this to the end of your prompt:
You are an AI that must always return responses as valid JSON following the Messenger Messaging Platform schema.
Rules:
- The JSON must include a
"messages"
array. - Each item in
"messages"
must contain a"message"
object. - The
"message"
object must follow the Messenger Messaging Platform schema. - Supported types:
- Text
- Text with Buttons
- Quick Replies (
quick_replies
) - Images
- Videos
- Carousels (generic templates)
- Files
- Always return only valid JSON. No markdown, extra text, or explanations.
Examples
1. Multiple messages
{"messages":[{"message":{"text":"Hello world"}},{"message":{"text":"This is the second message","quick_replies":[]}}]}
2. Image
{"messages":[{"message":{"attachment":{"type":"image","payload":{"url":"<IMAGE_URL>"}}}}]}
3. Carousel
{"messages":[{"message":{"attachment":{"payload":{"elements":[{"title":"Card Title 1","subtitle":"Card Subtitle 1","image_url":"<IMAGE_URL>","buttons":[]},{"title":"Card Title 2","subtitle":"Card Subtitle 2","image_url":"<IMAGE_URL>","buttons":[]}],"template_type":"generic","image_aspect_ratio":"horizontal"},"type":"template"},"quick_replies":[]}}]}
4. Text with two buttons (open link + trigger flow)
{"messages":[{"message":{"attachment":{"payload":{"buttons":[{"title":"Open Website","type":"web_url","url":"<URL>"},{"title":"Send Flow","payload":"3344556611","type":"postback"}],"template_type":"button","text":"Hello world"},"type":"template"},"quick_replies":[]}}]}
5. Multiple messages with typing delay (4s)
{"messages":[{"message":{"text":"Hello world"}},4,{"message":{"text":"This is the second message","quick_replies":[]}}]}
2. Instructing AI to Return Rich Messages and Execute Actions
Beyond sending rich responses, your AI agent can perform actions while replying to customers—like tagging, updating fields, or assigning conversations.
Prompt Instruction
Add this to your prompt:
You are an AI that must always return responses as valid JSON following the Messenger Messaging Platform schema.
Rules:
- JSON can include
"messages"
,"actions"
, or both. "messages"
works the same way as above."actions"
is an array of objects, each defining an action.
Example: Messages + Actions
{"messages":[{"message":{"text":"Hello world","quick_replies":[]}}],"actions":[{"action":"add_tag","tag_name":"lead"},{"action":"set_field_value","field_name":"lead_value","value":"89"},{"action":"send_flow","flow_id":"5854739484"}]}
3. Available Actions
You can use the following actions in your JSON:
- Add tag
{"action":"add_tag","tag_name":"<tag_name>"}
- Remove tag
{"action":"remove_tag","tag_name":"<tag_name>"}
- Set custom field value
{"action":"set_field_value","field_name":"<field_name>","value":"<value>"}
- Clear custom field value
{"action":"unset_field_value","field_name":"<field_name>"}
- Send conversation flow
{"action":"send_flow","flow_id":"<flow_id>"}
- Transfer conversation to human
{"action":"transfer_conversation_to","value":"human"}
- Assign conversation to admin
{"action":"assign_conversation","admin_id":"<admin_id>"}
- Unassign conversation from admin
{"action":"unassign_conversation"}
✅ With this setup, your AI agent can now send interactive messages and perform business actions—creating a seamless, automated customer experience.