Cookbook guides
Detailed guides for building on the gateway.
Browse all production guides across prompting, agents, multimodal, guardrails, optimization, and open models.
Agentic prompting guide
Prompting patterns for agentic predictability, instruction adherence, and tool use.
Multi-tool orchestration with the ADK
Plan, call tools, and summarize into a single runbook.
Realtime voice assistant
Stream audio in, synthesize audio out, and handle turn taking.
RAG on PDFs with file search
Chunk documents, search with citations, and answer precisely.
Eval flywheel for prompt regressions
Generate test cases, score outputs, and track regressions.
Self-hosted model deployment
Run open models locally with parity checks and cost controls.
Avatar streaming guide
Build real-time avatar experiences with synchronized audio and facial animation.
Multi-agent workflow patterns
Coordinate complex workflows across specialized agents with governance and handoffs.
Eval flywheel for prompt regressions
Generate test cases, score outputs, and track regressions.
Reasoning transparency patterns
Display model reasoning to build user trust and enable debugging.
Multi-agent workflow patterns
Coordinate complex workflows across specialized agents with governance and handoffs.
Connector integrations guide
Connect agents to Gmail, Outlook, CRM systems, and calendar apps.
Gateway API authentication guide
Secure your Gateway API integration with proper authentication and scopes.
Avatar streaming guide
Build real-time avatar experiences with synchronized audio and facial animation.
Streaming formats and reconnects
Event schemas, heartbeats, and reconnect logic for SSE and WebSocket.
Self-hosted model deployment
Run open models locally with parity checks and cost controls.
Agentic prompting guide
Prompting patterns for agentic predictability, instruction adherence, and tool use.
Multimodal image and audio analysis
Fuse visual and audio inputs into a single reasoning flow.
Optimize prompts
Tune prompt structure, few-shot examples, and token budgets for consistency.
Prompt migration guide
Move legacy prompts into the Responses API with clearer roles and tool rules.
Context engineering with memory notes
Store long term memory notes and state for multi-session workflows.
Function calling guide
Define tool schemas, validate arguments, and handle retries safely.
Multi-tool orchestration with the ADK
Plan, call tools, and summarize into a single runbook.
Realtime voice assistant
Stream audio in, synthesize audio out, and handle turn taking.
RAG on PDFs with file search
Chunk documents, search with citations, and answer precisely.
Prompt caching 101
Reduce latency and cost with cache-safe prompt blocks.
Structured outputs for multi-agent systems
Keep agents aligned with JSON schema validation and repair loops.
Policy-first prompting
Layer safety policy before task instructions to reduce risk.
Summarizing long documents
Chunk, summarize, and merge outputs with quality checks.