Slack

Updated 5 years ago

Getting Started

You'll need a Zapier account on the Basic plan ($15/month).

Incoming SMS -> Slack

  1. Although it's not required, we recommend you purchase a dedicated number from the ClickSend dashboard to receive incoming SMS. You can do this here: https://dashboard.clicksend.com/#/sms/manage-numbers
  2. Once logged into Zapier, Click 'Make a Zap'
  3. Choose 'ClickSend SMS' for the trigger app
  4. Select 'New Incoming SMS' and click Save + continue
  5. Follow the steps to connect to your ClickSend account
  6. Test the step using Fetch & continue, then continue
  7. Next, we have to choose the action app. This can be anything, but in this case, we'll use Slack.
  8. Choose the action you want e.g. 'Send Channel a message'
  9. Follow the steps to connect your Slack account
  10. Complete the steps (example below)
  11. Continue the testing steps
  12. Save and enable the Zap.
  13. You can now test it out by sending an SMS to your ClickSend dedicated number


Slack -> Outgoing SMS

Option 1: Using a dedicated channel

With this option, you can send SMS by typing into the #sms channel e.g. "0411222333:This is an example message"

Create Slack as the trigger

  1. Once logged into Zapier, Click 'Make a Zap'
  2. Choose 'Slack' as the trigger app
  3. Choose 'New message posted to channel'
  4. Follow the connecting/testing Slack steps.
  5. Choose a channel in Slack to use (create one if you don't have one already). Note, this channel must only be used to send SMS - everything that's posted in this channel will be forwarded to Zapier.
  6. Test the step by posting into the Slack channel in the format: "mobile:message" e.g. "0411111111:This is a message"
  7. Click Continue.

Create a new action

These steps allow us to split the recipient phone number and the message, so we can pass these to ClickSend

  1. Create a new action - search for 'Formatter by Zapier'
  2. Choose 'Text' - Work with text data to find & replace, capitalize, remove HTML, and more.
  3. Fill out these fields:
  4. Run a test and continue

Create a new action

Repeat the same steps as above, except this time, use these fields:

Create ClickSend as the action

Now, we want to create an action to send an SMS

  1. Choose 'ClickSend SMS' as the Action App
  2. Choose the action 'Send SMS'
  3. Follow the steps to connect to your ClickSend account
  4. Complete the fields under 'Set up ClickSend SMS':
  5. Test this step - you should receive an SMS if you used your mobile number when testing the Slack trigger.

Option 2: Using a slash command anywhere e.g. /sms

With this option, you can send SMS by typing a slash command into any channel or chat window e.g. "/sms 0411222333:This is an example message"

  1. Once logged into Zapier, Click 'Make a Zap'
  2. Choose 'Webhooks by Zapier' as the trigger app
  3. Choose 'Catch hook' and continue
  4. Copy the web hook URL generated - you'll need to enter this on step 8 below.
  5. Click Continue and Continue (ignoring the child key step)
  6. Open https://slack.com/apps/manage/custom-integrations
  7. Choose 'Slash Commands'
  8. Complete fields:
  9. Save the integration and go back to Zapier
  10. Click 'OK I did this' and test out the Trigger by posting in Slack "/sms mobile:message" e.g. "/sms 0411111111:this is a test"

Create a new action

These steps allow us to split the recipient phone number and the message, so we can pass these to ClickSend

  1. Create a new action - search for 'Formatter by Zapier'
  2. Choose 'Text' - Work with text data to find & replace, capitalize, remove HTML, and more.
  3. Fill out these fields:
  4. Run a test and continue

Create a new action

Repeat the same steps as above, except this time, use these fields:

Create ClickSend as the action

Now, we want to create an action to send an SMS

  1. Choose 'ClickSend SMS' as the Action App
  2. Choose the action 'Send SMS'
  3. Follow the steps to connect to your ClickSend account
  4. Complete the fields under 'Set up ClickSend SMS':
  5. Test this step - you should receive an SMS if you used your mobile number when testing the Slack trigger.

How Did We Do?

Powered by HelpDocs (opens in a new tab)