Slack Integration
Connect your assistant to Slack for seamless message sending.
The Slack integration allows your Vapi assistant to send messages to a pre-configured Slack channel during phone calls. This enables your assistant to notify team members, send updates, or share information directly through Slack.
Prerequisites
Before you can use the Slack integration, you need to:
- Have a Slack workspace
- Have access to the Vapi Dashboard
- Have an assistant created in Vapi
- Have a Slack channel created where messages will be sent
Setup Steps
1. Connect Slack Account
First, you need to connect your Slack workspace to Vapi:
- Navigate to the Vapi Dashboard
- Go to Providers Keys > Tools Provider > Slack
- Click the Connect button
- A Slack authorization popup will appear
- Follow the prompts to authorize Vapi to access your Slack workspace
The authorization process will request access to send messages to your Slack workspace.
2. Create Slack Tool
After connecting your Slack workspace, create the tool:
- Go to Dashboard > Tools page
- Click the Create Tool button
- Select Slack from the available options
- Choose the Slack Send Message Tool
- Provide a name and description explaining when it should be invoked
- Configure the tool with the following required fields:
channel
: The name of the Slack channel where messages will be sent (e.g., “#general” or “#notifications”)
The description field is crucial as it helps the AI model understand when and how to use the tool. Be specific about the scenarios and conditions when the tool should be invoked.
3. Add Tool to Assistant
Now, add the Slack tool to your assistant:
- Navigate to Dashboard > Assistants page
- Select your assistant
- Go to the Functions tab
- In the tools dropdown, select the Slack tool
- Click Publish to save your changes
Tool Configuration
Slack Send Message Tool
This tool uses the following fields to send messages to Slack:
channel
: The name of the Slack channel where the message will be senttext
: The message content to be sent to the channel
The channel name should be specified in the format “#channel-name”. Make sure the bot has been added to the channel before sending messages.
Example Usage
Here’s how the tool can be used in your assistant’s configuration:
Best Practices
- Channel Selection: Always verify the correct channel name before sending messages
- Message Formatting: Use clear and concise language in your Slack messages
- Error Handling: Include fallback responses for cases where the tool fails
- User Confirmation: Always confirm with the user before sending notifications to Slack
- Channel Access: Ensure the Slack bot has been added to the target channel