新代理

人工智能 社区

技能解读

当前原文的自动摘译,尚未人工审校。

生成代理 Camunda 8 BPMN 流程。查找并阅读“代理 BPMN”部分camunda-dev-guide.md用于临时子流程 XML、连接器任务类型、输入目标和fromAi()用法。

$参数

使用 AI 代理子流程模式(推荐): 1. 创建一个bpmn:adHocSubProcess与zeebe:taskDefinition type="io.camunda.agenticai:aiagent-job-worker:1"2.添加zeebe:adHoc outputCollection="toolCallResults" outputElement="={id: toolCall._meta.id, name: toolCall._meta.name, content: toolCallResult}"— 工具结果收集所需 3. 添加zeebe:taskHeaders与resultVariable=agent4. 将工具添加为内部活动(无传入流、无开始/结束事件) 5. 使用fromAi()在 AI 生成的参数的工具输入映射中 6. 每个工具必须将输出写入toolCallResult变量(例如resultExpression→={toolCallResult: response.body}) 7. 添加<bpmn:documentation>每个工具描述其用途 8. 配置systemPrompt,userPrompt,modelProvider, 和authentication.apiKey({{secrets.KEY_NAME}})

工具也可以是多步异步模式的子流程: - 在子流程中放置一个服务任务(操作),后跟一个 catch 事件(等待) - 子流程是工具入口点;内部步骤对代理隐藏 - 将其用于发送+等待、请求+回调或任何需要异步交互的工具 - 请参阅 camunda-dev-guide.md 中的“子流工具模式”部分

对于作为工具的非 REST 连接器,请通过 Camunda Docs MCP 工具查找其任务类型和输入目标。

流狐档案 运行与权限由流狐静态检查推断,不代表作者声明或实际测试结果。
领域
人工智能
作者声明的智能体
未找到明确声明;不据此推断已兼容或已测试
静态检查
88 / 100 · 启发式扫描,不代表运行安全
运行环境证据
未执行;当前没有隔离运行测试证据
作者 / 版本 / 许可证
@meyerdan · 未声明许可证
上下文用量评级
低消耗
接入复杂程度
需简单配置
是否需要外部接口密钥
需要 · Vendor-specific
兼容的系统
未声明(默认跨平台)
运行环境要求
未检出明确要求
检测到的文件与系统行为
  • 只读
  • 允许写入 / 修改
  • 命令执行
网络行为
允许外网请求
安装命令数
无(仅作为资料)

需要注意: 未声明工具权限范围;实际权限由运行环境决定。

作者说明文件(原文) SKILL.md

Generate an agentic Camunda 8 BPMN process. Find and read the "Agentic BPMN" section of `camunda-dev-guide.md` for ad-hoc sub-process XML, connector task types, input targets, and `fromAi()` usage.

$ARGUMENTS

Use the **AI Agent Sub-process** pattern (recommended):
1. Create a `bpmn:adHocSubProcess` with `zeebe:taskDefinition type="io.camunda.agenticai:aiagent-job-worker:1"`
2. Add `zeebe:adHoc outputCollection="toolCallResults" outputElement="={id: toolCall._meta.id, name: toolCall._meta.name, content: toolCallResult}"` — **required** for tool result collection
3. Add `zeebe:taskHeaders` with `resultVariable` = `agent`
4. Add tools as activities inside (no incoming flows, no start/end events)
5. Use `fromAi()` in tool input mappings for AI-generated parameters
6. Each tool **must** write output to `toolCallResult` variable (e.g. `resultExpression` → `={toolCallResult: response.body}`)
7. Add `<bpmn:documentation>` to each tool describing what it does
8. Configure `systemPrompt`, `userPrompt`, `modelProvider`, and `authentication.apiKey` (`{{secrets.KEY_NAME}}`)

Tools can also be **sub-processes** for multi-step async patterns:
- Put a service task (action) followed by a catch event (wait) inside a sub-process
- The sub-process is the tool entry point; inner steps are hidden from the agent
- Use this for send+wait, request+callback, or any tool needing async interaction
- See the "Sub-flow Tool Pattern" section in camunda-dev-guide.md

For non-REST connectors as tools, look up their task type and input targets via the Camunda Docs MCP tool.

Save to resources/. Deploy with c8ctl.

讨论

基于 GitHub Discussions。登录 GitHub 即可参与讨论、点赞、订阅更新。