Directory
Find the right pattern for your next AI product
Browse production-ready AI patterns organized by category. Every pattern includes source code, documentation, and a live preview.
You’ve reached the end of the directory.
Directory
Browse production-ready AI patterns organized by category. Every pattern includes source code, documentation, and a live preview.
You’ve reached the end of the directory.


Download-first Excel artifact pattern. The agent streams CSV through a tool call, renders a spreadsheet preview, and exports a real .xlsx file with SheetJS.


Download-first Word artifact pattern. The agent streams Markdown through a tool call, renders a document preview, and exports a real .docx file.


Download-first PDF artifact pattern. The agent streams Markdown through a tool call, renders a live PDF preview, and exports a real .pdf file.


Demonstrate ToolLoopAgent loop control with stopWhen. Covers stepCountIs, hasToolCall, combined conditions, and a custom StopCondition with step timeline visualization.


Demonstrate ToolLoopAgent prepareStep for trimming long message history. Pre-seeded 24-message conversation shows context compression on the first run with per-step trim telemetry.


Dynamically configure one ToolLoopAgent per request with callOptionsSchema and prepareCall. A customer-support agent rewrites instructions, gates tools, tunes reasoning effort, and injects RAG context based on account tier and urgency.


Inject request-scoped context (user identity, database handles, session) into ToolLoopAgent tools via experimental_context, so the model never supplies sensitive identity in tool inputs.


Lightweight ToolLoopAgent pattern for OpenAI prompt caching through Vercel AI Gateway: stable system instructions, promptCacheKey, and per-turn cachedPromptTokens metrics.


Lightweight ToolLoopAgent pattern for Anthropic ephemeral cache control through Vercel AI Gateway: cached system instructions with cacheControl and reports cache read/write tokens.


Paste a website URL to extract brand signals with Firecrawl, generate a structured mood-scene brief for abstract and environmental imagery, auto-create four brand-world images, and click any result into a local edit flow.


Paste a website URL to extract brand signals with Firecrawl, generate a structured brand-standards brief, render manual-style spreads (color, typography, grid, photography, and more), and refine any image with edit instructions.


Template-style slide deck artifact with data-slidesDelta streaming, sortable slide list and preview, Markdown export, in-memory versions, and quick prompts — no database persistence.


Template-style Mermaid artifact with data-mermaidDelta streaming, diagram preview and source editor, SVG/PNG export, in-memory versions, and quick prompts — no database persistence.


Template-style GeoJSON map artifact with data-mapDelta streaming, MapLibre preview and JSON source editor, GeoJSON export, in-memory versions, and quick prompts — no database persistence.


Excalidraw whiteboard artifact with data-whiteboardDelta streaming, uncontrolled canvas, SVG/PNG/.excalidraw export, scene templates (architecture, user flow, org chart), and in-memory versions — no database persistence.


AI-generated data tables using json-render. Describe columns, rows, sorting, and filters — stream specs into an interactive DataTable with toolbar satellites.


Template-style sheet artifact with data-sheetDelta streaming, CSV grid editor, in-memory versions, and quick prompts — no database persistence.


Template-style text artifact with data-textDelta streaming, ProseMirror Markdown editor, in-memory versions, and quick prompts — no database persistence.


Template-style code artifact with data-codeDelta streaming, CodeMirror Python editor, Pyodide run, in-memory versions, and quick prompts — no database persistence.


Parse markdown into H1 sections with unified and remark, then export normalized content as JSON, CSV, Markdown, HTML, PDF, or plain text in the browser.


Paste CSV, TSV, or JSON arrays; detect delimiters with Papa Parse; validate rectangular rows; preview in a table; export JSON, CSV, TSV, or Markdown tables in the browser.


Load Excel .xlsx or .xls workbooks in the browser with SheetJS, pick a sheet, preview rows, and download CSV—with optional UTF-8 BOM and multi-sheet export.


Chat UI wired to a ToolLoopAgent that loads filesystem skills and exposes readFile on the skill sandbox—demo includes ad-creative, copywriting, and paid-ads skill packs for campaign workflows.


