Integrations
Connect your Syllabi chatbot to Discord, Slack, and other platforms.
Overview
Syllabi integrations allow your chatbot to:
- 💬 Respond in Discord servers
- 💼 Answer questions in Slack workspaces
- 🌐 Work across multiple platforms
- 🔄 Sync conversations and knowledge
Discord Integration
Prerequisites
- Discord account
- Server with admin permissions
- Syllabi chatbot configured
Setup Process
1. Create Discord Bot
- Go to Discord Developer Portal (opens in a new tab)
- Click New Application
- Name: "Your Bot Name"
- Click Create
2. Configure Bot
- Navigate to Bot section
- Click Add Bot → Confirm
- Public Bot: Toggle off (private)
- Privileged Gateway Intents:
- ✅ Message Content Intent
- ✅ Server Members Intent
- Click Reset Token → Copy token (save securely)
3. Set Bot Permissions
- OAuth2 → URL Generator
- Scopes:
- ✅
bot - ✅
applications.commands
- ✅
- Bot Permissions:
- ✅ Read Messages/View Channels
- ✅ Send Messages
- ✅ Send Messages in Threads
- ✅ Embed Links
- ✅ Attach Files
- ✅ Read Message History
- Copy generated URL
4. Add Bot to Server
- Paste URL in browser
- Select your Discord server
- Click Authorize
- Complete captcha
5. Connect to Syllabi
- Syllabi dashboard → Integrations tab
- Click Add Integration → Discord
- Paste Discord bot token
- Configure settings:
- Command Prefix:
!(or custom) - Mention Response: On/Off
- DM Response: On/Off
- Command Prefix:
- Select channels bot can access
- Click Connect
Usage
Command mode:
!ask What is your refund policy?Mention mode:
@YourBot How do I reset my password?DM mode:
Direct message the bot with any questionChannel Configuration
Public channels:
- Bot responds to all users
- Good for: General support, FAQ
Private channels:
- Bot responds to channel members only
- Good for: Team channels, restricted info
Thread support:
- Bot maintains context in threads
- Each thread = separate conversation
Customization
Welcome message:
Hi! I'm your AI assistant. Ask me anything about our products and services!
Try:
• !ask How do I install the software?
• !ask What are your hours?Error messages:
Sorry, I couldn't find information about that. Try rephrasing or contact support@company.comSlack Integration
Prerequisites
- Slack workspace with admin access
- Syllabi chatbot configured
Setup Process
1. Create Slack App
- Go to Slack API (opens in a new tab)
- Click Create New App → From Scratch
- App Name: "Your Bot Name"
- Select workspace
- Click Create App
2. Configure Bot
- OAuth & Permissions → Scopes
- Bot Token Scopes:
chat:writechat:write.publicchannels:historychannels:readgroups:historyim:historyim:writeusers:read
3. Enable Events
- Event Subscriptions → Toggle On
- Request URL:
https://your-backend.railway.app/webhooks/slack - Subscribe to bot events:
message.channelsmessage.groupsmessage.imapp_mention
- Save Changes
4. Install to Workspace
- Install App section
- Click Install to Workspace
- Review permissions → Allow
- Copy Bot User OAuth Token
5. Connect to Syllabi
- Syllabi dashboard → Integrations → Add Slack
- Paste Bot OAuth Token
- Configure:
- Response Mode: Mention / Direct / All
- Channels: Select which channels bot can access
- Click Connect
Usage
Mention mode:
@YourBot How do I export data?Direct message:
DM the bot directly with questionsSlash commands (optional):
/ask What is your pricing?Features
Thread responses:
- Bot replies in threads to keep channels clean
- Maintains conversation context
Rich formatting:
- Links, images, code blocks
- File attachments
- Interactive buttons (coming soon)
Presence:
- Shows as "online" when active
- Custom status message
Microsoft Teams (Coming Soon)
Planned Features
- Team channel integration
- 1:1 chat support
- Adaptive cards
- Meeting integration
Sign up for beta: Contact support@syllabi.io
Telegram (Coming Soon)
Planned Features
- Bot API integration
- Group chat support
- Inline queries
- Custom keyboards
WhatsApp Business (Coming Soon)
Planned Features
- WhatsApp Business API
- Message templates
- Media support
- Automated responses
Webhook Integration
Custom Webhooks
Send chatbot responses to custom endpoints:
Setup
- Integrations → Add Webhook
- Webhook URL:
https://your-server.com/webhook/syllabi - Events to trigger:
- ✅ New message
- ✅ Conversation ended
- ✅ Document uploaded
- Authentication:
- Bearer token
- API key header
- HMAC signature
- Click Create
Payload Format
{
"event": "message.created",
"timestamp": "2024-01-15T10:30:00Z",
"chatbot_id": "uuid",
"session_id": "uuid",
"message": {
"id": "uuid",
"role": "assistant",
"content": "Here's the answer...",
"metadata": {}
}
}Use Cases
- Log conversations to CRM
- Trigger notifications
- Update external systems
- Analytics and monitoring
- Custom integrations
API Integration
REST API
Access chatbot programmatically:
# Send message
curl -X POST https://your-app.com/api/chat \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"chatbot_id": "uuid",
"message": "What is your refund policy?",
"session_id": "optional-uuid"
}'{
"response": "Our refund policy allows...",
"session_id": "uuid",
"sources": [...]
}See API Reference for full documentation.
Managing Integrations
View Active Integrations
Integrations tab shows:
| Platform | Status | Channels | Last Activity | Actions |
|---|---|---|---|---|
| Discord | Active | 3 channels | 2 min ago | Config, Disconnect |
| Slack | Active | 5 channels | 1 hour ago | Config, Disconnect |
| Webhook | Active | - | 10 min ago | Edit, Delete |
Pausing Integrations
- Click Pause on integration
- Bot stops responding
- Click Resume to reactivate
Use cases:
- Maintenance windows
- Testing changes
- Temporary deactivation
Disconnecting
- Click Disconnect
- Confirm removal
- Bot removed from platform
- Conversations preserved in Syllabi
Best Practices
Discord
✅ Do:
- Set clear command prefix
- Use role-based permissions
- Enable thread responses
- Set status message
- Monitor for abuse
❌ Don't:
- Give bot admin permissions
- Allow in every channel
- Ignore rate limits
- Spam users with DMs
Slack
✅ Do:
- Use mention mode in busy channels
- Enable thread responses
- Set custom app icon
- Test in private channel first
- Monitor workspace guidelines
❌ Don't:
- Post in every channel
- Override user preferences
- Send unsolicited DMs
- Ignore Slack etiquette
General
✅ Do:
- Test thoroughly before launch
- Monitor conversations
- Update bot knowledge regularly
- Gather user feedback
- Have moderation plan
❌ Don't:
- Launch without testing
- Ignore errors
- Let bot respond to everything
- Forget about rate limits
Troubleshooting
Discord Bot Not Responding
Check:
- Bot token is correct
- Bot has channel permissions
- Message content intent enabled
- Bot is online (shows as active)
- Command prefix matches
Slack Bot Not Responding
Check:
- Bot token valid
- Event subscriptions enabled
- Request URL verified
- Bot invited to channel
- Correct scopes granted
Webhook Failing
Debug:
- Check webhook URL is accessible
- Verify authentication
- Check payload format
- Review server logs
- Test with curl/Postman
Next Steps
- Embedding Widget - Add to website
- Analytics - Monitor platform usage
- API Reference - Build custom integrations
- Troubleshooting - Common issues