Skip to main content

Code

multi_bot.py

Usage

1

Set up your virtual environment

2

Set Environment Variables

3

Install Dependencies

4

Configure Slack Apps

Create two Slack apps in your workspace. Set their Event Subscription URLs to different prefixes on the same server:
  • Ace: https://<your-tunnel>/ace/events
  • Dash: https://<your-tunnel>/slack/events
5

Run Example

Key Features

  • Multiple Bots, One Server: Two Slack apps served from a single AgentOS instance using different URL prefixes
  • Per-Bot Credentials: Each Slack interface uses its own token and signing secret via environment variables
  • Session Isolation: Both bots share a SQLite database but maintain separate sessions per agent ID
  • Streaming Responses: Both bots stream their responses in real time