mirror of
https://github.com/crewAIInc/crewAI.git
synced 2025-12-15 20:08:29 +00:00
docs: add HITL webhook authentication examples
Some checks failed
Some checks failed
This commit is contained in:
@@ -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
|
||||
- Compliance and regulatory reviews
|
||||
|
||||
Reference in New Issue
Block a user