能力标签
🔄
n8n工作流

BotCircuits 代理

基于 Python · 可视化低代码工作流,300+ 服务连接器
英文名:botcircuits-agent
⭐ 5 Stars 🍴 1 Forks 💻 Python 📄 Apache-2.0 🏷 AI 8.0分
8.0AI 综合评分
n8naiai-agentsbotcircuitschatgptclaudepython
✦ AI Skill Hub 推荐

经 AI Skill Hub 精选评估,BotCircuits 代理 获评「强烈推荐」。这款n8n工作流在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 8.0 分,适合有一定技术背景的用户使用。

📚 深度解析

BotCircuits 代理 是基于 n8n 平台的可视化工作流模板。n8n 是目前最受开发者欢迎的开源工作流自动化工具之一,支持自托管部署,同时提供云端版本,通过拖拽式界面连接数百种应用和服务,无需编写代码即可构建复杂的自动化流程。

BotCircuits 代理 工作流模板封装了特定场景下的最佳实践配置。导入后你无需从零开始搭建——只需根据向导配置必要的 API Key 和账号信息,激活工作流后即可立即运行。这类预制模板特别适合希望快速验证自动化方案可行性的用户,避免在节点连接和逻辑配置上花费大量时间。

n8n 的核心优势在于数据主权:自托管版本的所有数据(包括 Credentials 和执行记录)完全存储在你自己的服务器上,适合对数据隐私有要求的企业和个人用户。AI Skill Hub 推荐通过 Docker 部署 n8n 自托管实例,并将 BotCircuits 代理 作为工作流库的起始模板。

📋 工具概览

BotCircuits 代理 是一款基于 Python 开发的开源工具,专注于 n8n、ai、ai-agents 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。

GitHub Stars
⭐ 5
开发语言
Python
支持平台
Windows / macOS / Linux
维护状态
轻量级项目,按需更新
开源协议
Apache-2.0
AI 综合评分
8.0 分
工具类型
n8n工作流
Forks
1

📖 中文文档

以下内容由 AI Skill Hub 根据项目信息自动整理,如需查看完整原始文档请访问底部「原始来源」。

BotCircuits 代理 是一款基于 Python 开发的开源工具,专注于 n8n、ai、ai-agents 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。

📌 核心特色
  • 基于 n8n 平台的可视化低代码工作流
  • 支持拖拽式节点编排,将自动化门槛降至最低
  • 内置 300+ 第三方服务连接器,覆盖主流工具生态
  • 支持 Webhook、定时触发、事件驱动等多种启动方式
  • 可导出 JSON 文件,方便团队共享和版本管理
🎯 主要使用场景
  • 定时采集外部数据并自动生成分析报告推送
  • 实现多系统间的数据同步和状态更新通知
  • 构建自动化运维告警和响应处置流程
以下安装命令基于项目开发语言和类型自动生成,实际以官方 README 为准。
安装命令
# 方式一:pip 安装(推荐)
pip install botcircuits-agent

# 方式二:虚拟环境安装(推荐生产环境)
python -m venv .venv
source .venv/bin/activate  # Windows: .venv\Scripts\activate
pip install botcircuits-agent

# 方式三:从源码安装(获取最新功能)
git clone https://github.com/botcircuits-ai/botcircuits-agent
cd botcircuits-agent
pip install -e .

# 验证安装
python -c "import botcircuits_agent; print('安装成功')"
📋 安装步骤说明
  1. 访问 GitHub 仓库,下载工作流 JSON 文件
  2. 登录 n8n 工作台
  3. 点击右上角「导入工作流」按钮
  4. 上传或粘贴 JSON 内容
  5. 根据提示配置必要的 API Key、账号等参数
  6. 激活工作流后即可正常运行
以下用法示例由 AI Skill Hub 整理,涵盖最常见的使用场景。
常用命令 / 代码示例
# 命令行使用
botcircuits-agent --help

# 基本用法
botcircuits-agent input_file -o output_file

# Python 代码中调用
import botcircuits_agent

# 示例
result = botcircuits_agent.process("input")
print(result)
以下配置示例基于典型使用场景生成,具体参数请参照官方文档调整。
配置示例
// n8n 工作流配置步骤
// 1. 在 n8n 中点击 "Import Workflow"
// 2. 粘贴 JSON 文件内容或上传文件
// 3. 配置必要的 Credentials:
//    - Settings → Credentials → New
//    - 选择对应服务类型填写 API Key
// 4. 激活工作流 (Toggle ON)
// 5. 通过 Webhook 或定时触发器运行
📑 README 深度解析 真实文档 完整度 58/100 查看 GitHub 原文 →
以下内容由系统直接从 GitHub README 解析整理,保留代码块、表格与列表结构。