Minimal ToolLoopAgent chat demo: on-call-style skills (incident triage + stakeholder comms) on disk, skill tool loads SKILL.md + paths, readFile pulls reference checklists and templates from the sandbox.


Transform short, vague UI requests into production-grade design briefs with strong visual, interaction, and implementation detail.


Generate production-ready React Email templates with live preview plus copyable HTML and plain-text output.


Paste a website URL to extract brand signals with Firecrawl, generate a structured product photography brief, auto-create four Nano Banana placement images, and click any result into a local edit flow.


AI-generated 3D scenes using @json-render/react-three-fiber. Describe environments, meshes, and lighting to stream live Three.js renders you can orbit immediately.


Generate social cards and marketing images from natural language using @json-render/image with live spec streaming and SVG/PNG export.


Generate structured brand brief PDFs from any website URL using Firecrawl branding extraction and JSON Render PDF streaming.


Generate a conversion-focused landing page teardown PDF using one landing URL plus 2-5 competitor URLs.


AI-generated video from natural language using @json-render/remotion. Describe a video and watch it stream in as a timeline spec, then render in a Remotion Player.


AI-generated UI using @json-render/shadcn. Describe a UI in natural language and watch it render with shadcn components.


AI-generated UI from natural language using @json-render. Describe a UI and watch it stream in progressively with shadcn components.


Generate PDF documents from natural language using @json-render/react-pdf. Describe a document or refine examples to create professional PDFs with streaming spec and live preview.


Audit any website for on-page SEO issues using Firecrawl. Scrapes a URL, then renders a full-screen report analyzing meta tags, content structure, links, keywords, and schema markup with exportable reports.


A full-screen AI levee interface where each stage is an adaptive interview with lock-based progression and dynamic tool-driven prompts.


Enter a competitor URL to get comprehensive competitive intelligence. Uses Firecrawl Map + Parallel Scrape for fast extraction (~3-5s). Analyzes positioning, pricing, features, tech stack, and generates sales battle cards.


Upload CSV or JSON data and get AI-powered analysis with interactive visualizations. Detect patterns, correlations, outliers, and generate insights with confidence scores. Export comprehensive reports.


Audit any website for WCAG 2.1 accessibility compliance using Firecrawl, then use AI tools to analyze issues by severity, check color contrast, validate heading structure, generate alt text, and create prioritized remediation plans with visual tool outputs.


Validate startup ideas with a two-phase workflow: discover relevant subreddits, then analyze pain points, existing solutions, willingness to pay, demand trends, and early adopters. Get a go/no-go scorecard with actionable insights.


Extract brand design systems from any website using Firecrawl, then use AI tools to export tokens, generate color palettes, check accessibility, and analyze brand personality.


Uses ToolLoopAgent pattern to gather requirements and generate plans. Generates markdown plans with structured todo lists.


Search with Exa AI SDK's webSearch tool and Anthropic Claude Sonnet 4.5. Uses @exalabs/ai-sdk for seamless integration.


Generate Zod schemas from natural language descriptions using AI. Automatically creates form schemas that render interactive forms with real-time validation.


Custom Agent implementation demonstrating the Agent interface abstraction with an orchestrator that routes queries to specialized sub-agents (research, analysis, support). Shows options passing and structured outputs.


Sequential three-agent chain demonstrating structured outputs flowing between agents. Research Agent 1 gathers research, Expand Agent 2 expands research, Synthesis Agent 3 synthesizes final answer. Uses Exa tools and AI SDK 6's stabilized structured output support.


Demonstrates an evaluator-optimizer workflow pattern using Workflow DevKit. Features iterative improvement through AI evaluation and optimization loops.


Demonstrates an orchestrator-worker workflow pattern using Workflow DevKit. Features parallel execution of specialized workers for different change types (create, modify, delete).


Demonstrates a parallel review workflow pattern using Workflow DevKit. Features concurrent code reviews (security, performance, maintainability) with result aggregation.


