How to use Google Drive to host media files for templates

Helpdesk Updated by Helpdesk

WATI allows you to create template messages containing various types of media including Images (jpeg, png), Videos (mp4), and Documents (pdf). These files can be hosted on any file-sharing platform.

This article is about how files hosted on Google Drive can be used in templates.

  1. Upload the media to Google Drive and set access to Anyone with the link
  2. Go to WATI Dashboard --> Broadcast --> Template messages. Click the New Template Message button
  3. Select Header as Media, and choose type as "Document".
    Here, we have to modify the URL of our file to be accepted into our template.
    If you paste the link from Step 1 directly, it results in an error message: Please input valid image document/video url
    1. To resolve this, copy the Document ID from the URL in step 1: https://drive.google.com/file/d/1NeZ_SH3_QGmZqo2Q4bq7JRf06xR3hbro/view?usp=sharing
    2. Paste the Document ID in the following format:
      https://drive.google.com/uc?id=<Document_ID>&.<file extension>
    3. The end URL will work when pasted in the Media Header URL section. The URL will look something like this if you are hosting a pdf file:
      https://drive.google.com/uc?id=1NeZ_SH3_QGmZqo2Q4bq7JRf06xR3hbro&.pdf
  4. Fill in other information. You can find the detailed steps to create a template message in: How do I create a template message
  5. Click "Save as Draft", then Submit the template, and wait for it to be approved. If it is approved you can start using it as many times as you want. If it is rejected Troubleshoot template message rejection

How did we do?

Contact