Documentation Index
Fetch the complete documentation index at: https://docs.zavu.dev/llms.txt
Use this file to discover all available pages before exploring further.
Zavu Functions
Zavu Functions let you run TypeScript in our cloud and wire it directly to your WhatsApp/SMS/Email senders. You write the code locally, runzavu deploy, and
seconds later your agent is live with tools backed by real business logic.
zavu deploy. Done.
When to use Functions
AI agent with real actions
Customer asks something, the LLM decides which tool to call, your code runs,
real data goes back as the answer.
Custom webhooks
Receive inbound from Stripe, GitHub, your own systems, then forward as a
WhatsApp message.
Scheduled jobs
Daily report digests, reminder broadcasts, cleanup tasks.
Event-driven automation
React to
message.inbound, broadcast.completed, etc. with custom logic
without managing webhook receivers yourself.How it relates to AI Agents
Zavu has two complementary ways to build agents:| You want | Use |
|---|---|
| A no-code agent configured from the dashboard | AI Agents |
| An agent with custom business logic in your own code | Zavu Functions (this guide) |
| Both — start no-code, evolve to code | Start with AI Agents, migrate when you need tools or custom flows |
defineAgent call creates and
keeps the agent config in sync with your code. Once your function declares
defineAgent, the agent is “managed by the function” — the dashboard surfaces
this and disables manual edits to prevent drift.
Mental model
- Lambda-backed. Each function compiles to an AWS Lambda owned by Zavu.
You don’t see AWS —
zavu deployhandles bundling, dependencies, and publishing. - Internal invocation. When the agent calls a tool, we use AWS IAM-signed Lambda invokes — your function is not publicly exposed. No HTTP, no HMAC secrets to rotate, no DDoS surface.
- Native event binding. Functions can also subscribe to Zavu events
(
message.inbound,broadcast.completed, etc) via triggers. - Auto-provisioned credentials. Every function gets a scoped
ZAVU_API_KEYin its environment so it can call our SDK without you handling key distribution.
Quick tour
Login (one time)
~/.zavu/credentials.json and used by every later command.Continue
Quickstart
Full step-by-step from zero to live agent in 10 minutes.
CLI reference
Every
zavu command, flag by flag.Define an agent
defineAgent API, providers, prompts, models.Define tools
defineTool API, schemas, handlers, error handling.Secrets
Environment variables encrypted at rest.
Triggers
Listen to Zavu events from your function.
Runtime versions
How pinning works, when to upgrade.
Examples
Complete restaurant booking agent, walked through.
