SuperAPI AI Directory

wecomcli-workflow-content-pipeline

Office & productivity

View repository

Updated 10-15 23:59

About this skill

WeCom Content Creation Pipeline

Through wecom-cli, operate WeCom smart sheets, documents, and to-dos to manage the entire content creation process from inspiration to complete plan.

Initial Configuration (Automatic Initialization)

Before performing any operation, first check whether the content pipeline configuration already exists in memory. If not, automatically create it according to the following process:

Step 1: Create Smart Sheet

wecom-cli doc create_doc '{"doc_type": 10, "doc_name": "内容创意管道"}'

Get from the returned result docid。

Step 2: Create Sub-sheets and Fields

# 创建子表1: 创意库
wecom-cli doc smartsheet_add_sheet '{"docid": "<DOCID>", "sheet_name": "创意库"}'

# 创建子表2: 创意研究
wecom-cli doc smartsheet_add_sheet '{"docid": "<DOCID>", "sheet_name": "创意研究"}'

Idea Library fields:

wecom-cli doc smartsheet_add_fields '{"docid": "<DOCID>", "sheet_id": "<SHEET_ID>", "fields": [
  {"field_title": "创意标题", "field_type": "FIELD_TYPE_TEXT"},
  {"field_title": "来源", "field_type": "FIELD_TYPE_TEXT"},
  {"field_title": "话题领域", "field_type": "FIELD_TYPE_TEXT"},
  {"field_title": "评估分数", "field_type": "FIELD_TYPE_TEXT"},
  {"field_title": "状态", "field_type": "FIELD_TYPE_SINGLE_SELECT"},
  {"field_title": "关联待办ID", "field_type": "FIELD_TYPE_TEXT"},
  {"field_title": "方案文档链接", "field_type": "FIELD_TYPE_TEXT"},
  {"field_title": "创建时间", "field_type": "FIELD_TYPE_TEXT"}
]}'

Idea Research fields:

wecom-cli doc smartsheet_add_fields '{"docid": "<DOCID>", "sheet_id": "<SHEET_ID>", "fields": [
  {"field_title": "关联创意", "field_type": "FIELD_TYPE_TEXT"},
  {"field_title": "研究来源", "field_type": "FIELD_TYPE_TEXT"},
  {"field_title": "研究类型", "field_type": "FIELD_TYPE_SINGLE_SELECT"},
  {"field_title": "摘要", "field_type": "FIELD_TYPE_TEXT"},
  {"field_title": "相关性", "field_type": "FIELD_TYPE_SINGLE_SELECT"}
]}'

Step 3: Save Configuration to Memory

Save the following information to the memory file content-pipeline-config.md:

---
name: content-pipeline-config
description: 内容创意管道智能表格配置信息
type: project
---

## 内容管道表配置

- docid: <DOCID>
- url: <创建时返回的URL>
- 表格名称: 内容创意管道
- 创意库 sheet_id: <SHEET_ID>
- 创意研究 sheet_id: <SHEET_ID>

Operation Process

In the following commands, <DOCID> and each <SHEET_ID> are read from content-pipeline-config in memory.

Mode 1: Idea Evaluation (Full Pipeline)

The user proposes an idea, and the AI automatically completes the entire process.

Interaction Process:

  1. User: "I have a content idea. I want to write an article about AI Agent implementation in enterprises"
  2. The AI performs the following steps

Step 1/5: Search for the latest topic developments

# AI 使用 WebSearch 搜索相关话题
# 搜索关键词:"AI Agent 企业落地 2026"、"AI Agent implementation enterprise"

Step 2/5: Check whether there is similar content in the knowledge base

# 如果知识库 Skill 已初始化,读取索引
wecom-cli doc smartsheet_get_records '{"docid": "<知识库DOCID>", "sheet_id": "<知识库SHEET_ID>"}'
# AI 按标签和标题匹配检查重复

Step 3/5: Check the existing idea library to avoid duplication

wecom-cli doc smartsheet_get_records '{"docid": "<DOCID>", "sheet_id": "<创意库SHEET_ID>"}'
# AI 检查是否有类似选题

Step 4/5: Evaluate idea value

The AI scores from 5 dimensions (each 1-10):

Dimension Weight Description
Timeliness 25% Whether the topic is currently popular
Differentiation 25% How much similar content already exists
Audience Value 20% Degree of attention from the target audience
Executability 15% Richness of materials, difficulty of production
Extensibility 15% Whether it can be split into a series

Step 5/5: Generate complete plan

Includes: title suggestions, content type, target word count, detailed outline.

Mode 2: Save Idea

Save the evaluation results to the idea library.

wecom-cli doc smartsheet_add_records '{"docid": "<DOCID>", "sheet_id": "<创意库SHEET_ID>", "records": [{"values": {
  "创意标题": [{"type": "text", "text": "AI Agent 在企业落地实战"}],
  "来源": [{"type": "text", "text": "用户创意"}],
  "话题领域": [{"type": "text", "text": "科技"}],
  "评估分数": [{"type": "text", "text": "7.6"}],
  "状态": [{"text": "灵感"}],
  "关联待办ID": [{"type": "text", "text": ""}],
  "方案文档链接": [{"type": "text", "text": ""}],
  "创建时间": [{"type": "text", "text": "2026-04-02"}]
}}]}'

