Video
Send video files to visitors using this card. There are two types of videos that you can send.
1. Videos on YouTube
Send URLs of videos that are available on YouTube to your website visitors.
2. Videos on a server
Send URLs of videos that have been uploaded on a particular server, along with subtitles and thumbnails.
Mandatory | Description | Values | |
type | Yes | The type of input to be displayed to the visitor | video |
url | Yes | The URL of the video that you want to send to the visitor | { "url":"youtube or mp4 URL", } |
text | Yes | The text to be displayed to the visitor | text |
subtitles | No | The URL of the subtitle file(if any) | { |
thumbnail | No | Thumbnail of the video that will be sent to the visitor | { |
Note: Subtitles and Thumbnails are only applicable for sharing videos that have been uploaded to a server. You do not need to include them while sharing URLs of videos that are on YouTube.
Channel compatibility and limitations
Facebook Messenger:
- The card is supported on Facebook.
- When using this card, the user would get the URL of the video along with thumbnail, and clicking on it would redirect to the respective video player. But the video cannot be played inside the chat.
Instagram:
- The card is supported on Instagram.
- When using this card, the user would get the URL of the video. But the video cannot be played inside the chat.
WhatsApp:
- The card is supported on WhatsApp.
- When using this card, the user would get the URL of the video. But the video cannot be played inside the chat.
Sample code for videos on a server
Copied"channelData": {
"zohosalesiq": {
"replies": [
{
"type":"video",
"thumbnail":"https://zoho.com/images/bot.png",
"url": "https://zoho.com/videos/bots.mp4",
"autoplay" : true,
"text": "Bots to rule the Workplace",
"subtitles": "https://zoho.com/videos/bots.srt"
}
]
}
}
Sample code for a video on YouTube
Copied"channelData": {
"zohosalesiq": {
"replies": [
{
"type":"video",
"text": "OnePlus Nord 2 (Blue, Green, Grey) - August 2021.
Price: ₹ 29,999 Only",
"url": "https://youtu.be/L_sQXMjAasA",
"thumbnail":"https://zoho.com/images/bot.png",
"autoplay" : true,
}
]
}
}