Cookbook guides

Detailed guides for building on the gateway.

Browse all production guides across prompting, agents, multimodal, guardrails, optimization, and open models.

Featured guides
All guides
EvalsQualityAutomation

Eval flywheel for prompt regressions

Generate test cases, score outputs, and track regressions.

Oct 6, 202514 min read
ReasoningStreamingTransparency

Reasoning transparency patterns

Display model reasoning to build user trust and enable debugging.

Oct 5, 202512 min read
AgentsWorkflowsADK

Multi-agent workflow patterns

Coordinate complex workflows across specialized agents with governance and handoffs.

Oct 1, 202522 min read
ConnectorsIntegrationsOAuth

Connector integrations guide

Connect agents to Gmail, Outlook, CRM systems, and calendar apps.

Sep 25, 202518 min read
GatewayAuthSecurity

Gateway API authentication guide

Secure your Gateway API integration with proper authentication and scopes.

Sep 20, 202514 min read
AvatarStreamingMultimodal

Avatar streaming guide

Build real-time avatar experiences with synchronized audio and facial animation.

Sep 15, 202520 min read
StreamingResponsesRealtime

Streaming formats and reconnects

Event schemas, heartbeats, and reconnect logic for SSE and WebSocket.

Aug 28, 202512 min read
Open ModelsOpsDeployment

Self-hosted model deployment

Run open models locally with parity checks and cost controls.

Aug 11, 202516 min read
PromptingAgentsReasoning

Agentic prompting guide

Prompting patterns for agentic predictability, instruction adherence, and tool use.

Aug 7, 202518 min read
ImagesAudioMultimodal

Multimodal image and audio analysis

Fuse visual and audio inputs into a single reasoning flow.

Jul 17, 202513 min read
OptimizationPromptingResponses

Optimize prompts

Tune prompt structure, few-shot examples, and token budgets for consistency.

Jul 14, 202514 min read
CompletionsResponsesPrompting

Prompt migration guide

Move legacy prompts into the Responses API with clearer roles and tool rules.

Jun 26, 202512 min read
Agents SDKMemoryState

Context engineering with memory notes

Store long term memory notes and state for multi-session workflows.

Jun 25, 202517 min read
FunctionsReasoningTools

Function calling guide

Define tool schemas, validate arguments, and handle retries safely.

May 26, 202513 min read
Agents SDKToolsWorkflows

Multi-tool orchestration with the ADK

Plan, call tools, and summarize into a single runbook.

Mar 28, 202518 min read
AudioRealtimeStreaming

Realtime voice assistant

Stream audio in, synthesize audio out, and handle turn taking.

Mar 27, 202516 min read
ResponsesSearchCitations

RAG on PDFs with file search

Chunk documents, search with citations, and answer precisely.

Mar 11, 202520 min read
LatencyCachingOptimization

Prompt caching 101

Reduce latency and cost with cache-safe prompt blocks.

Oct 10, 202410 min read
FunctionsResponsesAgents

Structured outputs for multi-agent systems

Keep agents aligned with JSON schema validation and repair loops.

Aug 6, 202415 min read
SafetyGuardrailsPrompting

Policy-first prompting

Layer safety policy before task instructions to reduce risk.

May 29, 202411 min read
CompletionsTextSummarization

Summarizing long documents

Chunk, summarize, and merge outputs with quality checks.

Apr 24, 202411 min read