create_dashboard_doc
Create interactive dashboards as AFFiNE documents from a topic or metrics, using optional custom HTML or an auto-generated template with AFFiNE's design tokens.
Instructions
Create an AFFiNE document containing a rich interactive HTML/CSS dashboard widget styled with AFFiNE color tokens and design system layout.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Title of the dashboard document | Visual Dashboard |
| topic | Yes | Topic, requirements, or metrics to showcase in the dashboard | |
| htmlContent | No | Optional custom single-file HTML code. If omitted, a rich interactive dashboard HTML template is generated automatically. | |
| workspaceId | No | Target workspace ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| kind | Yes | ||
| docId | Yes | ||
| title | Yes | ||
| topic | Yes | ||
| workspaceId | Yes | ||
| markdownLength | Yes | ||
| previewHtmlSnippet | Yes |