Overview
Display configuration transforms raw API data into rich, visual responses:| Display Type | Best For |
|---|---|
product_card | Single item with image, price, details |
product_carousel | Multiple products, recommendations |
table | Structured data, comparisons |
buttons | Quick actions, choices |
image | Single image display |
text | Plain text (default) |
custom | Custom HTML/template |
Configuration Structure
Field Mappings
Field mappings use JSONPath to extract data from API responses:JSONPath Basics
| Pattern | Meaning |
|---|---|
$.field | Root level field |
$.nested.field | Nested field |
$.array[0] | First array item |
$.array[*].field | Field from all array items |
Example API Response
Mapping Configuration
Display Types
Product Card
Single product display with image, title, price, and action button.| Option | Type | Description |
|---|---|---|
showPrice | boolean | Display price |
showImage | boolean | Display product image |
showAddToCart | boolean | Show add to cart button |
Product Carousel
Multiple products in a scrollable carousel.Table
Structured data in rows and columns.| Property | Type | Description |
|---|---|---|
key | string | Field name in data |
label | string | Column header |
width | string | Column width (%, px) |
Buttons
Quick action buttons.primary— Filled, prominentsecondary— Subtle backgroundoutline— Border only
Image
Single image display.Custom Template
Fully custom rendering with templates.Text Fallback
Always provide a text fallback for:- Email channel responses
- Accessibility
- Failed display rendering
{{count}}— Number of items{{fieldName}}— Any mapped field{{products}}— Formatted list of items
Complete Examples
E-commerce Product Search
Order Status Table
Feature Comparison
Quick Actions
Best Practices
Image Handling
- Use HTTPS URLs for images
- Provide fallback for broken images
- Optimize image sizes for fast loading
Responsive Design
- Display types are mobile-responsive by default
- Carousels scroll horizontally on mobile
- Tables may scroll on narrow screens
Accessibility
- Always include
textFallback - Use descriptive button labels
- Ensure sufficient color contrast
See Also
- HTTP Tools — API integration
- Tools Overview — Tool types and AI usage
- E-commerce Use Case — Product display examples