Resources / Recipes
Recipes
Build specific AI SDK features with open-source recipes from Vercel and the community.
Recipes
Next.js
RAG Agent
ragchatbot
Multi-Modal Agent
multi-modalagent
Natural Language Postgres
agentstools
Generate Text
Generate Text with Chat Prompt
streamingchat
Generate Image with Chat Prompt
streamingchat
Stream Text
streaming
Stream Text with Chat Prompt
streamingchat
Stream Text with Image Prompt
streamingmultimodal
Chat with PDFs
pdfmultimodal
streamText Multi-Step Cookbook
streaming
Markdown Chatbot with Streamdown
streamingchatbot
Generate Object
structured data
Generate Object with File Prompt through Form Submission
multi-modal
Stream Object
streamingstructured data
Call Tools
tool use
Call Tools in Multiple Steps
streamingtool use
Model Context Protocol (MCP) Tools
tool useagent
Share useChat State Across Components
useChatcontext
Human-in-the-Loop with Next.js
agentstool use
Track Agent Token Usage
Send Custom Body from useChat
chat
Streaming with Custom Format
streamingtool use
Render Visual Interface in Chat
generative user interface
Caching Middleware
streamingcaching
Contribute a recipe
Recipes use the same MDX format as the current cookbook, with frontmatter for metadata such as title, description, tags, source, author, maintainer, and verification date.
Contribute on GitHub