Suggested Answers

Suggestion Buttons

The MarkdownComponentSuggestions component allows you to add interactive suggestion buttons to your messages. These buttons provide users with quick response options.

Syntax

Parameters

  • suggestions: A JSON array containing suggestion objects

  • Each suggestion object must have:

    • label: The text displayed on the button

    • value: The text that will be sent to the chat when the button is clicked

Example

This will render three buttons:

  • "Yes, continue" - sends "Please continue with the explanation"

  • "No, stop" - sends "I understand, no need to continue"

  • "More details" - sends "Can you provide more details about this topic?"

You can ask the agent to fill in those components dynamically based on context.

Last updated