Data Tables
When the agent presents structured data, it uses interactive datatable blocks instead of static markdown tables. You get:- Click column headers to sort ascending/descending
- Type to filter across all columns
- Smart formatting — currencies, percentages, dates, and status badges are rendered with appropriate styling
$4,200,000), Growth (+15.2% in green), and Status (colored badges) — not just raw numbers.
Column Types
| Type | What it does | Example |
|---|---|---|
| text | Plain text | John Doe |
| number | Formatted with commas | 1,500,000 |
| currency | Dollar formatting | $4,200,000 |
| percent | Colored percentage | +15.2% (green) or -3.0% (red) |
| boolean | Yes/No display | Yes / No |
| date | Formatted date | Jan 15, 2025 |
| badge | Colored status pill | Active, Pending |
Spreadsheets
For financial reports or data you might want to export, the agent uses spreadsheet blocks — Excel-style grids with row numbers and column letters.Diagrams
Craft Agent renders Mermaid diagrams as beautiful themed SVGs. The agent uses these proactively when explaining architecture, data flows, or relationships.Supported Diagram Types
Flowcharts
Process flows, decision trees, system architecture
Sequence Diagrams
API interactions, request/response flows, protocol sequences
Entity Relationship
Database schemas, data models, table relationships
State Diagrams
State machines, workflow transitions, lifecycle states
Class Diagrams
Object models, inheritance hierarchies, interfaces
Charts
Bar charts, line charts for metrics and trends
HTML Preview
When the agent works with rich HTML content — emails, newsletters, styled reports — it renders them inline as live previews rather than converting to plain text.- Email bodies from Gmail or Outlook
- HTML reports from analytics tools
- Newsletter previews with complex layouts
- Styled documents where markdown would lose formatting
Tabbed Views
When you have multiple related items (like an email thread), the agent shows them as tabs — click to switch between the original, replies, and forwards.PDF Preview
PDF documents are displayed inline with the first page visible and an expand button for full multi-page navigation.Code Diffs
When the agent modifies files, it shows changes as unified code diffs — a familiar format with red (removed) and green (added) lines, making it easy to review exactly what changed.How does the agent choose which format to use?
How does the agent choose which format to use?
The agent picks the best format automatically based on the data:
- Structured data (rows and columns) → datatable or spreadsheet
- Relationships or flows → Mermaid diagram
- Rich HTML content (emails, reports) → HTML preview
- PDF files → PDF preview
- Code changes → unified diff
- Simple text → regular markdown
Can I export data from tables?
Can I export data from tables?
Spreadsheet blocks include export functionality — you can download the data as
.xlsx or .csv. Datatable blocks are optimised for viewing and filtering rather than export.What about large datasets?
What about large datasets?
For datasets with 20+ rows, the agent writes the data to a file and references it instead of including all rows inline. This keeps conversations fast and responsive even with thousands of rows.