Skip to content
CrewAI 文档版本 跟随上游 源快照 40df9e7e 更新于 2026-10-18

Zapier Actions 工具

ZapierActionsAdapter 将 Zapier 操作暴露为 CrewAI 工具以实现自动化。

ZapierActionsAdapter

描述

使用 Zapier 适配器可以将 Zapier 操作列为 CrewAI 工具并进行调用。这使智能体能够在数千个应用中触发自动化。

安装

该适配器包含在 crewai-tools 中。无需额外安装。

环境变量

  • ZAPIER_API_KEY(必填):Zapier API key。可从 Zapier Actions 仪表盘 https://actions.zapier.com/ 获取(创建账户,然后生成 API key)。你也可以在构造适配器时直接传入 zapier_api_key。

示例

python
from crewai import Agent, Task, Crew
from crewai_tools.adapters.zapier_adapter import ZapierActionsAdapter

adapter = ZapierActionsAdapter(api_key="your_zapier_api_key")
tools = adapter.tools()

agent = Agent(
    role="Automator",
    goal="Execute Zapier actions",
    backstory="Automation specialist",
    tools=tools,
    verbose=True,
)

task = Task(
    description="Create a new Google Sheet and add a row using Zapier actions",
    expected_output="Confirmation with created resource IDs",
    agent=agent,
)

crew = Crew(agents=[agent], tasks=[task])
result = crew.kickoff()

说明与限制

  • 适配器会列出你的 key 可用的操作,并动态创建 BaseTool 封装。
  • 在任务指令或工具调用中处理操作特定的必填字段。
  • 限流取决于你的 Zapier 套餐;请参阅 Zapier Actions 文档。

说明

  • 适配器会获取可用的操作,并动态生成 BaseTool 封装。

BytesRouter 是社区翻译站点,所有译文仅供参考,一切以官方英文原文为准。