Configuring Bots
Each bot can be configured through its setup dialog. This determines how the bot behaves, what services it connects to, and what limits it operates under.
Accessing Bot Settings
-
Find the bot in your sidebar
-
Open settings via one of these methods:
- Right-click the bot and select “Settings”
- Click the bot, then click the gear icon
- Open the bot’s page and click “Configure”
-
The setup dialog opens with configuration options
Setup Dialog Structure
Settings are organized into tabs/groups:
┌─────────────────────────────────────────────────────────────┐│ Bot Setup: Karen │├─────────────────────────────────────────────────────────────┤│ [General] [Slack] [Discord] [Behavior] [Budget] │├─────────────────────────────────────────────────────────────┤│ ││ Slack Bot Token ││ ┌─────────────────────────────────────────────────────┐ ││ │ xoxb-... │ ││ └─────────────────────────────────────────────────────┘ ││ Bot User OAuth Token from Slack app settings ││ ││ Slack App Token ││ ┌─────────────────────────────────────────────────────┐ ││ │ xapp-... │ ││ └─────────────────────────────────────────────────────┘ ││ App-Level Token for Socket Mode ││ │├─────────────────────────────────────────────────────────────┤│ [Cancel] [Save] │└─────────────────────────────────────────────────────────────┘Common Setting Types
Credentials (API Keys)
Most integrations require authentication:
| Setting | Format | Example |
|---|---|---|
| Slack Bot Token | xoxb-... | xoxb-123-456-abc |
| Slack App Token | xapp-... | xapp-1-abc |
| Discord Bot Token | Token string | MTIz... |
| OpenAI API Key | sk-... | sk-abc123 |
API keys are stored encrypted. Never share screenshots of your setup dialog with credentials visible.
Lists (Channels, IDs)
Multi-line text fields for lists:
#general#support#salesEnter one item per line.
Booleans (Toggles)
On/off switches for features:
- Auto-approve certain actions
- Enable debug mode
- Send notifications
Numbers
Integer or decimal values:
- Budget limits
- Retry counts
- Timeout values
Common Configuration Sections
Integration Credentials
Slack Integration:
- Bot User OAuth Token (xoxb-…)
- App-Level Token (xapp-…)
- Channels to join
Discord Integration:
- Bot Token
- Channel IDs to monitor
Email Integration:
- SMTP server settings
- Authentication credentials
Behavior Settings
Control how the bot operates:
- Response style (formal, casual)
- Auto-actions (approve, escalate)
- Working hours
- Notification preferences
Budget Settings
Control AI spending:
- Daily budget (coins)
- Per-conversation limit
- Alert thresholds
Advanced Settings
Usually hidden by default:
- Debug mode
- Model selection (if configurable)
- Custom endpoints
Setting Up Integrations
Slack Setup
-
Create a Slack App at api.slack.com
-
Configure OAuth & Permissions
- Add bot scopes:
chat:write,channels:history,app_mentions:read - Install to workspace
- Copy Bot User OAuth Token
- Add bot scopes:
-
Enable Socket Mode
- Under “Socket Mode”, enable it
- Create an App-Level Token with
connections:writescope - Copy this token
-
Enter tokens in the bot’s setup dialog
Discord Setup
-
Create a Discord App at discord.com/developers
-
Create a Bot
- Go to “Bot” section
- Click “Add Bot”
- Copy the token
-
Get Channel IDs
- Enable Developer Mode in Discord settings
- Right-click channels and “Copy ID”
-
Enter token and IDs in setup dialog
Budget Configuration
Understanding Coins
Flexus uses “coins” to track AI usage:
- Each LLM call costs coins based on tokens used
- Different models have different costs
- Bots spend from your workspace balance
Setting Limits
| Setting | Purpose |
|---|---|
| Daily Budget | Maximum coins per day |
| Per-Chat Budget | Maximum for one conversation |
| Warning Threshold | Alert when spending reaches X% |
Monitoring Spending
View spending in:
- Workspace Settings > Statistics
- Individual bot’s dashboard
- Billing page
Saving and Applying
- Click Save — Settings are validated and stored
- Bot restarts — New settings take effect
- Test — Try a simple interaction to verify
If save fails:
- Check for validation errors (red text)
- Verify required fields are filled
- Confirm credentials are valid
Troubleshooting
Integration Not Working
- Verify credentials are correct
- Check the bot has necessary permissions
- Look for error messages in the bot’s chat
- Review the bot’s kanban board for failed tasks
Settings Not Taking Effect
- Make sure you clicked Save
- Wait a moment for the bot to restart
- Try refreshing the page
- Check if the bot is online
Budget Exceeded
- Increase the daily budget
- Wait for the next day (budgets reset daily)
- Add more coins to your workspace
Best Practices
- Start with defaults — Only change what you need
- Test after changes — Verify the bot still works
- Set reasonable budgets — Start low, increase as needed
- Document your setup — Note any custom configurations
- Regular review — Check settings periodically