This tutorial will shows how to send automated SMS using ClickSend API using the Hubspot CRM. For troubleshooting purposes please contact our support team.
To get started you will need:
- A ClickSend account - Sign-Up
- A Hubspot account - Sign-Up
- A Hubspot CRM Operations Professional Plan or Higher - Plan Pricing
-
Click on the "Automation" tab from the menu bar and open the "Workflows" in a new tab from the drpdown menu.
-
Click on "Create workflow" button.
-
To keep this guide simple we will select "Contact-based" blank workflow, you can select any trigger you like as long as it contains the phone number field. After selecting the trigger and naming the workflow click on the "Next" button.
-
Click on the "Set up triggers" button and filter on how the contacts enter the workflow.
-
For simplicity purposes we will filter contacts based on if the phone number field does not contain the alphabet 'a', so that we can select every contact. After setting up the filter click on the "Apply filter" button.
-
If you want to cross check the filter setup click on "Test criteria" button. Click on "Save" button to save filter/s after the configuration.
-
Switch to the previous tab and click on the "Settings" icon.
-
Click on "Private Apps" from the Settings menu and click on "Create a private app" button.
-
Add the "Name" and "Description" for the app.
-
Select the scopes as shown in the image and click on "Create app" button.
-
Click and copy the token.
-
Switch to workflows tab and click on the "+" button to add the action.
-
Click on "Custom code" from the action list.
-
Click on "Choose a secret" dropdown menu and select "Add secret" to add your Private app token.
-
Type "HPKEY" as "Secret name" and paste the Private app token under the "Secret value". Click on "Save" button.
-
We will need your ClickSend credentials to send SMS - ClickSend Credentials
-
Copy your username from the ClickSend dashboard and click on "Add secret".
-
Type "CSUSERNAME" as "Secret name" and paste the username under the "Secret value". Click on "Save" button.
-
Repeat the steps 14 and 15 to add your ClickSend API Key, use "CSKEY" as "Secret name" and API Key as "Secret value".
-
Remove the existing code, then copy and paste the code from "Hubspot_CustomCode.js" in the "Code" section. Make sure Hubspot Client v3 is selected.
-
Change the content of message body as per the need. Click on the "Save" button after making the changes.



