Data to TOON
Data to TOON turns the data coming from an earlier step into TOON text. TOON is a compact, easy-to-read text format designed to hand structured data to an AI model: it says the same as a table or a list of fields, using less text.
Use it when you want to include data in the instructions of an agent or a model and keep it short.
When to use it
- Give an agent a product catalogue so it can recommend one.
- Include a customer’s latest orders in an instruction without making the text too long.
- Summarise a large list of records, such as tickets or invoices, with AI.
- Store data as readable text that you can later recover with TOON to Data.
Configuration
| Field | What it does |
|---|---|
| Data (required) | The data you want to convert. You can connect one or several records. |
Output
The Data output returns one record for each incoming record. Each one has a toon field with the text in TOON format.
Connect that text to an agent’s instructions, a text template or any component that takes text.
Example
Your flow reads the 50 best-selling products, with their price and stock, from a spreadsheet. Data to TOON turns them into compact text, and you include it in the instructions of an agent that tells customers which products are available.
Related components
- TOON to Data: the reverse step.
- Data to JSON: the same data as JSON.