Sidemate
桌伴Sidemate Wiki

可视化报告

一键生成可视化报告。

让 AI 直接生成 Word 文档、HTML 可视化报告。

两种输出格式

格式触发方式输出
---------------------
Word 文档AI 写 .md → 标记完成.docx(自动转换)
HTML 报告AI 写 .html → 标记完成.html(含 mermaid 图表,浏览器直接看)

怎么让 AI 生成

注:可视化报告需在在线模式下生成;离线模式可生成 Word 文档(.docx)。

直接用自然语言告诉 AI 你要什么:

把这份 Q3 复盘文档转成一份 HTML 可视化报告。

或者:

把下面这份 PRD 转成一份 HTML 可视化报告:
[粘贴 PRD 内容]

AI 会先写 Markdown/HTML 源码到工作区,然后自动调用 set_doc_status 触发生成。

两阶段生成(长文档)

对于长文档,AI 采用两阶段策略:

  1. 提纲确认:先输出文档提纲,等用户确认后再展开
  2. 展开写作:按确认的提纲逐章生成,自动合并成完整文档

这避免了一次性生成导致的质量下降。

Mermaid 图表

AI 可以在文档中嵌入 mermaid 图表(流程图、思维导图、时间线、架构图等),生成的 HTML 报告会自动渲染。支持缩放和拖拽。

---

Let AI generate Word documents and HTML visual reports.

Two Output Formats

FormatTriggerOutput
-------------------------
Word docAI writes .md → marks complete.docx (auto-converted)
HTML reportAI writes .html → marks complete.html (with mermaid charts, opens in browser)

How to Generate

Note: Visual reports require Online mode; Offline mode can generate Word documents (.docx).

Just tell AI what you want in natural language:

Turn this Q3 retrospective into an HTML visual report.

AI writes the source to workspace, then auto-triggers generation.

Two-Phase Generation (Long Documents)

For long docs, AI uses a two-phase strategy:

  1. Outline confirmation: Output outline first, wait for user approval
  2. Full generation: Generate chapter by chapter, auto-merge

This prevents quality degradation from one-shot generation.

Mermaid Charts

AI can embed mermaid diagrams (flowcharts, mind maps, timelines, architecture diagrams) in HTML reports. Auto-rendered with zoom and drag support.

---