Shortcode: ^file()

Add a text/pdf file to your response.

^file(url)

Sample Value Description
url "https://fakeuploadbucket.com/myaccount/recipe-tuesday.pdf" Required. A URL to the file you want your bot to respond with. Surround with double quotes.

Example Usage

+ [*] (recipes|cookbook) [*]
- Here's tomorrow's recipe for Braised Beef & Potatoes: ^file("https://fakeuploadbucket.com/myaccount/recipe-tuesday.pdf")

Details

Ensure that the URL you are using is actually a URL to a file (with a valid extension) and not a website that contains an file.
Platform Notes How It Looks
Facebook
  • Facebook embeds the file as a downloadable link.
  • Facebook recommends files of xxx size.
Slack
  • Slack does not natively unfurl files, so they are appended as links to the attachment.
SMS/Twilio
  • Twilio only supports sending over a limited number of MIME types for text files. See the full list.
  • If a requested MIME type is not supported, we recommend sending the video url within a ^link() shortcode instead.