(Optional) will be used to populate the messages address and localize any text.
Internal message object being built.
Adds an attachment to the message. See IAttachment for examples.
The attachment to add.
Adds an entity to the message.
Address routing information for the message. Save this field to external storage somewhere to later compose a proactive message to the user.
Hint for how clients should layout multiple attachments. The default value is 'list'.
Cards or images to send to the user.
Code indicating why the conversation has ended.
Composes a complex and randomized reply to the user.
DEPRECATED use compose() instead.
Structured objects passed to the bot or user.
Hint for clients letting them know if the bot is expecting further input or not. The built-in prompts will automatically populate this value for outgoing messages.
Local time when message was sent (set by client or bot, Ex: 2016-09-23T13:07:49.4714686-07:00.)
(Optional) time expressed as an ISO string. Defaults to new Date().toISOString()
.
Name of the operation to invoke or the name of the event.
Conditionally set the speak field of the message given a specified count.
Conditionally set the message text given a specified count.
Message in original/native format of the channel for incoming messages.
Reference to another conversation or message.
DEPRECATED use sourceEvent() instead.
DEPRECATED use local() instead.
DEPRECATED use ntext() instead.
DEPRECATED use text() instead.
Sets the speak field of the message as Speech Synthesis Markup Language (SSML).aspx). This will be spoken to the user on supported devices.
Optional suggested actions to send to the user. Suggested actions will be displayed only on the channels that support suggested actions.
Text to be displayed by as fall-back and as short description of the message content in e.g. list of recent conversations.
Sets the message text.
Format of text fields.
Language of the message.
Set by connectors service. Use localTimestamp() instead.
Returns the JSON for the message.
Open-ended value.
Combines an array of prompts into a single localized prompt and then optionally fills the prompts template slots with the passed in arguments.
Session object used to localize the individual prompt parts.
Array of prompt lists. Each entry in the array is another array of prompts which will be chosen at random. The combined output text will be space delimited.
(Optional) array of arguments used to format the output text when the prompt is a template.
Selects a prompt at random.
Array of prompts to choose from. When prompts is type string the prompt will simply be returned unmodified.
Creates a new Message builder.