AgenticFlow:构建 AI 工作流与协作系统 - Openclaw 技能

作者:互联网

2026-04-13

AI教程

什么是 AgenticFlow 技能?

AgenticFlow 是一个专为寻求构建 AI 驱动的自动化流水线和智能代理系统的开发者设计的强大框架。通过利用 Openclaw 技能,该平台允许创建线性、顺序的工作流,其中每个节点执行特定任务——从调用 Claude 和 OpenAI 等 LLM 到处理数据以及与 300 多个外部服务交互。

除了简单的自动化,AgenticFlow 还能编排复杂的协作模式。无论您需要具有特定人格的单个智能体,还是能够自我组织以解决复杂问题的多智能体集群,此技能都提供了部署生产级 AI 系统所需的底层结构和参考指南。

下载入口:https://github.com/openclaw/skills/tree/main/skills/seanphan/agenticflow-skill

安装与下载

1. ClawHub CLI

从源直接安装技能的最快方式。

npx clawhub@latest install agenticflow-skill

2. 手动安装

将技能文件夹复制到以下位置之一

全局模式 ~/.openclaw/skills/ 工作区 /skills/

优先级:工作区 > 本地 > 内置

3. 提示词安装

将此提示词复制到 OpenClaw 即可自动安装。

请帮我使用 Clawhub 安装 agenticflow-skill。如果尚未安装 Clawhub,请先安装(npm i -g clawhub)。

AgenticFlow 技能 应用场景

  • 通过将 LLM 节点与图像生成工具链接来自动化内容生成流水线。
  • 构建具有定义人格并可访问专用工具集的客户支持智能体。
  • 使用监督者(Supervisor)或辩论(Debate)模式编排用于复杂研究任务的多智能体协作。
  • 将 Slack、Notion 和 Gmail 等 300 多个外部服务集成到自动化 AI 工作流中。
  • 开发处理文件上传、PDF 解析和 JSON 转换的数据处理流水线。
AgenticFlow 技能 工作原理
  1. 选择操作结构:在线性工作流(Workflow)、独立智能体(Agent)或多智能体系统(Workforce)之间进行选择。
  2. 配置工作流中的特定节点,从 AI/LLM、数据处理或集成等类别中进行选择。
  3. 定义执行顺序,确保节点自上而下排序,以实现确定性的流水线。
  4. 为智能体分配工具和人格,以定义其能力和决策逻辑。
  5. 使用提供的运行时环境执行系统,以处理输入并通过 Openclaw 技能触发外部服务操作。

AgenticFlow 技能 配置指南

要开始使用这些 Openclaw 技能,您需要配置环境并初始化项目结构:

# 安装核心 AgenticFlow 包
npm install @agenticflow/core

# 初始化您的工作流目录
agenticflow init my-ai-project

# 配置 AI 提供商的环境变量
export OPENAI_API_KEY='your_api_key'
export ANTHROPIC_API_KEY='your_api_key'

AgenticFlow 技能 数据架构与分类体系

AgenticFlow 的数据模式围绕顺序节点执行和用于智能体定义的结构化元数据构建。所有配置都旨在 Openclaw 技能库中无缝运行。

组件 组织方式 描述
工作流节点 线性序列 基于 JSON 的 LLM 调用、API 和数据转换定义。
智能体元数据 YAML/Markdown 定义 AI 实体的角色、指令和可用工具集。
协作模式 编排 监督者、集群、流水线或辩论协作逻辑。
集成 MCP 模式 通过模型上下文协议配置的 300 多个外部连接。
name: agenticflow-skills
description: Comprehensive guide for building AI workflows, agents, and workforce systems with AgenticFlow. Use when designing workflows with various node types, configuring single agents, or orchestrating workforce collaboration patterns.
license: MIT

AgenticFlow Skills

AgenticFlow is a platform for building AI-powered automation workflows, intelligent agents, and workforce systems.

Quick Navigation

Topic When to Use Reference
Workflow Building automation flows with nodes workflow/overview.md
Agent Creating single intelligent agents reference/agent/overview.md
Workforce Orchestrating multiple agents reference/workforce/overview.md

Workflow

Workflows are linear automation pipelines composed of sequential nodes. Each node performs a specific action.

Guide Description
overview.md Core concepts, schemas, execution model
how-to-build.md Step-by-step build guide
how-to-run.md Execute workflows and handle results
node-types.md Node type schemas and discovery
connections.md Connection providers and setup

Node Types Overview

Category Example Node Types Purpose
AI/LLM claude_ask, openai_chat, gemini AI model calls, text generation
Image Generation generate_image, dall_e Create images from prompts
Data Processing json_parse, text_transform Transform and manipulate data
Integrations slack_send, gmail, notion Connect to 300+ external services (MCPs)
API Calls http_request, webhook HTTP requests and webhooks
File Operations file_upload, pdf_parse Upload, download, process files

Note: Workflows in AgenticFlow are linear and sequential - nodes execute top to bottom with no branching or loops.


Agent

An Agent is an AI entity with specific capabilities, tools, and a defined persona.

To learn about agent configuration, load: reference/agent/overview.md


Workforce

Workforce systems coordinate multiple agents to solve complex tasks collaboratively.

To understand orchestration patterns, load: reference/workforce/overview.md

Common Patterns

  • Supervisor - One agent delegates to specialists
  • Swarm - Agents self-organize dynamically
  • Pipeline - Sequential agent handoffs
  • Debate - Agents discuss to reach consensus

Glossary

For terminology and definitions, see reference/glossary.md.