agents.webhook-trigger ​
Evaluate and dispatch outbound webhooks for an agent session event
Evaluate enabled AgentWebhookRule rows and dispatch outbound HTTP POSTs.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-agents |
| Version | 1.0 |
Triggers ​
| Source | Endpoint / Event | Description |
|---|---|---|
| INTERNAL | internal.invocation | Internal — called by agents.session-notify to dispatch outbound webhooks |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | string | Yes | — | — |
event_type | string | Yes | — | — |
session_uuid | string | No | — | — |
event_payload | dict | No | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
dispatched | json | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
event_type | json | No | — | — |
failed_at | string | No | — | — |
failed_at_state | string | No | — | — |
failed_layer | json | No | — | — |
failed_step | string | No | — | — |
failure_reason | string | No | — | — |
results | json | No | — | — |
session_uuid | json | No | — | — |
skipped | json | No | — | — |
organization_uuid | json | No | — | — |
event_payload | json | No | — | — |
matching_rules | json | No | — | — |
dispatch_skip | json | No | — | — |
dispatch_results | json | No | — | — |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
received | Yes | No | — | parse | — |
dispatching | No | No | — | complete_dispatch | — |
evaluating_dispatch | No | No | — | dispatch | — |
evaluating_skip | No | No | — | skip_done | — |
parsing | No | No | — | evaluate_dispatch | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
skipped | No | Yes | Yes | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
received | parse | parsing | — |
parsing | evaluate_dispatch | evaluating_dispatch | — |
parsing | evaluate_skip | evaluating_skip | — |
evaluating_dispatch | dispatch | dispatching | — |
evaluating_skip | skip_done | skipped | — |
dispatching | complete_dispatch | completed | — |
* (any state) | fail | failed | — |
Outcomes ​
| Outcome | Type | Description | State Data Keys |
|---|---|---|---|
dispatched | SUCCESS | Outbound webhooks evaluated and dispatched | dispatched, event_type, results, organization_uuid |
failed | FAILURE | Outbound webhooks evaluated and dispatched failed | failure_reason, error, error_type, failed_at_state, failed_step, failed_layer |
Business Errors ​
| Code | Message Template |
|---|---|
AGENTS_ORGANIZATION_CONTEXT_INVALID | Authenticated organization context is missing or does not match the workflow input |
AGENTS_SESSION_NOT_FOUND | Agent session {session_uuid} was not found in the organization |
AGENTS_VALIDATION_FAILED | Workflow input or domain state failed validation: |
AGENTS_CONFLICT | Conflicting agent domain state: |
AGENTS_PROVIDER_FAILED | Upstream provider or runner call failed: |
AGENTS_MCP_CALL_FAILED | MCP tool call failed for {tool_name}: |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "agents.webhook-trigger",
"initial_data": {
"organization_uuid": "value",
"event_type": "value"
}
}