Mode 3: Generate Plan Document

Generate a detailed plan document for high-scoring ideas.

# 创建方案文档
wecom-cli doc create_doc '{"doc_type": 3, "doc_name": "方案:AI Agent 企业落地实战"}'

# 写入方案内容
wecom-cli doc edit_doc_content '{"docid": "<方案DOCID>", "content": "# 方案:AI Agent 在企业落地实战\n\n## 评估总分:7.6/10\n\n### 评分明细\n| 维度 | 评分 | 说明 |\n|------|------|------|\n| 时效性 | 8/10 | AI Agent 是当下热门话题 |\n| 差异化 | 6/10 | 已有不少类似内容 |\n| 受众价值 | 9/10 | 企业用户高度关注 |\n| 可执行性 | 8/10 | 案例丰富 |\n| 延展性 | 7/10 | 可拆分为系列 |\n\n### 标题建议\n1. AI Agent 落地实战:5 个真实案例拆解\n2. 企业如何用 AI Agent 提效 300%\n\n### 大纲\n1. AI Agent 不是聊天机器人\n2. 案例一:自动化客服 — 成本降 60%\n3. 案例二:代码审查 — Bug 率降 40%\n...\n\n### 目标\n- 类型:深度文章\n- 字数:3000-5000 字", "content_type": 1}'

# 更新创意库状态
wecom-cli doc smartsheet_update_records '{"docid": "<DOCID>", "sheet_id": "<创意库SHEET_ID>", "key_type": "CELL_VALUE_KEY_TYPE_FIELD_TITLE", "records": [{"record_id": "RECORD_ID", "values": {
  "状态": [{"text": "方案"}],
  "方案文档链接": [{"type": "text", "text": "https://doc.weixin.qq.com/docx/<DOCID>"}]
}}]}'

Mode 4: Create Tracking To-do

Create a WeCom to-do for the idea to track execution progress.

wecom-cli todo create_todo '{"content": "创作「AI Agent 企业落地实战」(来源:内容创意管道)", "remind_time": "2026-04-09 09:00:00"}'

# 保存 todo_id 到创意库
wecom-cli doc smartsheet_update_records '{"docid": "<DOCID>", "sheet_id": "<创意库SHEET_ID>", "key_type": "CELL_VALUE_KEY_TYPE_FIELD_TITLE", "records": [{"record_id": "RECORD_ID", "values": {
  "状态": [{"text": "执行中"}],
  "关联待办ID": [{"type": "text", "text": "<TODO_ID>"}]
}}]}'

Mode 5: View Idea Library

Query all ideas and their statuses.

wecom-cli doc smartsheet_get_records '{"docid": "<DOCID>", "sheet_id": "<创意库SHEET_ID>"}'

Output format example:

| 创意标题 | 领域 | 评分 | 状态 |
|---------|------|------|------|
| AI Agent 落地实战 | 科技 | 7.6 | 执行中 |
| 飞书自动化指南 | 科技 | 8.2 | 方案 |
| 投资入门系列 | 商业 | 6.5 | 灵感 |

Mode 6: Save Research Materials

Save the searched reference materials to the idea research sheet.

wecom-cli doc smartsheet_add_records '{"docid": "<DOCID>", "sheet_id": "<创意研究SHEET_ID>", "records": [{"values": {
  "关联创意": [{"type": "text", "text": "AI Agent 企业落地实战"}],
  "研究来源": [{"type": "text", "text": "https://example.com/agent-cases"}],
  "研究类型": [{"text": "网页"}],
  "摘要": [{"type": "text", "text": "介绍了3个AI Agent在客服、编程、数据分析中的实际应用案例..."}],
  "相关性": [{"text": "高"}]
}}]}'

Field Type Writing Format (General Rules)

For the complete field type format description, see crm-schema

Field Type Writing Format Example
TEXT [{"type":"text","text":"值"}] Idea title, source, domain, score, etc.
SINGLE_SELECT [{"text":"选项文本"}] Status, research type, relevance, etc.

Practical Notes

Common Pitfalls

  1. Do not pass key_type when updating — must include "key_type": "CELL_VALUE_KEY_TYPE_FIELD_TITLE"
  2. When an API call fails — check the error code: 301085 means the docid is invalid (use the url instead); 2022004 means the field was not found (call add_fields first); 2022003 means the record does not exist (call add_records first). When encountering an error, first use smartsheet_get_sheet '{"url": "<URL>"}' to verify the table structure.
  3. Evaluation score — stored as TEXT type, making it easier for AI to perform numeric comparison and sorting
  4. Idea deduplication — before evaluation, first check the idea library and knowledge base to avoid duplicate topics
  5. Status flow — inspiration → researching → proposal → in progress → completed/abandoned
  6. options do not take effect when creating SINGLE_SELECT — smartsheet_add_fields the passed-in property.options will not pre-create options; options are automatically created when a record is first written via [{"text": "选项"}] . When creating a field, the property parameter can be omitted.
  7. Knowledge base linkage — requires wecomcli-workflow-knowledge-base to be initialized before duplicate checking is possible

Data linkage

  • This Skill's data is read by the following Skills:
    • wecomcli-workflow-business-advisor — content strategy advisor analyzes topic quality and publishing cadence