Slack App
Query Twig agents from Slack channels and DMs.
Overview
Features:
Mention @TwigBot in channels to query
DM TwigBot for private queries
Slash command
/twig ask [question]Thread-based conversations (context maintained)
Citation links to source docs
Plan requirement: Pro or Enterprise Slack requirement: Workspace admin to install app
Installation
Install from Slack App Directory
Go to slack.com/apps → search "Twig AI"
Click Add to Slack
Select workspace
Review permissions:
chat:write(send messages)channels:history(read channel messages)commands(slash commands)
Click Allow
Configure in opened browser tab:
Twig API Key: From Settings → API Keys
Default Agent: Select from dropdown
Click Complete Setup
Expected result: @TwigBot appears in Apps list
Installation time: ~3 minutes
Usage
Mention in Channel
Expected response (~2-5s):
Direct Message
Click TwigBot in Apps
Send message: "How do I reset my password?"
Receive response with citations
Slash Command
Response: Same as mention, visible only to you (ephemeral)
Configuration
Location: Slack Workspace Settings → Apps → Twig AI → Configure
Settings:
Default Agent: Which agent to use (dropdown)
Allowed Channels: All or specific channels (multi-select)
Response Style: Concise, Standard, Detailed
Show Citations: Toggle
Notifications: DM when mentioned
Troubleshooting
Bot Not Responding
Symptom: @TwigBot mentioned but no response
Diagnostic:
Check bot in channel members (if not, add:
/invite @TwigBot)Verify app installed (Slack Settings → Apps → check "Twig AI" listed)
Check API key valid (reconfigure if expired)
Fix: Add bot to channel or reinstall app
"Agent not found" Error
Cause: Agent ID invalid or deleted in Twig
Fix: Slack Settings → Apps → Twig AI → Configure → select different agent
Slow Responses (>30s)
Cause: Agent using Cypress strategy or complex query
Fix: Switch agent to Cedar or Redwood for faster responses
Constraints
Rate limit: 50 messages/min per workspace (Slack imposed)
Response length: Max 3,000 chars (Slack message limit, truncates if longer)
File uploads: Not supported in Slack app (use web UI)
Thread depth: Max 10 turns per thread (context window limit)
When This Doesn't Apply
Enterprise Grid: Multi-workspace Slack requires Enterprise plan configuration. Contact [email protected].
Last updated

