Before proceeding to this, we would recommend you to check how to create connector campaigns. You can use connectors to send SMS via any SMS Service providers. In this example we will explain how to send SMS using Gupshup SMS API.
Before creating the campaign, ensure that you have UserId and Password for SMS Gupshup Account. These are the credentials to login into your Gupshup account. If you are not able to find these, reach out to your contact in Gupshup.
To create a SMS campaign, move to Create Campaign and go to Connectors. Click on Create custom connector.
Add a suitable name for your campaign (e.g. you are creating a campaign to send out SMS)
Choose the Sending Type as per your use case. Say you want to trigger a SMS to customers who have done a certain event but have not received/clicked the notification sent to them, choose sending type as At trigger event.
Choose the target audience once you have decided the sending type. You can target all the users or users who fulfill certain user criteria/behavior criteria.
We are quoting below example using API of SMS Gupshup.
Configure Webhook URL
Use GET Method to send the API request.
Webhook URL : Just copy this in Webhook URL Field : http://enterprise.smsgupshup.com/GatewayAPI/rest?method=SendMessage&send_to=918884664443&msg=This is a test message&msg_type=TEXT&userid=Username&auth_scheme=plain&password=Password&v=1.1&format=text
Once copied, URL params will be populated automatically. You should be able to see something like this:
Change value for these keys:
- Userid and Password - Set as per your account credentials
- send_to - In send_to field, you can personalize [using @] it to select user's mobile number. Ensure that selected attribute consists of user's mobile numbers.
- msg - Configure the message that you would want to send in the msg text field above. Ensure that you use the approved template (approved by your SMS provider - Gupshup in this case) in the message (msg) for transactional type messaging.
- msg_type - Should be text for plain text message; Should be unicode_text for unicode messages.
Note: Before sending SMS campaign to your users, please ensure that 2 or more active/installed users are not mapped to same Mobile Number. If they are, those users will receive multiple SMSs. You can avoid that by choosing Mobile Number as De-dup key in Step 3.
Once you are done with campaign, you will be take to campaign analytics page. Analytics will be generated with-in an hour from the time your campaign starts sending.