Webhook Automation
Automate CrewAI Enterprise workflows using webhooks with platforms like ActivePieces, Zapier, and Make.com
CrewAI Enterprise allows you to automate your workflow using webhooks. This article will guide you through the process of setting up and using webhooks to kickoff your crew execution, with a focus on integration with ActivePieces, a workflow automation platform similar to Zapier and Make.com.
Setting Up Webhooks
Accessing the Kickoff Interface
- Navigate to the CrewAI Enterprise dashboard
- Look for the
/kickoff
section, which is used to start the crew execution
Configuring the JSON Content
In the JSON Content section, you’ll need to provide the following information:
- inputs: A JSON object containing:
company
: The name of the company (e.g., “tesla”)product_name
: The name of the product (e.g., “crewai”)form_response
: The type of response (e.g., “financial”)icp_description
: A brief description of the Ideal Customer Profileproduct_description
: A short description of the producttaskWebhookUrl
,stepWebhookUrl
,crewWebhookUrl
: URLs for various webhook endpoints (ActivePieces, Zapier, Make.com or another compatible platform)
Integrating with ActivePieces
In this example we will be using ActivePieces. You can use other platforms such as Zapier and Make.com
To integrate with ActivePieces:
-
Set up a new flow in ActivePieces
-
Add a trigger (e.g.,
Every Day
schedule) -
Add an HTTP action step
-
Set the action to
Send HTTP request
-
Use
POST
as the method -
Set the URL to your CrewAI Enterprise kickoff endpoint
-
Add necessary headers (e.g.,
Bearer Token
) -
In the body, include the JSON content as configured in step 2
-
The crew will then kickoff at the pre-defined time.
-
Setting Up the Webhook
-
Create a new flow in ActivePieces and name it
-
Add a webhook step as the trigger:
-
Select
Catch Webhook
as the trigger type -
This will generate a unique URL that will receive HTTP requests and trigger your flow
-
Configure the email to use crew webhook body text
-
Webhook Output Examples
stepWebhookUrl
- Callback that will be executed upon each agent inner thought
stepWebhookUrl
- Callback that will be executed upon each agent inner thought
taskWebhookUrl
- Callback that will be executed upon the end of each task
crewWebhookUrl
- Callback that will be executed upon the end of the crew execution