Send Personalized Image Messages to Each Contact Using Image Templates
Personalizing notifications with unique images for each contact is easy with WANotifier! By uploading images to your website and linking them to your contacts, you can send personalized images to each contact. Follow these steps to get started.
Step 1: Upload Your Images
To send different images to each contact, you need to first upload all the images to your website or some place from where you can access the static file URLs. Create one image each for each of your contacts like this:
https://example.com/images/image-1.png
https://example.com/images/image-2.png
https://example.com/images/image-3.png
- and so on, depending on the number of contacts and images you have.
Make sure each image has its own unique link that you can use later. Allowed file formats: PNG and JPEG.
Important note: Dynamic URLs like Google Drive, Dropbox, Imgur etc won't work. The image file URLs need to be a static and publicly accessible.
Step 2: Prepare Your Contact List
If you want to send image message templates in bulk using a Marketing Notification, follow the steps provided below. If you want to send the images using Transactional Notification with our REST API, you can skip this step.
- Create a CSV or Excel file with your contacts data and add a new column for custom attribute
image_url
(or any name you prefer). In your sheet add the respective image URLs for each of your contacts under this column like this:
Contact Name | Phone Number | image_url |
---|---|---|
Mike | 555-555-5555 | |
John | 123-456-7890 | |
Sarah | 098-765-4321 |
- Once your sheet is ready, import it into WANotifier. During import, create a new attribute called image_url and map that with the image_url column from sheet.
This will import your contacts along with the respective image URLs.
Step 3: Set Up Your Message Template
Now create a new message template with Header Type as Media and Media type as Image. Then add a default placeholder image. Note that you need to only add a default image here for WhatsApp to review your template. This default image will be replaced with your unique images for each contact when sending Notification.
Step 4: Setup Your Notification
You can either send a bulk Marketing Notification or a Transactional one using our REST API. Let's look at how to do both.
1. Marketing Notification
- Create a new Notifications and select type as Marketing.
- Select your Contact List and Message Template that you want to send.
- In variable mapping section, For the Header Media > Image, select the
image_url
attribute under the Value column. - Map other text variables, if any.
- Save and send this Notification
Setting it up this way, Notification will be sent by pulling the unique image URL for each contact and replacing that with default image of the template.
2. Transactional Notification
- Create a new Notifications and select type as Transactional.
- Select your Message Template that you want to send.
- You'll get Webhook endpoint and request data with "header_image_url".
- Add your static image URL as value of this field for each request you send along with other details in the request.
This way each time you trigger the endpoint with unique image URL, the respective image will be sent to the contact.
What Happens if There’s No Image URL?
If a contact doesn’t have an image_url
specified in the sheet, WANotifier will use the default image from your message template. This ensures everyone still gets a notification, even without a custom image.
Updated on: 04/07/2025
Thank you!