
# Guides

These use-case specific guides are intended to help you build real applications with the AI SDK.

<IndexCards
  cards={[
    {
      title: 'RAG Agent',
      description:
        'Learn how to build a RAG Agent with the AI SDK and Next.js.',
      href: '/cookbook/guides/rag-chatbot',
    },
    {
      title: 'Multi-Modal Agent',
      description:
        'Learn how to build a multi-modal agent that can process images and PDFs with the AI SDK.',
      href: '/cookbook/guides/multi-modal-chatbot',
    },
    {
      title: 'Slackbot Agent',
      description: 'Learn how to use the AI SDK to build an AI Agent in Slack.',
      href: '/cookbook/guides/slackbot',
    },
    {
      title: 'Natural Language Postgres (SQL Agent)',
      description:
        'Learn how to build a Next.js app that lets you talk to a PostgreSQL database in natural language.',
      href: '/cookbook/guides/natural-language-postgres',
    },
    {
      title: 'Get started with Computer Use',
      description:
        "Get started with Claude's Computer Use capabilities with the AI SDK.",
      href: '/cookbook/guides/computer-use',
    },
    {
      title: 'Add Skills to Your Agent',
      description:
        'Extend your agent with specialized capabilities loaded at runtime from markdown files.',
      href: '/cookbook/guides/agent-skills',
    },
    {
      title: 'Get started with Gemini 2.5',
      description: 'Get started with Gemini 2.5 using the AI SDK.',
      href: '/cookbook/guides/gemini-2-5',
    },
    {
      title: 'Get started with Claude 4',
      description: 'Get started with Claude 4 using the AI SDK.',
      href: '/cookbook/guides/claude-4',
    },
    {
      title: 'OpenAI Responses API',
      description:
        'Get started with the OpenAI Responses API using the AI SDK.',
      href: '/cookbook/guides/openai-responses',
    },
    {
      title: 'Get started with Claude 3.7 Sonnet',
      description: 'Get started with Claude 3.7 Sonnet using the AI SDK.',
      href: '/cookbook/guides/sonnet-3-7',
    },
    {
      title: 'Get started with Llama 3.1',
      description: 'Get started with Llama 3.1 using the AI SDK.',
      href: '/cookbook/guides/llama-3_1',
    },
    {
      title: 'Get started with GPT-5',
      description: 'Get started with GPT-5 using the AI SDK.',
      href: '/cookbook/guides/gpt-5',
    },
    {
      title: 'Get started with OpenAI o1',
      description: 'Get started with OpenAI o1 using the AI SDK.',
      href: '/cookbook/guides/o1',
    },
    {
      title: 'Get started with OpenAI o3-mini',
      description: 'Get started with OpenAI o3-mini using the AI SDK.',
      href: '/cookbook/guides/o3',
    },
    {
      title: 'Get started with DeepSeek R1',
      description: 'Get started with DeepSeek R1 using the AI SDK.',
      href: '/cookbook/guides/r1',
    },
  ]}
/>


## Navigation

- [Guides](/cookbook/guides)
  - [RAG Agent](/cookbook/guides/rag-chatbot)
  - [Multi-Modal Agent](/cookbook/guides/multi-modal-chatbot)
  - [Slackbot Agent Guide](/cookbook/guides/slackbot)
  - [Natural Language Postgres](/cookbook/guides/natural-language-postgres)
  - [Get started with Computer Use](/cookbook/guides/computer-use)
  - [Add Skills to Your Agent](/cookbook/guides/agent-skills)
  - [Build a Custom Memory Tool](/cookbook/guides/custom-memory-tool)
  - [Get started with Gemini 3](/cookbook/guides/gemini)
  - [Get started with Claude 4](/cookbook/guides/claude-4)
  - [OpenAI Responses API](/cookbook/guides/openai-responses)
  - [Google Gemini Image Generation](/cookbook/guides/google-gemini-image-generation)
  - [Get started with Claude 3.7 Sonnet](/cookbook/guides/sonnet-3-7)
  - [Get started with Llama 3.1](/cookbook/guides/llama-3_1)
  - [Get started with GPT-5](/cookbook/guides/gpt-5)
  - [Get started with OpenAI o1](/cookbook/guides/o1)
  - [Get started with OpenAI o3-mini](/cookbook/guides/o3)
  - [Get started with DeepSeek R1](/cookbook/guides/r1)
  - [Get started with DeepSeek V3.2](/cookbook/guides/deepseek-v3-2)
