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


[Full Sitemap](/sitemap.md)
