Lucid routes messages between users and agents across multiple communication channels. All channel interactions flow through Lucid’s webhook infrastructure, ensuring every message generates a verifiable receipt.Documentation Index
Fetch the complete documentation index at: https://docs.lucid.foundation/llms.txt
Use this file to discover all available pages before exploring further.
Architecture
Channel Routing Flow
When a message arrives from any channel:- Webhook reception — Lucid receives the platform webhook at
/v1/webhooks/:provider - Identity resolution — Maps the platform user to a Lucid user (auto-provisioned if Telegram-only)
- Agent binding — Looks up which agent is bound to this chat/channel
- Message forwarding — Sends the message to the agent’s runtime
- Receipt creation — Every interaction produces a cryptographic receipt
- Response routing — Agent’s response is sent back to the originating channel
Telegram
The deepest integration. Users can deploy and manage agents entirely from Telegram.Bot Commands
| Command | Description |
|---|---|
/launch [slug] | Interactive agent deployment wizard |
/start <passport_id> | Bind a chat to an existing agent |
/status | Check agent health |
/list | List deployed agents |
/plan | View current plan and usage |
/upgrade | Upgrade plan via Stripe |
User Provisioning
Telegram-only users are auto-provisioned: thecreate_telegram_user() database function creates a profile, organization, and free plan in a single transaction.
Web users link their Telegram via a deep link from the dashboard (t.me/bot?start=link_TOKEN).
Billing Gate
Before deploying,checkLaunchAllowed() verifies the user’s plan permits additional agents:
| Plan | Agent Limit |
|---|---|
| Starter | 1 |
| Professional | 10 |
| Business | Unlimited |
| Internal | Unlimited |
.png?fit=max&auto=format&n=VsjUqn6fLqEhBiuI&q=85&s=8b4c7e6431e9a6af1ef23b77bb4ff5fd)
.png?fit=max&auto=format&n=VsjUqn6fLqEhBiuI&q=85&s=d5651a45e4bfbabc33f74e146af3f94a)