CLASSIFIED: OPEN DOSSIER
InnoFlow Pieces 插件文档
2026-01-23 Innora Team
# Pieces 插件文档
InnoFlow 提供 **30+ 原生插件**,专为中国及亚太市场深度优化。
## 🔴 支付模块
### 微信支付 (wechat-pay)
中国领先的移动支付解决方案,支持微信支付 V3 API。
**Actions:**
| Action | 说明 | 参数 |
|--------|------|------|
| `create-native-pay-order` | 创建 Native 支付订单 | orderId, amount, description |
| `create-jsapi-pay-order` | 创建 JSAPI 支付订单 | orderId, amount, openId |
| `query-order` | 查询订单状态 | orderId / transactionId |
| `close-order` | 关闭订单 | orderId |
| `create-refund` | 创建退款 | orderId, refundAmount, reason |
| `query-refund` | 查询退款状态 | refundId |
**Triggers:**
| Trigger | 说明 |
|---------|------|
| `new-payment-notification` | 支付成功回调 |
| `new-refund-notification` | 退款成功回调 |
**配置示例:**
```json
{
"mchId": "1900000001",
"appId": "wx8888888888888888",
"apiKeyV3": "your-api-key-v3",
"serialNo": "your-certificate-serial-no",
"privateKey": "-----BEGIN RSA PRIVATE KEY-----..."
}
```
---
### 支付宝 (alipay)
支付宝支付集成,支持 RSA2 签名。
**Actions:**
| Action | 说明 |
|--------|------|
| `create-web-pay-order` | 创建网页支付订单 |
| `create-wap-pay-order` | 创建 H5 支付订单 |
| `create-app-pay-order` | 创建 APP 支付订单 |
| `query-order` | 查询订单状态 |
---
## 🟡 协作模块
### 钉钉 (dingtalk)
阿里巴巴旗下企业级智能移动办公平台。
**Actions:**
| Action | 说明 | 参数 |
|--------|------|------|
| `send-message` | 发送消息 | userId, content, msgType |
| `send-work-notification` | 发送工作通知 | userIdList, msg |
| `create-approval` | 创建审批实例 | processCode, originatorUserId, formData |
| `get-user-info` | 获取用户信息 | userId |
| `get-department-list` | 获取部门列表 | deptId |
**Triggers:**
| Trigger | 说明 |
|---------|------|
| `new-approval-instance` | 新审批实例创建 |
| `new-event-callback` | 事件回调(支持 XML 解密) |
---
### 飞书 (feishu)
字节跳动企业协作平台。
**Actions:**
| Action | 说明 |
|--------|------|
| `send-message` | 发送消息 |
| `send-card-message` | 发送互动卡片 |
| `create-bitable-record` | 创建多维表格记录 |
| `update-bitable-record` | 更新多维表格记录 |
| `get-user-info` | 获取用户信息 |
---
### 企业微信 (wecom)
腾讯企业微信集成。
**Actions:**
| Action | 说明 |
|--------|------|
| `send-message` | 发送应用消息 |
| `send-external-message` | 发送外部联系人消息 |
| `get-user-info` | 获取用户信息 |
| `get-department-list` | 获取部门列表 |
| `add-external-contact` | 添加外部联系人 |
| `get-external-contact` | 获取外部联系人详情 |
---
## 🟢 AI 服务模块
### 通义千问 (qwen)
阿里云大模型服务。
**Actions:**
| Action | 说明 |
|--------|------|
| `chat-completion` | 对话补全 |
| `text-generation` | 文本生成 |
| `image-generation` | 图像生成 (Wanx) |
| `code-generation` | 代码生成 |
| `multimodal-chat` | 多模态对话 |
---
### OCR 识别 (china-ocr)
多服务商中国 OCR 识别服务。
**Actions:**
| Action | 说明 | 服务商 |
|--------|------|--------|
| `general-ocr` | 通用 OCR | 腾讯/阿里/百度 |
| `id-card-ocr` | 身份证识别 | 腾讯/阿里/百度 |
| `business-license-ocr` | 营业执照识别 | 腾讯/阿里 |
| `bank-card-ocr` | 银行卡识别 (Luhn 校验) | 腾讯/阿里 |
| `vehicle-license-ocr` | 行驶证识别 | 腾讯/阿里 |
| `invoice-ocr` | 发票识别 | 腾讯/阿里 |
---
## 🔵 云服务模块
### 阿里云 (aliyun)
阿里云 OSS + SMS 服务。
**Actions:**
| Action | 说明 |
|--------|------|
| `upload-to-oss` | 上传文件到 OSS |
| `download-from-oss` | 从 OSS 下载文件 |
| `list-oss-objects` | 列出 OSS 对象 |
| `send-sms` | 发送短信 |
| `send-batch-sms` | 批量发送短信 |
| `query-sms-send-details` | 查询短信发送详情 |
---
### 腾讯云 (tencent-cloud)
腾讯云 COS + SMS 服务。
**Actions:**
| Action | 说明 |
|--------|------|
| `upload-to-cos` | 上传文件到 COS |
| `download-from-cos` | 从 COS 下载文件 |
| `list-cos-objects` | 列出 COS 对象 |
| `send-sms` | 发送短信 (TC3 签名) |
| `query-sms-status` | 查询短信状态 |
---
## 🟣 企业应用模块
### CRM (crm)
客户关系管理模块。
**Actions:**
| Action | 说明 |
|--------|------|
| `create-customer` | 创建客户 |
| `create-opportunity` | 创建商机 |
| `update-opportunity-stage` | 更新商机阶段 |
| `get-sales-report` | 获取销售报表 |
---
### HR (hr)
人力资源管理模块。
**Actions:**
| Action | 说明 |
|--------|------|
| `create-employee` | 创建员工 |
| `create-performance-review` | 创建绩效评估 |
| `record-attendance` | 记录考勤 |
| `submit-leave-request` | 提交请假申请 |
| `approve-leave-request` | 审批请假 |
---
### 财务 (finance)
财务管理模块。
**Actions:**
| Action | 说明 |
|--------|------|
| `create-billing-plan` | 创建计费方案 |
| `create-subscription` | 创建订阅 |
| `create-invoice` | 创建发票 |
| `create-expense-claim` | 创建报销申请 |
| `get-financial-stats` | 获取财务统计 |
---
## 代码示例
### 创建微信支付订单
```typescript
const result = await flow.actions.wechatPay.createNativePayOrder({
orderId: 'ORDER_20260123_001',
amount: 9900, // 单位:分
description: '商品购买',
notifyUrl: 'https://your-domain.com/webhook/wechat-pay'
});
console.log(result.codeUrl); // 二维码链接
```
### 发送钉钉工作通知
```typescript
const result = await flow.actions.dingtalk.sendWorkNotification({
userIdList: ['user001', 'user002'],
msg: {
msgtype: 'text',
text: { content: '您有新的审批待处理' }
}
});
```
---
## 下一步
- [AI Gateway 文档](/docs/innoflow/ai-gateway) - 智能 AI 网关
- [Webhook 配置](/docs/innoflow/webhooks) - Webhook 触发器
- [API 概览](/docs/innoflow/overview) - API 总览