botcircuits-agent

The workflow-native AI agent where an LLM handles the reasoning and tool calls for each step, while a deterministic state machine controls the overall flow. The result:predictable and token-efficient multi-step automation without depending on an LLM to drive everything.

5. Install dependencies into the venv

uv sync


Configure your provider, model, and API key:
bash botcircuits setup

The wizard walks you through provider (`anthropic` / `openai` / `gemini`), model, and API key with arrow-key navigation (↑/↓ to move, Enter to select, Esc to keep the current value). Each pick is saved as you go:

- `provider` and `model` → `~/.botcircuits/settings.json`
- API key → `~/.botcircuits/.env` (`ANTHROPIC_API_KEY` / `OPENAI_API_KEY` / `GEMINI_API_KEY`, file mode `0600`)

Re-running `botcircuits setup` shows your existing values as defaults, and an existing API key gives you a **Keep / Replace / Clear** choice instead of re-prompting for the secret.

| Form | What it does |
|---|---|
| `botcircuits setup` | Full wizard (currently the LLM section) |
| `botcircuits setup llm` | Just the LLM provider/model/API-key section |
| `botcircuits setup --user` | Write to `~/.botcircuits/` (default) |
| `botcircuits setup --project` | Write to `./.botcircuits/settings.json` (shared via VCS) |
| `botcircuits setup --local` | Write to `./.botcircuits/settings.local.json` (gitignored personal override) |

Prefer to configure by hand? Copy the env template instead:
bash cp .env.example .env
bash

WhatsApp (all three required to enable)

WHATSAPP_PHONE_NUMBER_ID=123456789 WHATSAPP_ACCESS_TOKEN=EAA… WHATSAPP_VERIFY_TOKEN=any-shared-secret # echoed back during Meta's GET verify

Setup

Clone and install

```bash

1. Install uv (skip if you already have it)

curl -LsSf https://astral.sh/uv/install.sh | sh

or: brew install uv

Building a workflow

The raw file you author is not what the engine runs. The workflow build step takes the natural-language conditions on each agentAction and prepares conditions and variables the engine can evaluate deterministically:

  • Conditions — each NL condition (e.g. "the requested tone is warm") is compiled into a typed choices[] entry with an operator (is, >=, contains, …) and a value, so the engine can pick the matching branch without re-calling the LLM at runtime.
  • Variables — an aggregated flow.variables list is emitted, naming every slot referenced by the compiled conditions along with its inferred dataType and a short description. The runtime uses this list to coerce the LLM's free-text args into the right shape before evaluating branches.

/workflow add|edit runs the builder for you. If you hand-edit a workflow file, re-build it from the CLI:

botcircuits workflow build --name=greet_user

The agent runtime only loads workflows from .botcircuits/workflows/.build/, so a workflow that hasn't been built isn't callable — workflow build is what produces the runnable copy.

---

Platform setup notes

WhatsApp. In the Meta WhatsApp Business app, set the webhook URL to https://<your-host>/messaging/whatsapp and the verify token to whatever you put in WHATSAPP_VERIFY_TOKEN. Subscribe to the messages field on the WhatsApp Business Account.

Slack (Socket Mode). Create a Slack app, enable Socket Mode, and generate an app-level token with connections:write (→ SLACK_APP_TOKEN). Add bot scopes chat:write, channels:history, groups:history, app_mentions:read, im:history, im:write, users:read and install the workspace (→ SLACK_BOT_TOKEN). Subscribe to bot events message.im, message.channels, message.groups, app_mention. Missing message.channels / message.groups is the most common setup mistake — the bot will reply in DMs but appear dead in channels.

Generic webhook.

curl -X POST http://localhost:8000/messaging/webhook \
  -H "authorization: Bearer $WEBHOOK_TOKEN" \
  -H "content-type: application/json" \
  -d '{"chat_id": "user-42", "text": "What is the weather like?"}'

If WEBHOOK_OUTBOUND_URL is set, the gateway posts the agent's reply back to that URL with the same bearer token.

Deployment

##### Docker-Compose ( TODO ) ##### Kubernetes ( TODO )

Quick Start

3. Pick a Python (3.11+) and create the project venv

uv python install 3.11 uv venv --python 3.11 # creates ./.venv

4. Activate the venv

source .venv/bin/activate # bash / zsh

.env — API key for the provider you want to use (required)

ANTHROPIC_API_KEY=... OPENAI_API_KEY=... GEMINI_API_KEY=...

Optional — only used as a fallback when settings.json / CLI flags don't set them

LLM_PROVIDER=anthropic # anthropic | openai | gemini ANTHROPIC_MODEL=claude-opus-4-7 OPENAI_MODEL=gpt-4.1 GEMINI_MODEL=gemini-2.5-flash ```

