Recipes
All recipes
Recipes
Working code for the jobs a Phoenix app keeps needing. Each recipe is the whole thing: the files, in order, with the reasoning next to them. Copy what you need.
AI
AI Prompt
AI Prompt (Multi-Provider)
Streaming Chat
AI Streaming Chat
Tool Calling
AI Tool Calling with Jido
Structured Output
Structured Output (JSON)
Cost Tracking
Per-User AI Cost Tracking
Background Jobs
Background AI Jobs with Oban
Provider Fallback
Multi-Provider Fallback
MCP Server
MCP Server in Phoenix