How to set up Slack integration?

Estimated reading: 4 minutes 482 views

Getting Started

You’ll need a Zapier account first. If you don’t have an account, click here to create a Zapier account.

When you’re ready, let’s get started.

Incoming SMS to Slack

Although it’s not required, we recommend you purchase a dedicated number from the Cellcast dashboard to receive incoming SMS.

  1. Once logged into Zapier, Click ‘Make a Zap’
  2. Choose ‘ClickSend SMS’ for the trigger app
  3. Select ‘New Incoming SMS’ and click Save + continue
  4. Follow the steps to connect to your ClickSend account
  5. Test the step using Fetch & continue, then continue
  6. Next, we have to choose the action app. This can be anything, but in this case, we’ll use Slack.
  7. Choose the action you want e.g. ‘Send Channel a message’
  8. Follow the steps to connect your Slack account
  9. Continue the testing steps
  10. Save and enable the Zap.
  11. You can now test it out by sending an SMS to your Cellcast dedicated number

Slack to 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 Cellcast.

  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 Cellcast as the action

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

  1. Choose ‘Cellcast SMS’ as the Action App
  2. Choose the action ‘Send SMS’
  3. Follow the steps to connect to your Cellcast account
  4. Complete the fields under ‘Set up Cellcast 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 Cellcast.

  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 Cellcast 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 Cellcast account
  4. Complete the fields under ‘Set up Cellcast SMS’
  5. Test this step – you should receive an SMS if you used your mobile number when testing the Slack trigger

We hope this tutorial was helpful!

If you need further assistance, you can reach our customer support team on (03) 8560 7025, get on Livechat, or send us an email at [email protected]