Step One: How to create a campaign
Begin by creating a messaging workflow, which Customer.io automatically sends in response to user behavior.
1. Log into your Customer.io account.
2. Click on the Campaigns tab.
3. Click Create Campaign.
4. Enter a campaign name and click Create Campaign.
5. Select the They meet conditions trigger. Click on the trigger condition that meets the needs of your campaign.
6. Choose “Send and receive data” and drag it to the middle of your workflow.
7. Select the dropped block.
8. Click Add Request.
{ "api_key": "apikey", "to": “{{ customer.phone | remove_first: "+" }}”, "from": "sender", "text": "Hello {{customer.first_name}} , it's a message you requested {%raw%} {{link:id}} {%endraw%}" }
{ "api_key": "apikey", "to": “{{ customer.phone | remove_first: "+" }}”, "from": "sender", "text": "Hello {{customer.first_name}} , it's a message you requested" }
The following optional parameters may be included into request:
Callback will contain the following parameters:
client_ref – custom parameter up to 160 characters, will be present in response for Single creation, DLR to Webhook, and callback
9. Click Save Changes and Done.
10. Set the Sending Behavior to Send Automatically. Click Save.
11. Click Next and set all the following parameters you have defined.
Step Two: Create an Automated Broadcast Message
MessageWhiz enables you to automate sending a broadcast message that is triggered by an API to large groups of people.
1. Enter a broadcast name, select the Messages triggered via API type and click Create Broadcast.
2. Under the Define manually section, click Add attribute condition, type in a phone, select exists, and click the checkmark button. Click Save & Next.
3. Choose the “Send and receive data” and drag it to the middle of your workflow.
4. Select the dropped block.
5. Click Add Request.
{ "api_key": "apikey", "to": “{{ customer.phone | remove_first: "+" }}”, "from": "sender", "text": "Hello {{customer.first_name}} , it's a message you requested {%raw%} {{link:id}} {%endraw%}" }
{ "api_key": "apikey", "to": “{{ customer.phone | remove_first: "+" }}”, "from": "sender", "text": "Hello {{customer.first_name}} , it's a message you requested" }
There are some optional parameters which may be included into request, such as :
Callback will contain the following parameters:
Click Save Changes and Done.
7. Set the Sending behavior to Send Automatically. Click Save.
Step Three: Try it out!
8. Click Next.
9. Click Activate Broadcast.