The Slack integration allows you to automatically post survey responses to Slack channels as they arrive. Perfect for keeping your team informed about customer feedback, NPS scores, or any other survey insights.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/formbricks/formbricks/llms.txt
Use this file to discover all available pages before exploring further.
What Gets Synced
When a user completes a linked survey, Formbricks sends a formatted message to your Slack channel containing:- Survey name
- Selected question responses
- Timestamp of submission
Setup for Formbricks Cloud
Navigate to Integrations
In your Formbricks dashboard, click Configuration in the sidebar, then go to Integrations and click Connect under the Slack card.

Authorize Formbricks
You’ll be redirected to Slack’s OAuth page. Select your workspace and click Allow to grant permissions.

Add Formbricks Bot to Channel
Before linking a channel, you must add the Formbricks bot:
- Go to your target Slack channel
- Click the three dots at the top right
- Select Edit Settings > Integrations
- Click Add apps
-
Search for “Formbricks” and add the bot
Configure Question Mapping
Select:
- The Slack channel to post to
- The survey to monitor
- Which question responses to include

Self-Hosted Setup
To enable Slack integration on a self-hosted instance:HTTPS Required: Slack OAuth requires HTTPS. If running locally, use the Update
--experimental-https flag:package.json
WEBAPP_URL in your .env to https://localhost:3000 and run your terminal as admin.Create Slack App
- Go to Slack API: Your Apps
- Click Create New App > From Scratch
- Provide an app name and select your workspace
Configure Scopes
Under OAuth & Permissions, add these Bot Token Scopes:
channels:readgroups:readchat:writechat:write.publicchat:write.customize
Set Redirect URI
Under OAuth & Permissions > Redirect URLs, add:For local development:
https://localhost:3000/api/v1/integrations/slack/callbackMessage Format
Slack messages are formatted using blocks for readability:API Implementation
The integration uses Slack’s Web API:- Fetch Channels:
GET https://slack.com/api/users.conversations - Post Message:
POST https://slack.com/api/chat.postMessage
apps/web/lib/slack/service.ts:writeDataToSlack() whenever a response is submitted for a linked survey.
Remove Integration
Troubleshooting
Channel not appearing in dropdown
Channel not appearing in dropdown
Ensure the Formbricks bot has been added to the channel (see Step 5 in setup).
Messages not posting
Messages not posting
- Verify the bot has
chat:writeandchat:write.publicpermissions - Check that the survey is linked to the correct channel
- Ensure the survey has at least one question mapped
Token expired error
Token expired error
If you see a token expiration error, disconnect and reconnect the integration to refresh the OAuth token.



