OpenCoze
返回模板库

使用 Codex 自动生成财务报告与差异桥分析

Data AnalysisCoze更新于 2026-05-13

在 Coze 中利用 Codex 从原始财务数据快速生成 MBR、报告包、差异桥、模型检查和规划场景,提升财务团队的工作效率与准确性。

System Prompt
Generate a Python script that takes {financialData} as input and produces a {reportType} report. If {reportType} is 'model check', also validate against {modelName}. Output should be in {outputFormat}.

变量清单(在目标 AI 工具中填写)

此处仅展示模板里的占位变量,不是在本站输入。请复制 Prompt 后,在 Coze / Dify / ChatGPT 中替换这些变量。

{financialData}

原始财务数据,CSV 或 JSON 格式

填写建议:替换为你的真实业务内容。

{reportType}

报告类型,可选值:MBR、variance bridge、model check、planning scenario

填写建议:替换为你的真实业务内容。

{modelName}

需要验证的财务模型名称(仅在报告类型为 model check 时使用)

填写建议:替换为你的真实业务内容。

{scenarioParams}

规划场景的参数(仅在报告类型为 planning scenario 时使用)

填写建议:替换为你的真实业务内容。

{outputFormat}

输出格式,可选值:Excel、PDF、JSON

填写建议:替换为你的真实业务内容。

快捷变量填充器(可选)

可在浏览器本地填写变量,自动生成可直接运行的 Prompt。

{financialData}

原始财务数据,CSV 或 JSON 格式

{reportType}

报告类型,可选值:MBR、variance bridge、model check、planning scenario

{modelName}

需要验证的财务模型名称(仅在报告类型为 model check 时使用)

{scenarioParams}

规划场景的参数(仅在报告类型为 planning scenario 时使用)

{outputFormat}

输出格式,可选值:Excel、PDF、JSON

生成结果预览

未填: 5
Generate a Python script that takes {financialData} as input and produces a {reportType} report. If {reportType} is 'model check', also validate against {modelName}. Output should be in {outputFormat}.

通用使用说明

适用场景

需要快速产出 Data Analysis 相关内容,并希望用结构化 Prompt 提升稳定性。

解决问题

减少从零写 Prompt 的时间,降低输出质量不稳定、漏条件、漏格式的问题。

使用步骤

  1. 点击“复制模板 Prompt”。
  2. 将 Prompt 粘贴到你的 AI 工具(如 Coze / Dify / ChatGPT)。
  3. 按上方变量清单替换 {变量名}
  4. 运行并根据结果微调约束条件。

不适用场景

需要实时联网数据、外部数据库写入或多工具自动编排时,应使用完整工作流(Agent/Automation)版本。

成功案例

输入:
{"financialData": "sample.csv", "reportType": "variance bridge", "outputFormat": "Excel"}
输出:
生成的 Excel 文件包含完整的差异桥分析表格,已保存至 /reports/variance_bridge.xlsx

边界情况

输入:
{"financialData": "sample.csv", "reportType": "model check", "outputFormat": "PDF"}
修复建议:
请在输入数据中添加 'Actual' 列并重新运行。

下一步推荐

继续浏览同类模板,并搭配相关工具提升效果。

继续使用 / 最近浏览

还没有最近浏览记录。

工作流步骤

  1. 1️⃣ 将 {financialData} 和 {reportType} 作为输入提供给 Codex,生成对应的 Python 脚本或 Excel 公式。

  2. 2️⃣ 若 {reportType} 为 'model check',脚本将自动调用 {modelName} 进行验证并输出差异。

  3. 3️⃣ 若 {reportType} 为 'planning scenario',脚本使用 {scenarioParams} 进行情景模拟并生成结果。

  4. 4️⃣ 运行脚本,生成 {outputFormat} 格式的报告文件,并将文件路径返回给用户。

约束条件

  • 数据行数超过 10,000 行时,建议先分批处理或使用 Spark 进行预处理。
  • 输入数据缺少关键列(如 'Actual'、'Budget')会导致脚本报错。

同类内容继续浏览

Data Analysis

推荐配套工具

这些工具可与当前模板组合使用。

Coze

官网链接

低代码 Agent/Workflow 平台,适合快速搭建自动化流程。

访问

OpenAI

官网链接

通用大模型能力,适合内容生成、分析和开发场景。

访问