Production CT: https://docs.google.com/document/d/1PiSKQYOoptpFmdIrUTS6eGKWckHgdAvrIagG2XRrpzU/edit?usp=sharing
Merchant CT: https://docs.google.com/document/d/1RsxMyASst8rB2D1pzNg_aRhHYvOCi6IJj8mqPQeGRCE/edit?usp=sharing
Dynamic Whatsapp Campaigns
To send out dynamic images in your WhatsApp transactional or promotional texts, there are four simple steps involved :
- Generating the URL for the dynamic image
- Converting image to JPEG format
- Plugging in the link on seller panel template in appropriate format
- Setting up the campaign on CleverTap
- Generating URL for the dynamic image
Users need to generate a dynamic link for their use case using the banner creation tool, the steps can be found in following SOP: https://wiki.mypaytm.com/display/MAP/Self+Serve+Banner+Creation+Tool+-+Walkthrough
- Converting Image to JPEG format
Currently, all the dynamic links generated by banner creation tool create the banner/image in the webp format. This format is not supported in WhatsApp and only images in JPEG/PNG format can be sent on whatsapp. In order to convert your dynamic image link from giving output in webp format to giving it in JPEG, simply replace webp by image.jpeg in the url of the image.
Sample link generated by tool : (Gives output in webp format, not supported in WhatsApp)
https://dynamic-image.paytm.com/banner/webp/?t=notify-1&amount=145&name=sameer
Modified Link : (Gives output in JPEG format, supported in WhatsApp)
https://dynamic-image.paytm.com/banner/image.jpeg/?t=notify-1&amount=145&name=sameer
- Plugging the link in Seller Panel template
Creation of templates on seller panel would continue to be the same as is done for any normal WhatsApp campaign currently. Detailed SOP can be found here. While creating templates in the seller panel, an additional change needs to be done. Parts of the URL that you want to use dynamically, have to be replaced by {{=VariableName}} before giving the link as an input in the panel.
For example:
Dynamic Image Link :
https://dynamic-image.paytm.com/banner/image.jpeg/?t=notify-1&amount=145&name=sameer
If we only want to use name as the dynamic parameter:
https://dynamic-image.paytm.com/banner/image.jpeg/?t=notify-1&amount=145&name={{=name}}
If we want to use both amount and name as dynamic parameters:
https://dynamic-image.paytm.com/banner/image.jpeg/?t=notify-1&amount={{=amount}}&name={{=name}}
- Setting up/Testing Campaigns
- While giving input in the webhook content section in CT while configuring promotional WA campaigns, please ensure that the dynamic parameters are correctly defined. Exact same name of the dynamic parameter should be mentioned in the json as we have defined in the dynamic linkSetting up/Testing Campaigns
- While creating the template on the WA Admin panel, a sample image from the dynamic link can be used. This can be done by downloading the image that dynamic link generates when values are inserted instead of the dynamic variables
- While configuring transactional messages, dynamic parameter’s value should be sent in dynamic params of the webhook request.
- For campaigns in which we intend to use the same variable parameter in the image and text, separate variable names should be created on both Whatsapp and Seller panel.
For example if the link used in the seller panel template mentions name as the dynamic parameter as below
https://dynamic-image.paytm.com/banner/image.jpeg/?t=notify-1&amount=145&name={{=name}}
Then in the dynamic params defined on CT, variable “name” should be used as visible in image below.
- Sample Campaign ID for reference: 1717507862
- The defined SOP for creating WA campaigns and testing them can be found here.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article