Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.poly.ai/llms.txt

Use this file to discover all available pages before exploring further.

Recipes are focused, working examples for the patterns you’ll build most often. Each recipe shows the complete code, explains the key decisions, and flags common mistakes.
Recipes assume you’re comfortable with functions and basic return values. Most Level 2+ learners can use them directly; Level 1 learners should finish the core lessons first.

Available recipes

SMS confirmation

Send an SMS after collecting consent. Handles the full consent → send → confirm loop.

Retry with handoff

Deterministic retry counter that escalates to a live agent after N failures.

Caller ID validation

Collect and verify a caller’s identity before proceeding to sensitive information.

Intent-based routing

Route calls to different destinations based on what the caller says they need.

How to use recipes

Each recipe is a starting point, not a final implementation. Adapt the function names, prompts, and logic to match your agent’s context. The comments in each snippet explain why each decision was made — read them before editing.
If you find yourself writing the same pattern more than once, it’s a good candidate for a recipe. The ADK makes it easy to pull patterns into reusable utility files.
Last modified on May 7, 2026