Syntax
say: TSayFunction
Alias: output
Description
Sends a message to the user. Parameters:TSayFunction
has the following parameters:
- text — the message to send. Can be an empty string
""
ornull
if you’re only sending structured content. - data — a structured content payload containing rich UI elements like buttons, carousels, quick replies, and images. This parameter is optional.
- settings — a configuration object related to a handover to a human agent, such as whether the message can be forwarded and the output destination (user, human agent, or both). This parameter is optional.
TSayFunction
implementation.
Types
Structured Content Types
Supporting Types
Example
Send a Simple Text Message
Send a Simple Text Message
Send Structured Content: Text and Quick Replies
Send Structured Content: Text and Quick Replies
Send Structured Content: Carousel
Send Structured Content: Carousel
Send a Message Only to the Human Agent
Send a Message Only to the Human Agent