You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PraisonAIDocs needs a complete runbook for deploying a Hermes-style AI workforce on PraisonAI — specifically on Windows, with multiple Telegram bots, multiple agents, and dual-brain RAG — using the gateway pattern.
The in-repo channels-gateway.md is 32 lines. It mentions pip install "praisonai[bot]" but not the gateway's [api] requirement, Windows UTF-8 setup, single-instance rules, multi-channel token env conventions, or troubleshooting for silent bots. Operators following current docs hit multiple failures before getting a working workforce.
This doc issue tracks the documentation gap. Code fixes are filed separately in PraisonAI (deepcopy, allowlist, typing, port preflight, health, encoding).
Target audience
Non-developer operators running bots on a Windows laptop or VPS
Teams migrating from Hermes agent (1 gateway, 3 bots, 4 brains)
Anyone running praisonai gateway start with more than one Telegram channel
Note: create three separate bots in @Botfather — one token each.
4. Single gateway instance rule
Document clearly:
Never run two gateway processes. Only one process may bind port 8765 and poll each Telegram token.
Symptoms of duplicate gateway:
Bot stops replying mid-session
Log: Conflict: terminated by other getUpdates request
/health may still show "running": true
Fix:
# Stop all gateway processes, start one
praisonai gateway stop
# or kill PIDs manually on Windows
curl http://127.0.0.1:8765/health
5. Health check interpretation
curl http://127.0.0.1:8765/health
Explain each field. Note current limitation: "running": true does not guarantee Telegram polling is healthy (until PraisonAI health enhancement ships).
First reply may take 20–30 seconds (knowledge search + LLM).
Typing indicator disappears after ~5 seconds (known UX gap).
Do not send duplicate messages or restart gateway during this window.
7. Security — allowed_users
Document allowed_users configuration via onboard:
allowed_users: ${TELEGRAM_ALLOWED_USERS}
TELEGRAM_ALLOWED_USERS=123456789
Important caveat to document until PraisonAI fix ships: gateway Telegram polling path may not enforce allowlist — verify after security fix (PraisonAI issue TBD).
8. Troubleshooting table
Symptom
Likely cause
Fix
cannot pickle '_thread.RLock' object
Multi-channel deepcopy bug
PraisonAI fix or skip-deepcopy workaround
charmap / \u26a0 error
Windows encoding + API error
PYTHONUTF8=1 + fix OpenAI billing
Bot silent, health OK
Duplicate gateway / Telegram 409
Kill extra processes
ImportError: praisonai[api]
Missing uvicorn
pip install "praisonai[bot,api]"
Only 1 of 3 bots starts
Missing token env vars
Set all TELEGRAM_*_TOKEN in .env
429 / quota errors
OpenAI billing
Add credits at platform.openai.com
25s with no reply then answer
Normal RAG latency
Wait; typing renewal fix pending
Proposed doc pages (PraisonAIDocs)
Page
Content
docs/gateway/overview.mdx
Architecture, port 8765, single-instance rule
docs/gateway/deployment-windows.mdx
Full Windows runbook (this issue)
docs/gateway/multi-channel-telegram.mdx
Hermes 3-bot pattern, env vars, gateway.yaml
docs/channels/telegram.mdx (update)
Link to multi-channel guide
docs/installation/extras.mdx (update)
[bot,api] for gateway
Link to PraisonAI code issues
Doc section
Code issue
Multi-channel startup
deepcopy RLock
allowed_users caveat
Gateway polling allowlist bypass
25s latency / typing
Typing indicator renewal
Duplicate gateway
Port 8765 preflight + health 409
Multi-token env vars
Per-channel token convention
charmap error
Windows gateway Unicode
Acceptance criteria
New deployment-windows.mdx runbook published
Install docs updated: gateway needs [bot,api]
Hermes workforce example (3 bots, 3 agents) with full .env
[Docs] Gateway + Telegram on Windows — Hermes-style multi-channel workforce deployment guide
Labels:
documentation,gateway,windows,telegram,hermes-parityOverview
PraisonAIDocs needs a complete runbook for deploying a Hermes-style AI workforce on PraisonAI — specifically on Windows, with multiple Telegram bots, multiple agents, and dual-brain RAG — using the gateway pattern.
The in-repo
channels-gateway.mdis 32 lines. It mentionspip install "praisonai[bot]"but not the gateway's[api]requirement, Windows UTF-8 setup, single-instance rules, multi-channel token env conventions, or troubleshooting for silent bots. Operators following current docs hit multiple failures before getting a working workforce.This doc issue tracks the documentation gap. Code fixes are filed separately in PraisonAI (deepcopy, allowlist, typing, port preflight, health, encoding).
Target audience
praisonai gateway startwith more than one Telegram channelArchitecture — Hermes workforce on PraisonAI
flowchart TB subgraph Users["Telegram users"] U1["DM @cfo_bot"] U2["DM @ops_bot"] U3["DM @content_bot"] end subgraph Gateway["PraisonAI WebSocketGateway — ONE process"] PORT["127.0.0.1:8765"] WS["/ws + /health"] CH1["channel: telegram_cfo → agent cfo"] CH2["channel: telegram_ops → agent ops"] CH3["channel: telegram_content → agent content"] end subgraph Brains["Knowledge (Chroma / filesystem)"] SHARED["company_shared brain"] P1["finance_private"] P2["ops_private"] P3["content_private"] end subgraph External["External services"] OAI["OpenAI API"] TAV["Tavily / search tools"] end U1 --> CH1 U2 --> CH2 U3 --> CH3 CH1 --> P1 CH1 --> SHARED CH2 --> P2 CH2 --> SHARED CH3 --> P3 CH3 --> SHARED CH1 --> OAI CH2 --> OAI CH3 --> OAIGolden rules for this architecture:
Documentation sections needed
1. Installation — both extras required
Current docs say:
pip install "praisonai[bot]"Gateway also requires HTTP server dependencies. Without them:
Document:
Explain what each extra provides:
[bot][api][all]2. Windows UTF-8 setup
Document mandatory environment for Windows gateway deployments:
Explain the error users will see without this:
Clarify: this often appears after an API failure (e.g. OpenAI 429 quota) — fix billing first, then encoding.
3. Multi-channel
gateway.yamlexampleFull Hermes workforce example:
Matching
.env:Note: create three separate bots in @Botfather — one token each.
4. Single gateway instance rule
Document clearly:
Symptoms of duplicate gateway:
Conflict: terminated by other getUpdates request/healthmay still show"running": trueFix:
5. Health check interpretation
Explain each field. Note current limitation:
"running": truedoes not guarantee Telegram polling is healthy (until PraisonAI health enhancement ships).Expected healthy response:
{ "status": "healthy", "agents": 3, "channels": { "telegram_cfo": { "platform": "telegram", "running": true } } }6. Response latency expectations
Document prominently:
7. Security — allowed_users
Document
allowed_usersconfiguration via onboard:Important caveat to document until PraisonAI fix ships: gateway Telegram polling path may not enforce allowlist — verify after security fix (PraisonAI issue TBD).
8. Troubleshooting table
cannot pickle '_thread.RLock' objectcharmap/\u26a0errorPYTHONUTF8=1+ fix OpenAI billingImportError: praisonai[api]pip install "praisonai[bot,api]"TELEGRAM_*_TOKENin.envProposed doc pages (PraisonAIDocs)
docs/gateway/overview.mdxdocs/gateway/deployment-windows.mdxdocs/gateway/multi-channel-telegram.mdxdocs/channels/telegram.mdx(update)docs/installation/extras.mdx(update)[bot,api]for gatewayLink to PraisonAI code issues
Acceptance criteria
deployment-windows.mdxrunbook published[bot,api].env