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.

 MandatoryDescriptionValues
typeYesThe type of input to be displayed to the visitorvideo
urlYesThe URL of the video that you want to send to the visitor{  
   "url":"youtube or mp4 URL",
}
textYesThe text to be displayed to the visitortext
subtitlesNoThe URL of the subtitle file(if any)

{  
   "subtitles":"subtitle URL",
}​

thumbnailNoThumbnail of the video that will be sent to the visitor

{  
   "thumbnail":"thumbnail URL",
}​

 

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.

 

Output

Sample code for a video on YouTube

Copied{
  "platform": "ZOHOSALESIQ",
  "action": "reply",
  "replies": [
    {  
   "type":"video",
   "text": "OnePlus Nord 2 (Blue, Green, Grey) - August 2021.
Price: ₹ 29,999 Only",
   "url": "https://youtu.be/L_sQXMjAasA",
    }
  ]
}

Sample code for videos on a server

Copied{
  "platform": "ZOHOSALESIQ",
  "action": "reply",
  "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"
    }
  ]
}