Zapier Actions Tool

Zapier Actions Tool

ZapierActionsAdapter는 Zapier 액션을 CrewAI 도구로 노출해 자동화를 가능하게 합니다.

출처: 문서

본문

ZapierActionsAdapter

설명 (Description)

Zapier 어댑터를 사용해 Zapier 액션을 CrewAI 도구로 나열하고 호출할 수 있어요. 이를 통해 에이전트가 수천 개의 앱에 걸쳐 자동화를 트리거할 수 있습니다.

설치 (Installation)

이 어댑터는 crewai-tools에 포함되어 있어 별도 설치가 필요 없습니다.

환경 변수 (Environment Variables)

  • ZAPIER_API_KEY (필수): Zapier API 키. https://actions.zapier.com/의 Zapier Actions 대시보드에서 받을 수 있어요 (계정을 만든 뒤 API 키를 생성하세요). 어댑터를 만들 때 zapier_api_key를 직접 전달할 수도 있습니다.

예제 (Example)

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()

참고 및 제한 (Notes & limits)

  • 어댑터는 키에 대해 사용 가능한 액션을 나열하고 BaseTool 래퍼를 동적으로 생성합니다.
  • 태스크 지시나 도구 호출에서 액션별 필수 필드를 처리하세요.
  • 레이트 리밋은 Zapier 플랜에 따라 달라집니다. Zapier Actions 문서를 참고하세요.

참고 (Notes)

  • 어댑터는 사용 가능한 액션을 가져와 BaseTool 래퍼를 동적으로 생성합니다.

더 알아보기 (Learn more)