Effective precedence (highest wins): CLI flag → settings.json (layered) → env var → built-in default.

List configured servers

botcircuits mcp list

Workflow

A workflow is a step-by-step conversation script the agent can run on your behalf. Each workflow is one JSON file that lives under .botcircuits/workflows/, and once the agent loads it the workflow becomes a tool the model can call by name.

Force-running a workflow

When you don't want to leave it up to the model to decide whether to invoke a workflow, kick one off directly:

/workflow run --name workflow_demo
/workflow run --name workflow_demo --initial-args '{"end_id":"step_3"}'

This calls the workflow tool right away with the args you supplied, seeds the conversation with the resulting first step, and hands control back to the model to perform it. --initial-args must be a JSON object; omit it to start with {}. The target workflow must already be registered — workflow tools are auto-discovered from .botcircuits/workflows/.build/ and the command refreshes that registry before looking up the name, so a freshly authored workflow works without a restart.

Where workflows live

By default, workflows live in .botcircuits/workflows/*.json under the current directory. Override with BOTCIRCUITS_WORKFLOWS_DIR=/abs/path (or set it in .env). A missing directory just means "no workflows" — drop a folder in to opt in.

Each file is one workflow record:

{
  "name": "greet_user",
  "description": "Greet the caller, then say goodbye.",
  "flow": {
    "start": "s0",
    "steps": {
      "s0": { "type": "start", "next": "a1" },
      "a1": {
        "type": "agentAction",
        "next": "a2",
        "conditions": [
          { "condition": "the requested tone is warm", "next": "a2" }
        ],
        "settings": {
          "action": "Capture the desired tone and greet the user accordingly."
        }
      },
      "a2": {
        "type": "agentAction",
        "settings": { "action": "Say goodbye." }
      }
    }
  }
}

name doubles as the tool name the model calls; it must match ^[a-zA-Z0-9_-]+$. Only start and agentAction step types are supported — to branch, attach a conditions list at the step root (sibling of type and next, not nested inside settings). conditions is control flow, so it sits next to the other control-flow fields rather than with the step-type-specific payload in settings.

🎯 aiskill88 AI 点评 A 级 2026-06-01

高质量的开源n8n工作流AI代理,具有预测性和令牌高效的多步骤自动化能力

⚡ 核心功能

👥 适合人群

n8n 平台用户自动化爱好者运维工程师对低代码开发感兴趣的技术人员

🎯 使用场景

  • 定时采集外部数据并自动生成分析报告推送
  • 实现多系统间的数据同步和状态更新通知
  • 构建自动化运维告警和响应处置流程

⚖️ 优点与不足

✅ 优点
  • +Apache-2.0 协议,可免费商用
  • +开源自托管,数据安全可控
  • +节点丰富,第三方扩展便捷
  • +社区活跃,问题易查易解
⚠️ 不足
  • 自托管需自行维护服务器和基础设施
  • 学习曲线相对较陡,初学需耐心
  • 大规模并发场景对资源要求较高
⚠️ 使用须知

AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。

建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。

📄 License 说明

✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。

🔗 相关工具推荐

🧩 你可能还需要
基于当前 Skill 的能力图谱,自动补全的工具组合

❓ 常见问题 FAQ

请参考项目文档和示例代码
💡 AI Skill Hub 点评

AI Skill Hub 点评:BotCircuits 代理 的核心功能完整,质量优秀。对于n8n 平台用户来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。

⬇️ 获取与下载
⬇ 下载源码 ZIP

✅ Apache-2.0 协议 · 可免费商用 · 直接从 aiskill88 服务器下载,无需跳转 GitHub

📚 深入学习 BotCircuits 代理
查看分步骤安装教程和完整使用指南,快速上手这款工具
🌐 原始信息
原始名称 botcircuits-agent
Topics n8naiai-agentsbotcircuitschatgptclaudepython
GitHub https://github.com/botcircuits-ai/botcircuits-agent
License Apache-2.0
语言 Python
🔗 原始来源
🐙 GitHub 仓库  https://github.com/botcircuits-ai/botcircuits-agent

收录时间:2026-06-01 · 更新时间:2026-06-01 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。