These four playbooks cover AI agent backends, webhook processors, scheduled pipelines and REST API endpoints. Each uses serverless functions with gateway routes, environment secrets and observability. Follow the public use-case hubs for verification patterns, retries and templates.
AI agent backends#
Run long model calls, tool loops, and structured outputs behind a stable HTTP route. Enable streaming when you need partial tokens, and keep provider keys in environment secrets.
Webhook processors#
Verify signatures on the raw body, return a 2xx response quickly, and offload heavy work to async jobs or pipelines when the provider enforces a short timeout.
Scheduled pipelines#
Add a schedule to a pipeline for syncs, reports and cleanup. Its functions use the same runtime and secrets as online handlers; write idempotent updates and use observability to audit each run.
REST API endpoints#
Serve route groups and authenticated JSON APIs on the gateway. Parse event.body as a string on HTTP invokes, and share types between handlers where it helps.