Get the Consuelo bot running in your Discord server.
This guide walks you through setting up the Consuelo Discord bot for your workspace.
Prerequisites
Before starting, you’ll need:
- A Consuelo workspace with admin access
- A Discord Application created at Discord Developer Portal
- Discord server where you can add bots
Step 1: Create a Discord Application
- Go to Discord Developer Portal
- Click New Application
- Give it a name (e.g., “Consuelo Bot”)
- Copy the Application ID — you’ll need this later
Navigate to Bot in the left sidebar:
- Click Add Bot
- Copy the Token — this is your bot token
- Enable Message Content Intent under Privileged Gateway Intents
- Enable Server Members Intent (optional, for member lookup features)
Navigate to General Information in the left sidebar:
- Copy the Public Key — you’ll need this for the interactions endpoint
Navigate to OAuth2 → General:
- Copy the Client Secret — you’ll need this for OAuth flows
Go to Settings → Dialer → Discord in your Consuelo workspace.
Bot Configuration
Enter your Discord application credentials:
- Application ID (required): Paste your Discord Application ID
- Public Key (required): Paste your Public Key from the Discord Developer Portal
- Bot Token: Paste your bot token (shown as dots once saved)
- Client Secret: Paste your client secret for OAuth flows
Click Save Configuration.
Webhook Endpoint
Copy the Interactions Endpoint URL shown in the settings.
- Go back to Discord Developer Portal → Your Application → General Information
- Paste the URL into Interactions Endpoint URL
- Click Save Changes
Step 3: Generate Bot Invite Link
In the Discord settings page:
- Click Generate Invite Link
- Copy the generated URL
- Open it in your browser
- Select your Discord server
- Authorize the bot with the requested permissions
The bot is now in your server!
Step 4: Link Your Account
In the same Discord settings page, find the Discord Connection section:
- Click Link Discord Account
- A popup will open — enter your workspace ID and user ID
- Your API key is auto-filled if you have one, or generate one first
Generate an API Key (if needed)
If you don’t have an API key:
- Go to Settings → Workspace → APIs & Webhooks
- Click Create API Key in the API Keys section
- Give it a name (e.g., “Discord Bot”)
- Set an expiration date
- Copy the key — you won’t see it again!
Verify the Link
Back in Discord, run:
You should see:
🏓 Pong!
Version: 0.0.1
Uptime: 2h 15m
Workspace: your-workspace-id
Status: Online
Step 5: Set Your Phone Number
The bot needs to know which phone number to call when connecting you to leads.
Via CRM
- Log into Consuelo CRM
- Go to Settings → Profile
- Add your phone number in the Phone field
- Save changes
Via API (Advanced)
curl -X PATCH https://api.consuelohq.com/v1/users/me \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{"phone": "+15551234567"}'
Set a channel for automatic call notifications.
Requirements
- You must be a workspace admin
- The bot must have permission to post in the channel
Command
/consuelo config channel #call-notifications
Replace #call-notifications with your actual channel name.
Success response:
✅ Channel Set
Notifications will be posted to #call-notifications.
Self-Hosted Setup
If you’re self-hosting Consuelo, you can still configure via environment variables (backward compatible):
DISCORD_BOT_TOKEN=your_discord_bot_token
DISCORD_PUBLIC_KEY=your_public_key
DISCORD_APPLICATION_ID=your_application_id
DISCORD_CLIENT_SECRET=your_client_secret
CONSUELO_API_URL=https://your-consuelo-instance.com
CONSUELO_API_KEY=your_api_key
REDIS_URL=redis://localhost:6379
PORT=3100
However, the UI configuration in Settings → Dialer → Discord takes precedence when set.
Test Your Setup
Quick Health Check
Should show all services as ✅
/consuelo contacts search test
Should return contacts or “No Results” (not an error).
Test Queue Access
Should show your queues or “No queues found.”
Troubleshooting
”Not Linked” Error
Problem: You haven’t linked your Discord account.
Solution: Open Settings → Dialer → Discord and click Link Discord Account.
”Missing phone number” Error
Problem: Your phone number isn’t set in Consuelo.
Solution: Add your phone in Settings → Profile.
”Unauthorized” Error
Problem: Your API key is invalid or expired.
Solution:
- Go to Settings → Workspace → APIs & Webhooks
- Revoke the old key
- Generate a new key
- Run
/consuelo logout then link your account again
Bot Not Responding
Problem: Bot is offline or doesn’t have permissions.
Solution:
- Check the bot’s status in your Discord server
- Verify the bot has permission to read messages and send messages
- In Settings → Dialer → Discord, verify your credentials are saved correctly
Can’t Set Notification Channel
Problem: Missing admin permissions or bot permissions.
Solution:
- Verify you’re a workspace admin in Consuelo
- Check that the bot has “Send Messages” permission in the channel
- Try using the channel ID instead of the mention
Webhook Errors
Problem: Interactions endpoint not receiving events.
Solution:
- Verify the Interactions Endpoint URL in Discord Developer Portal matches what’s shown in Settings → Dialer → Discord
- Make sure you saved the changes after pasting the webhook URL
- Check that your Consuelo instance is publicly accessible
Security Notes
Protect your credentials! - Never share your bot token or client secret in
public channels - Use DMs for account linking - Regenerate tokens if you
suspect compromise - API keys in Settings → Workspace → APIs & Webhooks are
stored securely
Next Steps
Now that you’re set up:
- Learn commands: Review the Discord Bot overview
- Try queue dialing: Follow the Queue Management guide
- Set up transfers: Read about Call Controls
Getting Help
If you encounter issues:
- Check the Discord Bot FAQ (coming soon)
- Contact your workspace admin
- Reach out to Consuelo support