Advanced Formatting
Modern chat interfaces are no longer limited to plain text — they can present rich, interactive, and dynamic content directly inside the conversation.
To support this, we’ve introduced a feature that uses custom markdown code blocks to display enriched content such as charts, widgets, or visual summaries. These code blocks follow a simple syntax:
```customType
{ JSON DATA }
```
This approach lets developers define structured content using JSON, which is then rendered beautifully in the chat UI depending on the customType.
Supported Enriched Content Blocks
At this stage, the enriched formatting system supports a single content block:
Financial Chart
Render interactive financial charts with historical price data and real-time market metrics.
Additional content types are planned and will be introduced in future iterations of the platform.
How to Enable Enriched Formatting
To activate this feature in your project, you need to set the appropriate feature flag.
Set the following environment variable within next-chat
to enable all advanced formatting features globally:
FEATURE_FLAG_ENABLE_ADVANCED_FORMATTING_UN_9758=true
This will activate all available customType handlers, including financialchart and any future types.
Author | @Sebastien Barbier |
---|
Related content
© 2025 Unique AG. All rights reserved. Privacy Policy – Terms of Service