notification.incident.create-and-escalate ​
Create an incident notification thread, notify primary responders, escalate after timeout, and record acknowledgement state.
Create an incident notification thread, notify primary responders, escalate after timeout, and record acknowledgement state.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Dag |
| Library | App-slack |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
workflow_run_id | string | No | — | DAG-stamped parent run id. |
organization_uuid | uuid | Yes | — | Organization UUID for tenant isolation. |
actor | string | No | — | User or service actor initiating the workflow. |
idempotency_key | string | No | — | Caller-supplied idempotency key for safe retries. |
dry_run | boolean | No | — | Validate and plan without mutating external resources. |
incident_title | string | Yes | — | Incident title. |
severity | string | No | — | Incident severity. |
description | string | No | — | Incident description. |
primary_channels | list | Yes | — | Primary notification channels. |
escalation_channels | list | No | — | Escalation notification channels. |
ack_timeout_seconds | integer | No | — | Acknowledgement timeout. |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | No | — | Organization uuid. |
workflow_run_uuid | uuid | No | — | Workflow run uuid. |
status | string | No | — | Status. |
summary | json | No | — | Summary. |
resource_refs | json | No | — | Resource refs. |
warnings | list | No | — | Warnings. |
completed_at | string | No | — | Completed at. |
compensation_trigger | string | No | — | Compensation trigger. |
compensation_results | json | No | — | Compensation results. |
notification_route_create_multi_channel | json | No | — | Output state_data from DAG step notification_route_create_multi_channel. |
slack_message_send | json | No | — | Output state_data from DAG step slack_message_send. |
slack_approval_request | json | No | — | Output state_data from DAG step slack_approval_request. |
identity_user_query | json | No | — | Output state_data from DAG step identity_user_query. |
slack_message_send_5 | json | No | — | Output state_data from DAG step slack_message_send_5. |
failure_reason | string | No | — | Failure reason. |
failed_step | json | No | — | Failed step. |
failed_layer | json | No | — | Failed layer. |
failed_at_state | string | No | — | Failed at state. |
error | string | No | — | Error. |
error_type | string | No | — | Error type. |
failed_at | string | No | — | Failed at. |
DAG Layers ​
| # | Layer | Steps | Compensation |
|---|---|---|---|
| 1 | 01_notification_route_create_multi_channel | notification.route.create-multi-channel | — |
| 2 | 02_slack_message_send | slack.message.send | — |
| 3 | 03_slack_approval_request | slack.approval.request | — |
| 4 | 04_identity_user_query | identity.user.query | — |
| 5 | 05_slack_message_send_5 | slack.message.send | — |
Execution Flow ​
Sub-workflows ​
| Sub-workflow | Step name |
|---|---|
notification.route.create-multi-channel | notification_route_create_multi_channel |
slack.message.send | slack_message_send |
slack.approval.request | slack_approval_request |
identity.user.query | identity_user_query |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "notification.incident.create-and-escalate",
"initial_data": {
"organization_uuid": "value",
"incident_title": "value",
"primary_channels": "value"
}
}