crew = Crew(
agents=agents,
tasks=tasks,
memory=True,
planning=True,
planning_llm='gpt-4.1-nano',
long_term_memory = memoryDict['long_term_memory'],
short_term_memory = memoryDict['short_term_memory'],
entity_memory = memoryDict['entity_memory'],
output_log_file=f"{logs_dir}/crew.txt",
)
result = crew.kickoff(inputs=inputs, humanInputWebhookUrl='http://localhost:8000/webhook')
how to provide the webhook to the crew??
in the docs it says to provide with the kickoff route but i am not using api for kickoff, through api i get the inputs which are then serviced in the fastapi app.
I have tried checking the crewai package but did’nt found any such args/prarms?
How to give webhook url so the crew knows where to get the feedback from the human from.
Or what direction should I search in?
Thanks for the question: You can host at crewai.com and it gives you hooks and MCP
For HIL try the info here Human Input on Execution - CrewAI
is there an alternative to hosting it.
i am using ngrok to host my local project and wanted to implement a webhook to get human feedback from frontend?
Sure it is open source so you could create your own hosting environment. Worth taking the time to harden the hosting environment you use.
Good luck with the project
@Tony_Wood I have deployed a simple crew using CrewAI Enterprise Platform.
The crew has one task (human_input is set to True) and an agent associated with it.
When I kickoff the crew via the endpoint as per the below payload, the task is completed without waiting for human input.
Payload:
{
"inputs":
{
// ... inputs ...
},
"taskWebhookUrl": "https://your-domain.com/your-path",
"stepWebhookUrl": "",
"crewWebhookUrl": "",
"humanInputWebhookUrl": "https://your-domain.com/webhook",
// ... other properties if any ...
}
I configured 2 webhook urls. One for task. Another one for human_input.
Task webhook is worked as I received the updates for task. But didn’t receive anything on human_input webhook.
Is there any other config to be done to make it work?
I am using free plan now. Is it available only in paid plans?
Also I see that docs and help manuals have mentioned about resume endpoint. But it is not listed in crewai platform for my crew.
Thanks in advance!