Demonstrates a routing workflow pattern using Workflow DevKit. Features query classification and conditional routing to specialized handlers based on type and complexity.


Demonstrates a sequential workflow pattern using Workflow DevKit. Features step-by-step execution with quality gates and conditional regeneration.


Generate, edit, and merge images using Nano Banana 2.5 Flash. Create new images from text, edit existing ones with natural language, or merge two images together. Includes version history and image comparison.


Explore tool input lifecycle hooks: onInputStart, onInputDelta, and onInputAvailable. See how to track tool input generation in real-time during streaming.


Return preliminary tool results using async iterables. Stream status updates during tool execution before the final result is available.


Pass arbitrary context from generateText/streamText to tool execution via experimental_context. Access context in tool execute functions for dynamic behavior.


Repair invalid tool calls using experimental_repairToolCall. Fix schema validation errors without requiring additional steps that pollute message history.


Create dynamic tools with runtime-generated schemas using dynamicTool. Demonstrates unit conversion tools where schema adapts based on conversion type (temperature, length, weight, currency) and supports dynamic model selection.


Demonstrate structured agent outputs using ToolLoopAgent with Output.choice. Constrain agent outputs to predefined choices for predictable, type-safe responses.


Demonstrate structured agent outputs using ToolLoopAgent with Output.array. Returns structured array output with element schema for predictable, type-safe responses.


A comprehensive Chatbase clone demo with widget interface, model selection, web search integration, and human-in-the-loop tool approval workflows.


A collapsible plan component for displaying AI-generated execution plans with streaming support and shimmer animations.


Search the web with Claude AI. Includes result filtering, multiple search types, and language support.


Demonstrate tool execution with user confirmation. Includes approval workflows, confirmation UI, and state management for safe AI operations.


Demonstrate tool approval with async generators. Includes real-time feedback, approval workflows, and interactive management.


Gather information through AI-driven multiple choice questions. Includes approval workflows and real-time rendering.


Gather detailed information through AI-driven text input questions. Includes approval workflows and real-time rendering.


Queue management assistant using AI agents. Generate structured queues with messages, todos, and attachments through conversation.


Chat assistant with human approval workflows for safe tool execution.


Spreadsheet editor with AI chat for data analysis and manipulation. Edit tables through conversation.


Build brand context through AI-guided questioning and web research. Gathers insights to create detailed brand profiles.


Generate burn rate charts and financial analysis through AI chat. Creates interactive visualizations from conversation.


Search with Exa's semantic API and real-time crawling. Includes live content extraction and relevance scoring.


Crawl and extract content using Firecrawl's API. Includes URL processing, markdown conversion, and structured data extraction.


Animated bento grid for presenting install methods, integrations, and product features.


Compare AI models like GPT-4, Claude, and Gemini. Includes filtering, sorting, performance metrics, and pricing data.


Compare AI models in a compact table format. Includes horizontal scrolling, sortable columns, and condensed data for quick evaluation.


Compare AI models with hover details for GPT-4, Claude, and Gemini. Includes filtering, sorting, and performance metrics.


Sortable AI model table with pricing, performance, and capability columns for side-by-side evaluation.


Integration cards with connection status, configuration controls, and connectivity testing.


Circular fan-out layout showcasing AI integrations with radiating connection lines. Features interactive hover effects, tooltips, and dynamic positioning for visual integration highlights.


Interactive agent ROI calculator with labeled inputs, live savings, and mobile-friendly cost comparison.


Filterable changelog with version history, release notes, and category labels.


Analyze URLs through AI prompt chaining. Scrapes content, analyzes it, and generates summaries.


Search the web using OpenAI's tool with real-time results. Includes source verification, citation tracking, and contextual answers.


Process PDFs with AI analysis. Extract text, generate summaries, and identify key insights.


Generate text and analyze market research using Google's Gemini 2.5 Flash. Includes interactive charts and data visualization.


Generate images using Nano Banana 2.5 Flash with prompt optimization. Includes style adaptation and customizable parameters.


