Rich visual components that agents can use to enhance chat responses
Dynamic In-Chat Components give your agents the ability to render rich, interactive elements directly within chat responses. Instead of plain text, agents can display charts, code blocks, step-by-step guides, and more—creating engaging and useful experiences for your users.
SDK 3 Required: Dynamic In-Chat Components are available exclusively in SDK 3. If you’re using SDK 2, you’ll need to migrate to access this feature.
When you enable a component, its prompt instructions are included in the agent’s system context. The agent then decides when to use each component based on the conversation and the guidance you’ve provided.Each component is controlled by prompt instructions that guide when and how the agent uses it. You can enable or disable components individually and customize the prompts to match your specific use cases.
Component behavior is prompt-based, which means it’s not 100% deterministic. The agent interprets the instructions and makes judgment calls about when a component is appropriate. You can refine this behavior by editing the prompt instructions.
Collapsible sections that reduce visual complexity while keeping content accessible.When agents use it:
FAQ sections
Progressive disclosure of optional or advanced details
Long documentation that benefits from collapsible organization
Default prompt instructions:
Copy
Ask AI
Use for FAQ sections, progressive disclosure of optional/advanced details, or long documentation with collapsible sections. Ideal for reducing initial visual complexity while keeping content accessible. DO NOT use for primary navigation. DO NOT use for critical information that must be visible.
Visual comparisons across categories, rankings, or discrete time periods.When agents use it:
User explicitly asks for a bar chart
Categorical comparisons and rankings
Frequency counts
Discrete time periods
Default prompt instructions:
Copy
Ask AI
Use; when the user asks for a bar chart, for categorical comparisons, rankings, frequency counts, or discrete time periods. Use stacked bars to show composition within each category. DO NOT USE for continuous time series or >15 discrete periods (use linechart). DO NOT USE for part-to-whole relationships summing to 100% (use piechart) — percentages across independent categories are fine.
Best for: Budget comparisons, sales by category, survey responses, team performance metrics
Highlighted boxes that draw attention to important information.When agents use it:
Critical warnings
Important tips
Success or error notifications that require user attention
Security warnings
Breaking changes
Critical prerequisites
Default prompt instructions:
Copy
Ask AI
Use for critical warnings, important tips, success/error notifications that require user attention. Ideal for security warnings, breaking changes, critical prerequisites. DO NOT use for general information or supplementary details (use regular text or cards). **Maximum 2-3 callouts per response to maintain visual impact.**
Callouts lose their impact if overused. Limit to 2-3 per response for maximum effectiveness.
Contained blocks for grouping related content or presenting options.When agents use it:
Highlighting key information
Grouping related content
Visual separation
Presenting options
Comparisons, lists, summaries, and key takeaways
Default prompt instructions:
Copy
Ask AI
Use for highlighting key information, grouping related content, visual separation, or presenting options. Ideal for comparisons, lists, summaries, key takeaways. DO NOT use for sequential steps (use mindset-steps). DO NOT use for tabbed content (use mindset-tabs). **CRITICAL: NEVER nest cards inside cards or featurecards inside cards - use multiple cards at same level instead.**
Never nest cards inside other cards or feature cards. Use multiple cards at the same level instead.
Syntax-highlighted code snippets with copy functionality.When agents use it:
Displaying code snippets in any programming language
Technical documentation
API examples
Configuration files
Features:
Syntax highlighting via react-syntax-highlighter
Copy-to-clipboard button
Optional line numbers (enabled by default)
Optional filename display in header
Optional language badge in header
Automatic theme adaptation (light/dark)
Monospace font (Sometype Mono, JetBrains Mono)
Default prompt instructions:
Copy
Ask AI
Use for displaying code snippets with syntax highlighting in agent responses. Automatically adapts to theme (light/dark). Features include: syntax highlighting via react-syntax-highlighter, copy-to-clipboard button, optional line numbers (default: on), optional filename display in header, optional language badge in header, monospace font (Sometype Mono, JetBrains Mono). Attributes: language (optional, e.g. 'python', 'javascript', 'typescript', 'bash', 'sql', etc.), filename (optional, triggers header display).
Visual representations of processes, workflows, and system architecture.When agents use it:
Process flows and workflows
System architecture
API interactions
Class structures
State machines
Timelines
Data relationships
Default prompt instructions:
Copy
Ask AI
Use for visualizing processes, workflows, system architecture, API interactions, class structures, state machines, timelines, or data relationships. Ideal for technical documentation, architectural explanations, process flows. DO NOT use for simple lists (use markdown). DO NOT use for data charts (use piechart/barchart/linechart).
Best for: Technical documentation, architectural explanations, onboarding flows
Specialized cards for showcasing product features and capabilities.When agents use it:
Showcasing product features
Highlighting capabilities
Presenting benefits or advantages
Feature grids
Product highlights
Service offerings
Capability listings
Default prompt instructions:
Copy
Ask AI
Use for showcasing product features, highlighting capabilities, or presenting benefits/advantages. Ideal for feature grids, product highlights, service offerings, capability listings. DO NOT use for general content (use cards). DO NOT use for comparisons (use cards or tables). **CRITICAL: NEVER nest featurecards inside featurecards or cards inside featurecards - use multiple featurecards at same level.**
Never nest feature cards inside other feature cards or regular cards. Use multiple feature cards at the same level instead.
Trend visualization for continuous data over time.When agents use it:
User explicitly asks for a line chart
Trends over time
Continuous data changes
Comparing time-based metrics
Default prompt instructions:
Copy
Ask AI
Use; when the user asks for a line chart, for trends over time, continuous data changes, or comparing time-based metrics. Ideal for time series, stock prices, user growth, performance tracking over time. DO NOT USE for categorical comparisons (use barchart). DO NOT use for proportions (use piechart). DO NOT use for discrete periods with gaps (use barchart).
Best for: Time series data, stock prices, user growth, performance tracking, continuous metrics
Part-to-whole visualizations for proportions and distributions.When agents use it:
User explicitly requests a pie chart
Proportions and distributions
Percentages
Part-to-whole relationships
Default prompt instructions:
Copy
Ask AI
Use; when the user requests a pie chart, for proportions, distributions, percentages, or part-to-whole relationships. Ideal for market share, budget allocation, survey results, category breakdowns. DO NOT USE for time series trends (use linechart). DO NOT use for comparing categories (use barchart). DO NOT use for more than 7-8 segments (becomes unreadable).
Keep pie charts to 7-8 segments maximum. Beyond that, they become difficult to read—use a bar chart instead.
Best for: Market share, budget allocation, survey results, category breakdowns
Numbered sequential instructions for multi-step processes.When agents use it:
Sequential instructions
Tutorials and how-to guides
Installation guides
Recipes
Ordered procedures
Onboarding flows
Setup wizards
Multi-step processes
Default prompt instructions:
Copy
Ask AI
Use for sequential instructions, tutorials, installation guides, recipes, or ordered procedures. Ideal for onboarding flows, setup wizards, multi-step processes. DO NOT use for unordered lists (use markdown or cards). DO NOT use for single-step instructions.
Tabbed interfaces for organizing alternative content views.When agents use it:
Code examples in multiple languages
Different views of the same data
Categorical content organization
API documentation
Multi-language tutorials
Alternative approaches
Default prompt instructions:
Copy
Ask AI
Use for code examples in multiple languages, different views of same data, or categorical content organization. Ideal for API documentation, multi-language tutorials, alternative approaches. DO NOT use for sequential content (use steps). DO NOT use for single option.
Best for: Multi-language code examples, platform-specific instructions, alternative solutions