video
To send a video to a chat, use the video
reply type.
tip
You can also use the equivalent
video
DSL tag or the $reactions.video
method.If a channel supports video preview, a user will be able to watch the video in the channel’s chat without following a link. Otherwise only the link to the video will be displayed in the chat.
Properties
Property | Type | Required | Description |
---|---|---|---|
videoUrl | String | Yes | Video URL. |
videoName | String | No | Video caption. Can be aliased as text or caption . |
markup | String | No | Markup applied to video caption (available for the chat widget, Chat API, and Telegram). Acceptable values are html and plain (default value is plain ). |
Syntax
{
"type": "video",
"videoUrl": "https://example.com/video.mp4",
"text": "<b>Video description</b>",
"markup": "html"
}
Channel restrictions
video
is not supported in voice assistants and in the phone channel.
How to use
state: HowTo
a: Watch our tutorial and learn how to create your first chatbot and publish it into a channel.
script:
$response.replies = $response.replies || [];
$response.replies.push({
"type": "video",
"videoUrl": "https://youtube.com/watch?v=QWERty123"
});