Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.
docs: add HITL webhook authentication examples
Greyson LaLondeb77074e48e09
diff --git a/docs/en/learn/human-in-the-loop.mdx b/docs/en/learn/human-in-the-loop.mdxindex c27b2603c..78225f0de 100644--- a/docs/en/learn/human-in-the-loop.mdx+++ b/docs/en/learn/human-in-the-loop.mdx@@ -22,6 +22,45 @@ Human-in-the-Loop (HITL) is a powerful approach that combines artificial intelli<Frame><img src="/images/enterprise/crew-webhook-url.png" alt="Crew Webhook URL" /></Frame>++ Example with Bearer authentication:+ ```bash+ curl -X POST {BASE_URL}/kickoff \+ -H "Authorization: Bearer YOUR_API_TOKEN" \+ -H "Content-Type: application/json" \+ -d '{+ "inputs": {+ "topic": "AI Research"+ },+ "humanInputWebhook": {+ "url": "https://your-webhook.com/hitl",+ "authentication": {+ "strategy": "bearer",+ "token": "your-webhook-secret-token"+ }+ }+ }'+ ```++ Or with Basic authentication:+ ```bash+ curl -X POST {BASE_URL}/kickoff \+ -H "Authorization: Bearer YOUR_API_TOKEN" \+ -H "Content-Type: application/json" \+ -d '{+ "inputs": {+ "topic": "AI Research"+ },+ "humanInputWebhook": {+ "url": "https://your-webhook.com/hitl",+ "authentication": {+ "strategy": "basic",+ "username": "your-username",+ "password": "your-password"+ }+ }+ }'+ ```</Step><Step title="Receive Webhook Notification">@@ -76,4 +115,4 @@ HITL workflows are particularly valuable for:- Complex decision-making scenarios- Sensitive or high-stakes operations- Creative tasks requiring human judgment-- Compliance and regulatory reviews\ No newline at end of file+- Compliance and regulatory reviews