SuperAPI AI 工具集

recipe-generate-report-from-sheet

办公与效率

查看项目

更新于 10-15 21:10

技能介绍

用途:从 Google Sheet 读取数据,并创建格式化的 Google Docs 报告。

前置条件:需先加载 gws-sheets、gws-docs、gws-drive 三个技能。

主要步骤:

  1. 读取数据:gws sheets +read --spreadsheet-id SHEET_ID --range 'Sales!A1:D'
  2. 创建报告文档:gws docs documents create --json '{"title": "Sales Report - January 2025"}'
  3. 写入报告:gws docs +write --document-id DOC_ID --text '...'
  4. 分享给相关方:gws drive permissions create --params '{"fileId": "DOC_ID"}' --json '{"role": "reader", "type": "user", "emailAddress": "cfo@company.com"}'

适用场景:将销售等表格数据汇总为文档报告并共享。

限制:资料未提供更多错误处理、权限范围或平台细节。