SuperAPI AI Directory

lark-workflow-meeting-summary

Office & productivity

View repository

Updated 10-13 20:08

About this skill

Meeting Minutes Compilation Workflow

CRITICAL — Before starting, you MUST first fully read ../lark-shared/SKILL.md and ../lark-meeting/SKILL.md. Authentication, identity, and permissions are governed by lark-shared; the relationship between meetings and artifacts, artifact selection, and transcript routing are governed by lark-meeting.

Applicable Scenarios

  • "Help me compile this week's meeting minutes" / "Summarize recent meetings" / "Generate a weekly meeting report"
  • "See what meetings were held today" / "Review what meetings were held over the past week"

Prerequisites

Only user identityis supported. Before execution, ensure authorization has been granted:

lark-cli auth login --domain vc        # 基础(查询+纪要)
lark-cli auth login --domain vc,drive   # 含读取纪要文档正文、生成文档
lark-cli auth login --domain vc,drive,minutes  # 含无 note_id 时的妙记备选路径

Workflow

{时间范围} ─► vc +search ──► 会议列表 (meeting_ids)
                   │
                   ▼
               vc +detail ──► 获取 note_id 
                   │
                   ▼
               note +detail ──► 纪要文档 tokens
                   │
                   ▼
               drive metas batch_query 纪要元数据
                   │
                   ▼
               结构化报告

Step 1: Determine the time range

Defaultpast 7 days. Inference rules: "today"→the current day, "this week"→this Mondaynow, "last week"→last Mondaylast Sunday, "this month"→the 1st~now.

Note: Date conversion must call system commands (such as date), do not calculate mentally. Time range parameters need to be formatted according to the CLI's actual requirements (usually YYYY-MM-DD or ISO 8601).

Step 2: Query meeting records

# page-size 最大为 30
lark-cli vc +search --start "<YYYY-MM-DD>" --end "<YYYY-MM-DD>" --format json --page-size 30
  • Time range splitting: the maximum search time range is 1 month. Searching meetings over a longer time range requires splitting into multiple queries with a time range of one month.
  • --end isincluding the current daydate (that is, when querying "today", fill in today for both start and end)
  • --format json outputs JSON format, you are better at parsing JSON data.
  • --page-size 30 at most 30 entries per page.
  • When there is page_token you must continue paging and collect all id fields (meeting-id)

Step 3: Obtain minutes metadata

  1. Query the minutes information associated with the meeting
# 首先获取 note_id 和 minute_token
lark-cli vc +detail --meeting-ids "id1,id2,...,idN"

# 然后用 note_id 获取文档 tokens(如有多个需分别获取)
lark-cli note +detail --note-id "note_id"
  • Query based on the meeting-id collected in the previous step.
  • At most 50 can be queried at a time; more than 50 requires batched calls.
  • Some meetings do not have note_id or return the error no notes available,Do not directly mark "no minutes": first check whether vc +detail returned minute_token, and if so, follow the Minutes fallback path below;note_id and minute_token only when neither is present mark "no minutes".
  • Record each minutes' note_id(minutes ID),note_display_type(display type:unknown / normal / unified)、note_doc_token(minutes document Token) and verbatim_doc_token(transcript document Token).

Minutes fallback path (no note_id, with minute_token when): Smart minutes and Minutes are two independent artifact chains; the absence of smart minutes does not mean this meeting has no content.

# --minute-tokens 是复数形式(+download 同);--output-dir 只接受相对路径
lark-cli minutes +detail --minute-tokens "<minute_token>" --transcript --output-dir ./transcripts --as user

The transcript will be saved to disk for Step 4 to independently extract based on the original speech (do not copy the AI summary). If it returns No read permission(2091005), first inform the user of the no-permission fact, and after the user explicitly agrees, apply with the singular flag:lark-cli minutes +apply-permission --minute-token "<minute_token>" --perm view --as user; the application can only be retried after the owner approves it on the client. See Query Minutes and associated artifacts based on minute_token。

Transcript routing is determined by note_display_type decides(See Query smart meeting notes and related artifacts by note_id):

  • normal: The transcript is a standalone document; links/content go through verbatim_doc_token。
  • unified: transcriptis not a standalone document, there is no shareable transcript document link; when transcript content is needed, use note +transcript --note-id <note_id>(lark-meeting) to pull it locally, and in the report just mark it as "unified meeting notes".
  1. Get meeting notes document and transcript document links
# 学习命令使用方式
lark-cli schema drive.metas.batch_query

# 批量获取纪要文档与逐字稿链接: 一次最多查询 10 个文档
# 仅对 note_doc_token 与 normal 纪要的 verbatim_doc_token 查询链接
lark-cli drive metas batch_query --data '{"request_docs": [{"doc_type": "docx", "doc_token": "<doc_token>"}], "with_url": true}'

Step 4: Organize the meeting notes report

Choose the output format based on the time span:

  • Single-day summary("today"/"yesterday"): Use the "Today's Meeting Overview" title, and list each meeting's time, topic, meeting notes link, and transcript link (unified meeting notes have no transcript link, mark as "unified meeting notes, transcript requires note +transcript to pull").
  • Multi-day/weekly report("this week"/"past 7 days", etc.): Use the "Meeting Notes Weekly Report" title, including overview statistics and per-meeting details.

Step 5: Generate a document (optional, when the user requests it)

Read ../lark-doc/SKILL.md to learn the cloud document skill.

lark-cli docs +create --doc-format markdown --content $'<title>会议纪要汇总 (<start> - <end>)</title>\n<内容>'
# 或追加到已有文档
lark-cli docs +update --doc "<url_or_token>" --command append --doc-format markdown --content $'<内容>'

Reference