Cookbook
End-to-end recipes. Pick the one closest to your use case and copy-paste.
The cookbook is a set of working examples. Each one is a real flow — system prompt, agent settings, tools, phone setup — that you can clone, adapt, and ship.
🛠️ Want runnable TypeScript code instead? The osm-API/osmtalk-examples repo has four standalone projects (personalized call, bulk campaign, webhook receiver, free simulation) that use the SDK end-to-end. Walk-throughs at SDK Examples.
Every recipe answers:
- What does this agent do? (One sentence.)
- Which quality preset to use? (Fast / Balanced / Premium.)
- The full system prompt. (Copy-paste ready.)
- What tools to add. (HTTP, MCP, transfer, etc.)
- How to test it.
Pick your starting point
| Recipe | When | Preset |
|---|---|---|
| Receptionist | "Answer calls when I'm busy, take messages, book appointments" | Balanced |
| Outbound sales | "Qualify cold leads, book demos" | Premium |
| IVR / phone tree | "Press 1 for X, 2 for Y, then route" | Fast |
| Appointment reminder | "Confirm tomorrow's appointments" | Fast |
More recipes — survey/NPS callers, tech-support with RAG, and others — are planned. Until they land, the four above plus the examples repo cover the most common patterns.
How the recipes are structured
Every recipe is one MDX page with this layout:
1. Goal — what the agent does
2. Preset + voice — recommended quality preset
3. System prompt — copy-paste
4. Settings — advanced knobs to flip
5. Tools — HTTP endpoints / MCP servers to connect
6. How to test — what to say to it
7. What it costs — typical per-call cost
8. Common mistakes — what'll trip you upQuality presets
osmTalk picks providers + models for you based on a single choice:
| Preset | Latency | ₹/min | When to use |
|---|---|---|---|
| Fast | ~600 ms | ~₹2.50 | FAQs, IVR, simple flows |
| Balanced ⭐ | ~900 ms | ~₹4 | Most agents — start here |
| Premium | ~1200 ms | ~₹8 | Complex sales, support, high-value calls |
Recipes that need natural-sounding multi-language voice will recommend Premium with the india variant. You can swap presets later from agent config.
Adapt, then ship
Recipes are starting points. Real-world prompts always need:
- Your specific business hours
- Your product names and pronunciation
- Your transfer numbers
- Your CRM webhook URL
Copy → adapt → test → ship. Most teams have a production agent within a day.