Skip to main content

Text

A text UI type is used to display Markdown / plain text in AI chat. To use it, in your AI Agent builder service you should response in output key with this format:

output:

[
... can be other ui types ...
{
"ui_type": "text",
"title": "Assistant advice",
"description": "AI-generated explanation or recommendation",
"data": {
"content": "I prepared a dataset summary, a revenue trend chart, a regional pie chart, and a Mermaid diagram describing the system flow."
}
},
... can be other ui types ...
]
tip

Title and description are optional. If you need to display only message from AI Assistant, you can omit them.
Content should be in data.content field. You can use Markdown tags in the content, and type of content should be string. Generally, here you can put response from AI Agent Node.

For N8N Agent Builders
If you are using n8n, the content mapping should be: "content": "{{ $json.output }}". So if you need to display only the response from N8N AI Agent Node, you can use this format:

[
... can be other ui types ...
{
"ui_type": "text",
"data": {
"content": "{{ $json.output }}"
}
}
... can be other ui types ...
]

This will be rendered as a text block in the chat.