← 返回
沟通协作 Key 中文

Flowise

Interact with Flowise AI workflows via REST API. Use when user mentions Flowise, chatflows, or wants to send messages to Flowise bots/agents. Supports listing flows, sending predictions, and managing conversations.
通过 REST API 与 Flowise AI 工作流交互。当用户提及 Flowise、chatflows 或向 Flowise 机器人发送消息时使用。支持列出流程、发送预测及管理对话。
tianmu
沟通协作 clawhub v0.1.0 1 版本 99852.5 Key: 需要
★ 0
Stars
📥 1,354
下载
💾 26
安装
1
版本
#latest

概述

Flowise Skill

Interact with Flowise AI platform via REST API.

Configuration

Store Flowise settings in TOOLS.md:

### Flowise
- Server: http://localhost:3000
- API Key: your-api-key-here
- Default Flow ID: your-default-flow-id (optional)
- Default Timeout: 300

#### Flows
| Flow ID | 名称 | 用途 | 参数 |
|---------|------|------|------|
| abc123 | 客服助手 | 处理客户咨询、售后问题 | - |
| def456 | 代码助手 | 代码生成、调试、技术问答 |  form格式: `script`=要执行的脚本, `device`=设备(可选) |
| ghi789 | 文档助手 | 文档总结、RAG知识库查询 | - |

Flow Selection

When calling Flowise, match the user's request to the appropriate flow:

  1. Check TOOLS.md for the Flows table
  2. Select the flow whose "用途" best matches the task
  3. If no specific match, use the Default Flow ID
  4. If user explicitly names a flow, use that one

Quick Reference

Send a message (Prediction)

curl -X POST "${FLOWISE_URL}/api/v1/prediction/${FLOW_ID}" \
  -H "Authorization: Bearer ${API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{"question": "Hello, how are you?"}'

Send with streaming

curl -X POST "${FLOWISE_URL}/api/v1/prediction/${FLOW_ID}" \
  -H "Authorization: Bearer ${API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{"question": "Tell me a story", "streaming": true}'

Send with session/conversation memory

curl -X POST "${FLOWISE_URL}/api/v1/prediction/${FLOW_ID}" \
  -H "Authorization: Bearer ${API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{"question": "What did I ask before?", "sessionId": "user-123"}'

List all chatflows

curl -X GET "${FLOWISE_URL}/api/v1/chatflows" \
  -H "Authorization: Bearer ${API_KEY}"

Get chatflow details

curl -X GET "${FLOWISE_URL}/api/v1/chatflows/${FLOW_ID}" \
  -H "Authorization: Bearer ${API_KEY}"

Common Parameters for Prediction

ParameterTypeDescription
------------------------------
questionstringThe message to send
streamingbooleanEnable streaming response (default: false)
sessionIdstringSession ID for conversation memory
overrideConfigobjectOverride flow configuration (temperature, maxTokens, etc.)
historyarrayProvide conversation history manually
uploadsarrayFile uploads (images, documents)

Flow-specific Variables

Some flows accept custom variables. Pass them in the request:

{
  "question": "查询订单状态",
  "overrideConfig": {
    "vars": {
      "orderId": "12345",
      "userId": "user-abc"
    }
  }
}

Using Parameters from TOOLS.md

Check TOOLS.md for flow-specific parameters. The "参数" column indicates:

  • Required parameters (必填)
  • Default values to use
  • Custom variables needed for that flow

Example entry:

| abc123 | RAG知识库 | 文档查询 | sessionId=必填, variables={"namespace": "docs"} |

When calling this flow, include the specified parameters.

Override Config Example

Override model settings or other flow parameters:

{
  "question": "Explain quantum computing",
  "overrideConfig": {
    "temperature": 0.7,
    "maxTokens": 500
  }
}

With File Upload

curl -X POST "${FLOWISE_URL}/api/v1/prediction/${FLOW_ID}" \
  -H "Authorization: Bearer ${API_KEY}" \
  -F "question=Analyze this document" \
  -F "files=@/path/to/document.pdf"

Form Object Request

Some flows use a form object for structured input parameters:

curl -X POST "${FLOWISE_URL}/api/v1/prediction/${FLOW_ID}" \
  -H "Authorization: Bearer ${API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
    "form": {
      "script": "d.send_keys(\"小红书\")",
      "device": "192.168.1.100:5555"
    }
  }'

Check TOOLS.md "参数" column for form格式 to identify these flows. Pass parameters inside the form object.

Error Handling

StatusMeaning
-----------------
200Success
400Bad request - check input format
401Unauthorized - check API key
404Flow not found - verify flow ID
500Server error - check Flowise logs

Workflow

  1. Check TOOLS.md for Flowise server URL and API key
  2. If not configured, ask user for:
    • Flowise server URL (e.g., http://localhost:3000)
    • API key (if authentication is enabled)
    • Flow ID to use
  3. Use exec with curl to call the API
  4. Parse JSON response and present results

Tips

  • Use sessionId consistently to maintain conversation context
  • For long responses, enable streaming: true
  • Test connectivity with /api/v1/ping endpoint first
  • List available flows if user doesn't specify a flow ID

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-03-29 00:41 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

communication-collaboration

Slack

steipete
当需要通过 slack 工具从 Clawdbot 控制 Slack 时使用,包括在频道或私信中回复消息或置顶/取消置顶项目。
★ 157 📥 47,685
communication-collaboration

Himalaya

lamelas
{"answer":"通过IMAP/SMTP管理邮件的CLI。可在终端使用 `himalaya` 收发、回复、转发、搜索及整理邮件。支持多账户与MML(MIME元语言)编写邮件。"}
★ 68 📥 45,592
communication-collaboration

imap-smtp-email

gzlicanyi
使用IMAP/SMTP读取和发送邮件;检查新/未读邮件、获取内容、搜索邮箱、标记已读/未读、发送带附件的邮件。支持...
★ 114 📥 52,436