TestMessage

  • user for the visitor, bot for everything else the web chat shows: the bot, and also an agent or the system should either write in a test conversation.

  • 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.

    Properties: 2
  • A 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.

  • 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.

  • What it says in plain text, or the question a set of buttons asks. null for a message carrying none, such as an image without a caption.

  • The kind of message the runtime sent, as it names it, such as text or dialog, and on a WhatsApp bot also template (the testing template a start sends) or whatsapp_list.

  • Where the file it carries is, for an image, a video, an audio or a document; null otherwise.