TestMessage
- authorType: "bot" or "user"enumrequired
userfor the visitor,botfor everything else the web chat shows: the bot, and also an agent or the system should either write in a test conversation. - buttonsType:requiredProperties: 2
The buttons it offers, empty when it offers none. A WhatsApp list's rows are its buttons too, each with the row's id as its payload. On a WhatsApp bot they are there to read: a tap is refused, so type the button's text instead.
- createdType:
_at requiredA moment, in UTC, written as
YYYY-MM-DDTHH:MM:SS. It carries no offset and no fraction of a second, so a client that reads it as local time is wrong by whatever its own offset is. - idType: stringrequired
The message, to pass as
after. A greeting message is named after its place in the greeting (welcome-0); every other one carries the id it is stored with. The message a reply to a WhatsApp bot answers carries the id of the last message before it instead. - textType: string | nullrequired
What it says in plain text, or the question a set of buttons asks.
nullfor a message carrying none, such as an image without a caption. - typeType: stringrequired
The kind of message the runtime sent, as it names it, such as
textordialog, and on a WhatsApp bot alsotemplate(the testing template a start sends) orwhatsapp_list. - urlType: string | nullrequired
Where the file it carries is, for an image, a video, an audio or a document;
nullotherwise.