Quick Start
1
Simple Usage
2
With Configuration
Add a channel directory for cross-platform delivery:
How It Works
Prompt injection happens after the system prompt cache boundary — the per-turn
## Session Context block is never cached.Configuration Options
BotSessionManager
BotConfig media
Chat-type detection
Common Patterns
Cross-platform delivery
Disable injection for privacy
get_session_context() — only the visible prompt block is suppressed.
Best Practices
Per-turn data is never cached
Per-turn data is never cached
The
## Session Context block is injected after the cache boundary — each turn gets fresh context without invalidating prior cache entries.Use friendly alias names
Use friendly alias names
Prefer
"team" or "ops" over raw channel IDs — the model matches user intent to alias names.Set home channels before aliases
Set home channels before aliases
set_home_channel(platform, channel_id) designates the default delivery target; agents refer to it as "<platform>:home".Disable injection for privacy-sensitive deployments
Disable injection for privacy-sensitive deployments
Set
inject_session_context=False when platform metadata should not appear in the system prompt.Related
Cross-Platform Sessions
Unified conversation history across platforms
Channels Gateway
Connect agents to Telegram, Discord, Slack, and WhatsApp
Bot Message Routing
Route messages to different agents by channel
Gateway Tool Policy
Scope the toolset per route

