How to forward SMS to Slack
Forward SMS is a versatile Android app that seamlessly forwards text to emails, phone numbers, URLs/APIs, or Telegram. It also forwards phone alerts like missed calls, outgoing calls, shutdown/turn-on events, and low battery alerts. Additionally, it offers auto and remote replies for efficient message management.
This guide will walk you through the steps required to forward text messages to Slack.
Prerequisites
- Slack has already been set up.
- Forward SMS app has been installed and is ready to use.
Create a Slack app
Create a new app in Slack to handle incoming SMS. Refer to this link to create one.
Name the app and pick a workspace
Enter the app name and the workspace where the app should be created.
Turn on incoming webhooks
Activate incoming webhooks from the webhooks tab. The webhooks tab can be accessed from the app's management dashboard.
Add a new webhook
Now that webhooks are enabled, create a new webhook by clicking the Add New Webhook to Workspace button.
Choose a channel
Slack will ask for the channel the webhook should post to. Select a channel, or create a new channel separately and come back here later.
Find your webhook URL
You'll be sent back to your app settings, where you should see a new entry under the Webhook URLs for Your Workspace section. Your webhook URL will look something like this:
Webhook URLhttps://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXXKeep the URL handy
Keep the URL handy, as you'll use it in the app to set up the forwarding rule.
Create a basic rule
Create a rule. To keep the steps simple, we will create a basic rule.
Choose URL as the receiver
In the receiver section, select URL as the forwarding option. Tap the Edit URL Config button to set up the config.
Paste the webhook URL
In the URL section, enter the URL provided by Slack after creating the webhook.
Pick the Slack template
In the body section, you can create a payload of your choice. You can also select the default Slack template to autofill a basic template.
Add properties to the body
The body template can be customized by adding properties from the available properties section.
Available properties
{msg}- Content of the SMS
{local-time}- Local time
{time}- UTC time in ISO format
{sender}- Sender details
{sim-detail}- SIM details
{rule-name}- Rule name
{app-name}- App name
{formatted-msg}- The SMS formatted with its other details
Save the URL config
Save the URL config.
Save the rule
You can update other rule settings, or save the rule.
Test the rule
After saving the rule, it's recommended to test it by selecting the Test option. This lets you verify that the rule is set up correctly and forwards SMS messages according to your criteria.
Check Slack for the message
Your rule has been set up. Check the Slack app to make sure forwarded texts are received.