ctx object is the second parameter of every handler. It contains info about the company, bot, user, trigger type, and provides access to secrets, messaging, memory, and logging.
Reference
Identity
Trigger
- HTTP
- Cron
- Event
Request
Environment (secrets)
Internal variables with
__FN_ prefix are blocked — ctx.env.get("__FN_COMPANY_ID") returns undefined.Messaging (ctx.jelou)
Messaging guide
14 message types, HSM templates, and error handling.
Memory (ctx.memory)
Memory guide
Primitives, JSON, TTL, limits, and common patterns.
Logging
ctx.log() writes structured JSON with automatic metadata:
Messaging
Send WhatsApp with ctx.jelou.
Memory
Persist data with ctx.memory.
Secrets
Encrypted environment variables.
Authentication
Runtime tokens and public functions.