Skip to content

Transform config reference

result_transform is JSON config on an API Request (or eligible MCP) tool. Chatevo applies it to successful responses before sending content to the widget.

FieldTypeDescription
items_pathstringDot path to array of items (e.g. data.offers, products)
layoutenumcarousel, grid, list, single
card_typeenumproduct, media
sort_bystringfield:asc or field:desc — supports nested paths
limitintegerMax items to render
actionsarrayButton labels shown on each card
fieldsobjectMaps card slots to JSON paths

Each key is a card slot; value is a path into each item object (relative to items in the array):

{
"items_path": "data.offers",
"layout": "carousel",
"card_type": "media",
"sort_by": "totalGrossAmount.amount:asc",
"limit": 8,
"actions": ["Book This Room", "More Details"],
"fields": {
"title": "title",
"subtitle": "roomCategory",
"image_url": "photos.0.url",
"price": "totalGrossAmount.amount",
"currency": "totalGrossAmount.currency",
"url": "deepLink"
}
}
PatternMeaning
nameProperty on item
price.amountNested object
images.0.urlArray index
metadata.tags.0Mixed nesting

Format: path:direction

ExampleEffect
price:ascCheapest first
totalGrossAmount.amount:descHighest price first
rating:descTop rated first

Array of strings — button labels in order. Link targets come from mapped url or action-specific paths if configured in your transform variant.

ConditionResult
Tool HTTP errorNo rich content
items_path missing or empty arrayText-only reply
Invalid pathsLogged; cards omitted or partial
  1. Test the tool with real API JSON.
  2. Confirm items at items_path match expected count.
  3. Preview in assistant chat before production deployment.