技能 automate-whatsapp
📦

automate-whatsapp

低风险 ⚙️ 外部命令🌐 网络访问🔑 环境变量

自动化 WhatsApp 消息工作流

无需手动编码即可构建复杂的 WhatsApp 自动化。通过 Kapso 平台配置工作流触发器、管理执行并与外部服务集成。

支持: Claude Codex Code(CC)
🥉 73 青铜
1

下载技能 ZIP

2

在 Claude 中上传

前往 设置 → 功能 → 技能 → 上传技能

3

开启并开始使用

测试它

正在使用“automate-whatsapp”。 列出工作流 wf_123 的所有 WhatsApp 触发器

预期结果:

找到 2 个触发器:(1) +1-555-0100 的 inbound_message 触发器(活跃),(2) +1-555-0101 的 inbound_message 触发器(非活跃)

正在使用“automate-whatsapp”。 显示 exec_456 的执行事件

预期结果:

执行于上午 10:30 开始 -> 消息节点执行 -> 等待节点启动 -> 用户于上午 10:35 响应 -> 决定节点评估 -> 结束节点完成

正在使用“automate-whatsapp”。 查询 status 等于 active 的 customers 表

预期结果:

检索到 15 行匹配筛选条件。示例:客户 ABC Corp(状态:active,套餐:premium)、客户 XYZ Ltd(状态:active,套餐:standard)

安全审计

低风险
v1 • 2/24/2026

Static analysis flagged 137 patterns in SKILL.md documentation file, but all are false positives. The detected 'external_commands' are markdown code examples showing Node.js script usage, not actual shell execution. Network and env_access flags reference documentation content (GitHub URL and configuration examples), not runtime behavior. No malicious intent detected - this is legitimate workflow automation documentation for the Kapso platform.

1
已扫描文件
258
分析行数
4
发现项
1
审计总数
低风险问题 (1)
Documentation References External Scripts
SKILL.md references Node.js scripts in scripts/ directory that were not included in the scan. While the documentation appears legitimate, the actual script implementations should be reviewed before production deployment.

风险因素

⚙️ 外部命令 (3)
🌐 网络访问 (1)
🔑 环境变量 (1)
审计者: claude

质量评分

38
架构
100
可维护性
87
内容
50
社区
88
安全
100
规范符合性

你能构建什么

客户支持自动化

构建自动化客户支持流程,处理常见咨询、收集用户信息,并通过 WhatsApp 将复杂情况转接给人工客服。

电子商务订单通知

创建工作流,当电子商务平台事件触发时自动发送订单确认、发货更新和配送通知。

交互式问卷收集

设计基于按钮的交互式问卷,通过 WhatsApp 收集客户反馈,并根据响应进行条件分支。

试试这些提示

创建简单通知工作流
创建一个 WhatsApp 工作流,在用户首次联系企业时发送欢迎消息。包含开始节点和带有欢迎文本的消息节点。
构建基于决策的路由
创建一个工作流,包含一个根据用户消息内容路由用户的决定节点。如果消息包含"support",则路由到客服团队。如果消息包含"sales",则路由到销售团队。否则,发送一般咨询回复。
集成外部 API 进行数据查询
构建一个通过电话号码查询客户订单状态的工作流。创建一个查询订单数据库的函数节点,然后向客户发送包含订单详情的个性化消息。
多步骤对话与状态管理
使用按钮节点创建交互式问卷。在多条消息中收集用户响应,将答案存储在执行上下文变量中,最后生成摘要。如果用户停止响应,处理超时场景。

最佳实践

  • 在编辑之前始终先获取工作流图形以获取当前的 lock_version 并避免冲突
  • 使用文件路径定义图形和函数代码,而非内联 JSON,以提高可维护性
  • 在提交更新之前在本地验证工作流图形,以提前发现结构错误
  • 在部署到生产电话号码之前,在开发工作流中测试触发器配置
  • 将敏感凭据(如 API 密钥)存储在环境变量中,切勿放在工作流定义中

避免

  • Changing existing node IDs in a workflow graph - this breaks execution history and references
  • Using export statements or arrow functions in function code - Kapso requires standard function handler syntax
  • Creating workflows with multiple start nodes - exactly one start node with id 'start' is required
  • Referencing variables without initializing them in the execution context first

常见问题

What do I need before using this skill?
You need a Kapso platform account, WhatsApp Business API access, and environment variables KAPSO_API_BASE_URL and KAPSO_API_KEY configured.
Can I modify workflow graphs while they have active executions?
Yes, but use the lock_version mechanism. Fetch the graph first, make changes, then update with the expected lock_version to prevent conflicts.
What programming languages work for custom functions?
Functions use JavaScript with a specific handler signature: async function handler(request, env). The code runs in Kapso's serverless runtime.
How do I connect to external services like Slack or Google Sheets?
Use app integrations. Search for the app, get the action_id, create an integration with OAuth credentials, then reference it in agent nodes.
Can I store data between workflow executions?
Yes, use D1 database tables for persistent storage or the KV store for simple key-value data accessible via env.KV and env.DB in functions.
What happens if a workflow execution fails?
Failed executions can be inspected using get-execution and list-execution-events scripts. You can resume certain executions or force status updates for debugging.

开发者详情

文件结构

📄 SKILL.md