If you haven't already first review the general overview of template campaigns that can be triggered using the campaign execute method:
You will also find more details on how to setup API triggered campaigns with message content on the platform here:
The principles are the same for SMS and email. First you create your template campaign as outlined in the docs with necessary placeholders for dynamically changing content. You need to have a transactional template on the platform with placeholders for your variable params. To illustrate how this is used below is a classic transactional example of sending a gate update to an airline customer via an SMS message.

URL = "https://external-api.xtremepush.com/api/external/execute/campaign" POST_DATA ={"apptoken":"APP_TOKEN", "id":"CAMPAIGN_ID", "params":{"flight_number": "EI105", "time":"10:30", "gate_number": "B100" }, "target_by":"user_id", "target":["CUSTOMER_ID"], }
If you want to construct the full content of message on your backend you can just place single params in the various content fields on the template:
The same principle outlined above for SMS can be applied to email, the main difference with email is the potential to have more complex content in the body of the email such as a list of personalised product recommendations with images etc.. There are examples of the more dynamic content that can be added to emails using this approach in the following knowledge base articles:
- https://support.xtremepush.com/hc/en-us/articles/115005420645-Dynamic-Programmable-Content-in-Email-Templates
- https://support.xtremepush.com/hc/en-us/articles/360000220358-Working-with-custom-HTML
Comments
0 comments
Article is closed for comments.