← 返回
未分类 中文

Data To Word Report

Automatically generate a professional Word analysis report from user-provided data files, including data overview, key metric statistics and trend analysis,...
自动根据用户提供的数据文件生成专业的Word分析报告,包括数据概览、关键指标统计与趋势分析。
openlark openlark 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 85
下载
💾 1
安装
1
版本
#latest

概述

Data to Word Analysis Report

Automatically generate a professionally formatted analysis report (.docx) from data files, ready for presentation.

Use Cases

Use when users need to "generate analysis report", "convert data to Word", or "produce a report".

Workflow

1. Read Data

Read the user-uploaded data file, automatically detect the format (CSV/JSON/Excel/TXT), extract the data, and confirm the structure.

2. Analyze Data

Perform the following analysis on the data:

  • Data Overview: Row count, column count, field types, missing value statistics, time range
  • Key Metrics: Mean/median/max/min/standard deviation for key numeric columns
  • Trend Analysis: If a time column exists, calculate trends by time dimension
  • Key Findings: Outliers, significant changes, critical conclusions

3. Generate Report

Call the script to generate the Word report:

python3 scripts/gen_report.py '<output_path>' '<report_json>'
  • output_path: Output path, e.g., /root/.openclaw/workspace/analysis_report.docx
  • report_json: JSON string, see structure below

report_json Structure

{
  "title": "Data Analysis Report",
  "sections": [
    {
      "heading": "I. Data Overview",
      "paragraphs": ["This analysis covers 1,234 records...", "Time range: 2024-01 to 2024-12"],
      "table": {
        "headers": ["Metric", "Value"],
        "rows": [["Total Records", "1,234"], ["Fields", "8"], ["Missing Rate", "2.1%"]]
      }
    },
    {
      "heading": "II. Key Metrics",
      "paragraphs": ["Average sales: 456K, median: 382K..."],
      "table": {
        "headers": ["Metric", "Mean", "Median", "Max", "Min"],
        "rows": [["Sales (10K)", "45.6", "38.2", "120.5", "5.3"]]
      }
    },
    {
      "heading": "III. Trend Analysis",
      "paragraphs": ["Overall upward trend, Q4 grew 23% QoQ..."],
      "table": null
    },
    {
      "heading": "IV. Key Findings & Recommendations",
      "paragraphs": ["1. East China region accounts for the highest share (38%)...", "2. December return rate abnormally rose to 5.7%..."],
      "table": null
    }
  ]
}

The table field in each section is optional; pass null to output only paragraphs.

4. Output Results

Inform the user of the file save location and display an overview of the report structure.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-06-07 06:56 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

Toutiao Graphic Publisher

openlark
通过浏览器自动化在头条发布图文内容,支持智能排版、自动生成热门标签等功能。
★ 2 📥 1,008
data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 211 📥 69,464
data-analysis

AdMapix

fly0pants
AdMapix 原始数据层,提供广告创意、应用、排名、下载/收入及市场元数据。返回 AdMapix API 的结构化 JSON;调用方...
★ 297 📥 141,476