Host agents as Whatsapp Applications.
cookbook/agent_os/interfaces/whatsapp/readme.md
.
You will need environment variables:
WHATSAPP_ACCESS_TOKEN
WHATSAPP_PHONE_NUMBER_ID
WHATSAPP_VERIFY_TOKEN
WHATSAPP_APP_SECRET
and APP_ENV=production
Whatsapp
interface, and serve via AgentOS
:
cookbook/agent_os/interfaces/whatsapp/
.
Whatsapp
(interface): Wraps an Agno Agent
or Team
for WhatsApp via FastAPI.AgentOS.serve
: Serves the FastAPI app using Uvicorn.Whatsapp
InterfaceParameter | Type | Default | Description |
---|---|---|---|
agent | Optional[Agent] | None | Agno Agent instance. |
team | Optional[Team] | None | Agno Team instance. |
agent
or team
.
Method | Parameters | Return Type | Description |
---|---|---|---|
get_router | use_async: bool = True | APIRouter | Returns the FastAPI router and attaches endpoints. |
/whatsapp
prefix:
GET /whatsapp/status
GET /whatsapp/webhook
hub.challenge
).hub.challenge
on success; 403
on token mismatch; 500
if WHATSAPP_VERIFY_TOKEN
missing.POST /whatsapp/webhook
X-Hub-Signature-256
); bypassed in development mode.200 {"status": "processing"}
or {"status": "ignored"}
, 403
invalid signature, 500
errors.