say
followed by the message type you want to send. say "string"
. This component supports Markdown on channels that allow text formatting.number
milliseconds before sending the next messagenumber
millisecondsstring
as the URL. Optionally, the text and title parameters can provide a way to make "nicer" links, where supported.string
string
. Supports Youtube, Dailymotion and Vimeo URLs, or mp4 and ogg.string
. Supports Soundcloud embed links, or mp3, wav and ogg.string
inside a clickable buttonstring
. Title parameter is optional.Carousel
component (on supported channels). Only title is mandatory.Card
components in a carousel (on supported channels). The cards parameter is mandatory.button_type="quick_reply"
parameter to the Question
component to provide a different type of buttons.hold
keyword, the chatbot will remember its position in the conversation and simply wait until the user says something, then continue from there.event
object is a complex structure which contains a lot more than just the string that was typed by the user. It contains a lot of information that is used by the CSML interpreter, for example the custom button payload to match a list of choices offered to the user. This makes it easy to handle both a click on a "OK" button or the user typing the word "yes".start
event
, is made available, with the content of the user request. When no event is available, event is set to NULL
.say
payload is 16KB. However, each channel will have different limitations depending on the type of component. For a Text
component for example, most channels are limited to a few hundred characters.