- [Next.js](/cookbook/next)
  - [Generate Text](/cookbook/next/generate-text)
  - [Generate Text with Chat Prompt](/cookbook/next/generate-text-with-chat-prompt)
  - [Generate Image with Chat Prompt](/cookbook/next/generate-image-with-chat-prompt)
  - [Caching Middleware](/cookbook/next/caching-middleware)
  - [Stream Text](/cookbook/next/stream-text)
  - [Stream Text with Chat Prompt](/cookbook/next/stream-text-with-chat-prompt)
  - [Stream Text with Image Prompt](/cookbook/next/stream-text-with-image-prompt)
  - [Chat with PDFs](/cookbook/next/chat-with-pdf)
  - [streamText Multi-Step Cookbook](/cookbook/next/stream-text-multistep)
  - [Markdown Chatbot with Memoization](/cookbook/next/markdown-chatbot-with-memoization)
  - [Generate Object](/cookbook/next/generate-object)
  - [Generate Object with File Prompt through Form Submission](/cookbook/next/generate-object-with-file-prompt)
  - [Stream Object](/cookbook/next/stream-object)
  - [Call Tools](/cookbook/next/call-tools)
  - [Call Tools in Multiple Steps](/cookbook/next/call-tools-multiple-steps)
  - [Model Context Protocol (MCP) Tools](/cookbook/next/mcp-tools)
  - [Share useChat State Across Components](/cookbook/next/use-shared-chat-context)
  - [Human-in-the-Loop with Next.js](/cookbook/next/human-in-the-loop)
  - [Track Agent Token Usage](/cookbook/next/track-agent-token-usage)
  - [Send Custom Body from useChat](/cookbook/next/send-custom-body-from-use-chat)
  - [Streaming with Custom Format](/cookbook/next/custom-stream-format)
  - [Render Visual Interface in Chat](/cookbook/next/render-visual-interface-in-chat)
- [Node](/cookbook/node)
  - [Generate Text](/cookbook/node/generate-text)
  - [Retrieval Augmented Generation](/cookbook/node/retrieval-augmented-generation)
  - [Knowledge Base Agent](/cookbook/node/knowledge-base-agent)
  - [Generate Text with Chat Prompt](/cookbook/node/generate-text-with-chat-prompt)
  - [Generate Text with Image Prompt](/cookbook/node/generate-text-with-image-prompt)
  - [Stream Text](/cookbook/node/stream-text)
  - [Stream Text with Chat Prompt](/cookbook/node/stream-text-with-chat-prompt)
  - [Stream Text with Image Prompt](/cookbook/node/stream-text-with-image-prompt)
  - [Stream Text with File Prompt](/cookbook/node/stream-text-with-file-prompt)
  - [Generate Object with a Reasoning Model](/cookbook/node/generate-object-reasoning)
  - [Generate Object](/cookbook/node/generate-object)
  - [Stream Object](/cookbook/node/stream-object)
  - [Stream Object with Image Prompt](/cookbook/node/stream-object-with-image-prompt)
  - [Record Token Usage After Streaming Object](/cookbook/node/stream-object-record-token-usage)
  - [Record Final Object after Streaming Object](/cookbook/node/stream-object-record-final-object)
  - [Call Tools](/cookbook/node/call-tools)
  - [Call Tools in Parallel](/cookbook/node/call-tools-in-parallel)
  - [Call Tools with Image Prompt](/cookbook/node/call-tools-with-image-prompt)
  - [Call Tools in Multiple Steps](/cookbook/node/call-tools-multiple-steps)
  - [Model Context Protocol (MCP) Tools](/cookbook/node/mcp-tools)
  - [Manual Agent Loop](/cookbook/node/manual-agent-loop)
  - [Web Search Agent](/cookbook/node/web-search-agent)
  - [Model Context Protocol (MCP) Elicitation](/cookbook/node/mcp-elicitation)
  - [Embed Text](/cookbook/node/embed-text)
  - [Embed Text in Batch](/cookbook/node/embed-text-batch)
  - [Intercepting Fetch Requests](/cookbook/node/intercept-fetch-requests)
  - [Local Caching Middleware](/cookbook/node/local-caching-middleware)
  - [Repair Malformed JSON with jsonrepair](/cookbook/node/repair-json-with-jsonrepair)
  - [Dynamic Prompt Caching](/cookbook/node/dynamic-prompt-caching)
- [API Servers](/cookbook/api-servers)
  - [Node.js HTTP Server](/cookbook/api-servers/node-http-server)
  - [Express](/cookbook/api-servers/express)
  - [Hono](/cookbook/api-servers/hono)
  - [Fastify](/cookbook/api-servers/fastify)
  - [Nest.js](/cookbook/api-servers/nest)
- [React Server Components](/cookbook/rsc)
  - [Generate Text](/cookbook/rsc/generate-text)
  - [Generate Text with Chat Prompt](/cookbook/rsc/generate-text-with-chat-prompt)
  - [Stream Text](/cookbook/rsc/stream-text)
  - [Stream Text with Chat Prompt](/cookbook/rsc/stream-text-with-chat-prompt)
  - [Generate Object](/cookbook/rsc/generate-object)
  - [Stream Object](/cookbook/rsc/stream-object)
  - [Call Tools](/cookbook/rsc/call-tools)
  - [Call Tools in Parallel](/cookbook/rsc/call-tools-in-parallel)
  - [Save Messages To Database](/cookbook/rsc/save-messages-to-database)
  - [Restore Messages From Database](/cookbook/rsc/restore-messages-from-database)
  - [Render Visual Interface in Chat](/cookbook/rsc/render-visual-interface-in-chat)
  - [Stream Updates to Visual Interfaces](/cookbook/rsc/stream-updates-to-visual-interfaces)
  - [Record Token Usage after Streaming User Interfaces](/cookbook/rsc/stream-ui-record-token-usage)


[Full Sitemap](/sitemap.md)
