Connecting Your Apps (Channels)
ClawDesk can connect to your favorite messaging apps so that your AI assistants respond directly inside Telegram, Discord, Slack, WhatsApp, and many more. In ClawDesk, these connections are called "channels."
How Channels Work
The concept is simple:
- Someone sends a message on a platform like Telegram
- ClawDesk receives the message through a "bot" account
- Your AI agent processes the message
- ClawDesk sends the AI's response back to the platform
- The person sees the response as if chatting with a real person
Supported Apps
ClawDesk can connect to 25+ messaging platforms:
Most Popular
| App | Description | Difficulty to Set Up |
|---|---|---|
| 📱 Telegram | Most popular messaging integration | Easy |
| 🎮 Discord | Gaming and communities | Easy |
| 💼 Slack | Workplace communication | Medium |
| WhatsApp Business | Medium | |
| 🌐 Web Chat | Built into ClawDesk | Already done! |
Also Supported
| App | Description | Difficulty to Set Up |
|---|---|---|
| 💬 Signal | Encrypted messaging | Medium |
| 🍎 iMessage | Apple messaging (macOS only) | Medium |
| 🔗 Matrix | Decentralized chat | Medium |
| 💼 Microsoft Teams | Microsoft workplace | Medium |
| IMAP/SMTP email | Easy | |
| 💬 IRC | Classic internet chat | Easy |
| 📱 LINE | Popular in Asia | Medium |
| 💼 Google Chat | Google workplace | Medium |
| 🌐 Nostr | Decentralized social | Advanced |
Setting Up Telegram (Step by Step)
Telegram is the easiest channel to set up. Here's a complete walkthrough:
Step 1: Create a Telegram Bot
- Open Telegram on your phone or computer
- Search for @BotFather (it's Telegram's official bot for creating bots)
- Send the message:
/newbot - BotFather will ask for a name — type something like "My AI Assistant"
- BotFather will ask for a username — it must end in "bot" (e.g.,
myai_helper_bot) - BotFather gives you a bot token — a long string like:
7123456789:AAF-xyzABC123456789... - Copy this token — you'll need it in the next step
Your bot token is like a password. Never share it publicly or post it online. Anyone with this token can control your bot.
Step 2: Connect in ClawDesk
- Open ClawDesk
- Go to the Channels page
- Click Telegram
- Paste your bot token
- Choose which agent should respond on Telegram
- Click Connect
Step 3: Test It
- Open Telegram
- Search for your bot by its username
- Start a conversation
- Send a message — your ClawDesk AI should respond!
Setting Up Discord (Step by Step)
Step 1: Create a Discord Application
- Go to discord.com/developers/applications
- Click "New Application"
- Give it a name (e.g., "ClawDesk AI")
- Click Create
Step 2: Create a Bot
- In your application, click "Bot" in the left sidebar
- Click "Add Bot"
- Under Token, click "Copy" to copy the bot token
- Under Privileged Gateway Intents, enable:
- Message Content Intent (so the bot can read messages)
Step 3: Invite the Bot to Your Server
- In your application, click "OAuth2" → "URL Generator"
- Check the "bot" scope
- Under Bot Permissions, check:
- Send Messages
- Read Message History
- Read Messages/View Channels
- Copy the generated URL
- Open the URL in your browser
- Select your Discord server and click "Authorize"
Step 4: Connect in ClawDesk
- Go to ClawDesk → Channels page
- Click Discord
- Paste your bot token
- Enter your Guild ID (right-click your server name → "Copy Server ID")
- Choose your agent
- Click Connect
Step 5: Test It
- Go to your Discord server
- Type a message in a channel where the bot has access
- The bot should respond with an AI-generated reply
Setting Up Slack (Step by Step)
Step 1: Create a Slack App
- Go to api.slack.com/apps
- Click "Create New App" → "From scratch"
- Name it (e.g., "ClawDesk AI") and select your workspace
- Click Create App
Step 2: Configure Permissions
- Go to "OAuth & Permissions"
- Under Bot Token Scopes, add:
chat:write(send messages)app_mentions:read(respond to mentions)channels:read(see channels)channels:history(read messages)
- Click "Install to Workspace" and authorize
Step 3: Get Your Tokens
- Copy the Bot User OAuth Token (starts with
xoxb-) - Go to "Basic Information" → "App-Level Tokens"
- Create a new token with
connections:writescope - Copy this token (starts with
xapp-)
Step 4: Connect in ClawDesk
- Go to ClawDesk → Channels page
- Click Slack
- Enter your bot token, app token, and signing secret
- Choose your agent
- Click Connect
Setting Up Web Chat (Already Built In!)
ClawDesk includes a built-in web chat interface. It's already set up and ready to go.
To access it:
- Start the ClawDesk gateway
- Open your browser to
http://localhost:18789/ui - Start chatting!
You can also share this link with others on your local network.
Routing: Different Agents for Different Channels
One powerful feature is routing — you can assign different agents to different channels:
This means:
- Your Telegram bot can be a customer support AI (friendly, solution-oriented)
- Your Discord bot can be a community helper (fun, casual)
- Your Slack bot can be a business assistant (professional, concise)
- Your Email responder can be a formal auto-replier (polished, with signatures)
Security: Controlling Who Can Talk to Your Bot
You don't want random people sending thousands of messages to your AI (and running up your API costs). ClawDesk offers several protections:
Rate Limiting
Limit how many messages a user can send per minute:
rate_limit = 30 # Max 30 messages per minute per user
User Allowlists
Only allow specific users to interact:
allowed_users = ["user123", "user456"]
Channel Restrictions
For Discord, limit the bot to specific channels:
allowed_channels = ["general", "ai-help"]
Multi-Channel Dashboard
Once you have channels connected, the Overview page shows:
| Channel | Status | Messages Today | Agent |
|---|---|---|---|
| 📱 Telegram | 🟢 Connected | 47 | Support Agent |
| 🎮 Discord | 🟢 Connected | 123 | Community Bot |
| 💼 Slack | 🔴 Disconnected | 0 | — |
You can monitor message volumes, connection status, and errors from a single dashboard.
Troubleshooting
| Problem | Solution |
|---|---|
| Bot not responding | Check that the channel is enabled and the token is correct |
| "Unauthorized" error | Regenerate your bot token and update it in ClawDesk |
| Messages delayed | Check your internet connection and ClawDesk gateway status |
| Bot responds to itself | Make sure you're not looping — the bot should ignore its own messages |
| Rate limit reached | Increase the rate limit or upgrade your provider plan |
| Discord: "Missing permissions" | Re-invite the bot with proper permissions (Send Messages, Read History) |
Next Steps
- Privacy & Security → — Protect your channels and data
- Understanding Agents → — Create better agents for your channels
- Use Cases → — See real examples of channel setups