How to Create a Slack Channel for Alerts: Get Your Bot Token and Channel ID
SafePhone can send an alert to Slack whenever a family member's phone receives a call from an unknown number or they tap a suspicious link. This guide shows you how to create a Slack channel for alerts in 5 steps: create the channel, create a bot, get the Bot Token, invite the bot to the channel, and find the Channel ID. You only need to do this once, and it takes about 5–10 minutes.
Why does SafePhone use Slack for alerts?
Slack is a team messaging platform that lets you create private channels, receive messages in real time, and connect other apps to send alerts automatically. When you install SafePhone on your child's or parent's phone, every unusual event is posted to your family's Slack channel, so you know when:
- A call comes in from a number that isn't in their contacts
- Someone taps an unfamiliar link in the browser
- A call was blocked or only flagged with a warning
This way, you can spot signs of a scam early without having to pick up your family member's phone and check it. Learn how to use alerts in these two guides: protect your family from scam calls and get alerts when a family member taps a suspicious link.
What you'll need
- A Slack workspace. If you don't have one, you can create one for free at slack.com.
- A computer with a web browser. Creating the bot (steps 2–3) is much easier on a computer than on a phone.
- The Slack app on your own phone to receive alerts once setup is complete.
Step 1: Create a Slack channel
- Sign in to Slack at slack.com.
- In the left sidebar, click Add channels → Create a new channel.
- Name the channel (for example
family-alerts) and create it.
This is where all SafePhone alerts will arrive.
Step 2: Create a Slack app and bot
- Go to the Slack app management page: api.slack.com/apps.
- Click Create New App → choose From scratch.
- Give the app a name (for example “SafePhone”) and select your workspace.
- Once it's created, go to OAuth & Permissions.
- Under Bot Token Scopes, add the
chat:writescope so the bot can post messages.
Step 3: Install the app and get the Bot Token
- Still on the OAuth & Permissions page, click Install to Workspace and then allow it.
- After installation, you'll see a Bot User OAuth Token that looks like
xoxb-.... - Copy this token. This is the Bot Token SafePhone uses to send messages.
Step 4: Invite the bot to the channel
- Open the Slack channel you created in step 1.
- Type
/invite @bot-name(the app name you chose in step 2) and send it.
The bot must be a member of the channel to post alerts.
Step 5: Find the Channel ID
Option 1: from the page URL. Open the Slack channel in a web browser and look at the address bar, which looks like this:
https://app.slack.com/client/TXXXXXXX/CYYYYYYY
The part starting with the letter C (for example CYYYYYYY) is the Channel ID.
Option 2: in the Slack app. Tap the channel name at the top to open the channel details; the Channel ID is usually at the bottom.
Finish: enter the Bot Token and Channel ID in SafePhone
On your family member's phone, open SafePhone → the first row of shield icons → Send alerts to family → choose Send via Slack, then paste the Bot Token and Channel ID into Slack channel settings. Don't have SafePhone yet? Get it on Google Play.
You can use the same channel for every device in your household. Just give each device a different name (“Dad's phone”, “Timmy's tablet”) so you know where each alert comes from.
Not getting alerts? Check these common issues
| Cause | Fix |
|---|---|
| The bot hasn't been invited to the channel | Repeat step 4 with /invite @bot-name |
| You entered the channel name instead of the Channel ID | Use the code starting with C (step 5), not #channel-name |
| You copied the wrong token | Use the Bot User OAuth Token that starts with xoxb-, not a token starting with xoxp- |
| Missing permission to post messages | Make sure you added chat:write in step 2, then reinstall the app (step 3) |
| Alert conditions aren't turned on | In SafePhone, check that you've ticked the options under “Send alerts when” |
| Slack notifications are off on your phone | Open the Slack app → the channel's notification settings, and choose to be notified of all messages |
Conclusion
After these 5 steps, you'll have a dedicated alert channel for the whole family: every unknown call or suspicious link on your parents' or kids' phones shows up right away in your Slack. It's a simple way to add an extra layer of protection against increasingly sophisticated scams.
FAQ
Does it cost anything to create a Slack channel for alerts?
No. You can create a workspace, channel, and bot on Slack's free plan to receive alerts from SafePhone.
What is a Slack Bot Token and where do I get it?
A Bot Token is a code starting with xoxb- that lets an app send messages to Slack. You'll find it under OAuth & Permissions for your app at api.slack.com/apps, after clicking Install to Workspace.
How do I find a Slack channel's Channel ID?
Open the channel in a web browser and look at the address bar: the part starting with the letter C at the end of the URL is the Channel ID. You can also open the channel details in the Slack app to see the Channel ID.
Why am I not getting alerts even though everything is set up?
The usual causes are: the bot hasn't been invited to the channel, you entered the channel name instead of the Channel ID, you used a token that doesn't start with xoxb-, or the chat:write permission is missing.