Generate and edit images using Nano Banana 2.5 Flash. Create new images from text or edit existing ones with natural language. Includes version history and image comparison.


Scrape websites using Jina AI with JavaScript rendering and proxy rotation. Handles rate limiting and bot detection.


Extract content from websites using Cheerio. Includes parsing, link discovery, and rate limiting.


Connect AI agents with external APIs and services. Demonstrates tool calling with weather data, error handling, and visual feedback.


Chat that shows AI's step-by-step reasoning. Includes decision trees, logical breakdowns, and explanatory tooltips.


Generate images using DALL-E 3 with prompt optimization and style presets. Includes real-time preview, downloads, and batch processing.


Generate content with embedded citations and clickable references. Includes source verification and formatting for research writing.


Process content with multiple AI agents running simultaneously. Demonstrates concurrent analysis for faster results.


Execute multi-step workflows with typed tools. Includes streaming, tool chaining, and decision-making for automated tasks.


Coordinate multiple worker agents for project management. Handles task distribution, progress tracking, and result synthesis.


Improve output quality with dual agents. Evaluator analyzes quality while optimizer refines results through iterative feedback.


Task management with AI workflow automation. Creates tasks, tracks progress, and assigns work automatically.


Chat interface with streaming responses and message history. Includes typing indicators and message status tracking.


Chat with source citations using Perplexity's Sonar model. Answers include clickable links for fact-checking.


Route user queries to specialized AI agents based on context and intent. Includes dynamic agent selection, load balancing, and fallback handling.


Create and test prompts with few-shot examples. Evaluate AI responses and tune model performance through experimentation.


Analyze user profiles with AI and provide personalized suggestions. Enriches data, suggests improvements, and offers career insights.


Convert any webpage to markdown using Cloudflare's markdown.new. Clean, structured output for AI pipelines and content processing.


Advanced conversational AI interface powered by GPT-4o with intelligent context management, streaming responses, and conversation persistence. Features message history, typing indicators, and responsive design for seamless AI-powered communication experiences.


Sophisticated AI chat interface powered by Claude with advanced reasoning capabilities, context awareness, and natural conversation flow. Features intelligent response generation, conversation memory, and user-friendly interaction design for enhanced AI communication.


Dynamic AI chat interface powered by Grok with real-time information access, conversational intelligence, and contextual understanding. Features live data integration, witty responses, and engaging conversation patterns for interactive AI-powered communication experiences.


Convert text to speech using OpenAI's API. Includes multiple voices, speed control, and real-time playback for voiceovers and accessibility.


Transcribe audio files using OpenAI's API. Includes real-time transcription and language detection.


Generate text from prompts using AI. Simple interface with character counting and response rendering.


Stream text responses from AI prompts in real-time. Includes character counting and live response rendering with useCompletion.


Stream structured output from AI prompts in real-time using streamText with Output.object(). Generate typed data with useObject and live rendering.


Generate structured output from AI prompts using OpenAI. Create typed data with generateText and Output.object().


Generate structured output from AI prompts using Anthropic Claude. Create typed data with generateText and Output.object().


Generate structured output from AI prompts using Google Gemini. Create typed data with generateText and Output.object().


Generate images from text prompts using OpenAI's DALL-E 3. Create high-quality images with AI.


Generate images from text prompts using Fal.ai's Flux model. Fast and high-quality image generation.


Generate images from text prompts using Google Gemini's image model.


Convert text to speech using ElevenLabs API. Includes multiple voices and high-quality audio generation.


Transcribe audio files using ElevenLabs API. Includes real-time transcription and language detection.


Search the web using Exa's semantic API and real-time crawling. Includes URL search, content extraction, Wikipedia, Reddit, and news search tools.


Search the web using Firecrawl's API and real-time crawling. Includes URL search, content extraction, Wikipedia, Reddit, and news search tools.


Scrape websites using Cheerio's fast HTML parser. Includes URL scraping, website crawling, and content extraction without external API costs.


Scrape websites using Jina AI's reader service with JavaScript rendering. Includes URL scraping, website crawling, and content extraction with AI-powered parsing.