Attachments

The Zobot can send attachments to visitors during a chat just like how an agent does.

AttributeMandatoryDescriptionValues
typeYesThe type of the input to be dispalyed to the visitorfile
textYesText to be shown along with the attachment

{

"Required text"

},
urlYesDownloadable URL from which the file will be downloaded by the bot to be shared to the visitor

{

"$url"

}

headerNoHeaders that have to be sent while downloading the file from the url

"headers":

{

"Authorization":"Zoho-oauthtoken xxxxx"

},

 

Channel compatibility and limitations

  

Pro Tip: Facebook messenger, Instagram, and WhatsApp channels do not support this card. However, you can handle it differently using the channel value in the visitor map. For example, provide an if condition statement (if the visitor's channel is Facebook or Instagram) and handle this case alternatively. 

Output

Sample code

Copied"user_defined": {
  "zohosalesiq": {
    "replies": [
    {
      "type": "file",
      "text": "PFA",
      "url" : "http://zylker.com/files/reports.pdf"
     }
  ]
  }
}