diff --git a/docs/en/learn/human-in-the-loop.mdx b/docs/en/learn/human-in-the-loop.mdx index 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 Crew Webhook URL + + 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" + } + } + }' + ``` @@ -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