slack.approval.request ​
Post an Approve/Reject prompt to Slack and pause until a human decides.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-slack |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | Organization that owns the Slack connection |
connection_uuid | uuid | Yes | — | Slack CloudConnection UUID |
channel | string | Yes | — | Channel id or name to post the approval to |
prompt | string | Yes | — | Approval question (Slack mrkdwn) |
note | string | No | — | Optional context line shown under the prompt |
approve_label | string | No | — | Approve button label (default "Approve") |
reject_label | string | No | — | Reject button label (default "Reject") |
timeout_seconds | integer | No | — | Auto-expire the request after this many seconds |
metadata | json | No | — | Opaque passthrough for the caller to correlate the decision |
workflow_run_id | string | No | — | Parent DAG run id (auto-injected by the engine when used as a DAG step) |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
decision | string | No | — | — |
decided_by | json | No | — | — |
decided_by_name | json | No | — | — |
decided_at | json | No | — | — |
channel | json | No | — | — |
message_ts | json | No | — | — |
approval_workflow_id | json | No | — | — |
metadata | json | No | — | — |
status | string | No | — | — |
organization_uuid | json | No | — | — |
connection_uuid | json | No | — | — |
permalink | json | No | — | — |
prompt | json | No | — | — |
workflow_run_id | string | No | — | Parent DAG run id (auto-injected by the engine when used as a DAG step) |
failure_reason | string | No | — | Human-readable failure reason (engine-stamped) |
failure_type | string | No | — | Failure category (engine-stamped) |
failed_action | string | No | — | Action that failed (engine-stamped) |
failed_at_state | string | No | — | State where the workflow failed (engine-stamped) |
failed_step | string | No | — | DAG step that failed (engine-stamped) |
failed_layer | string | No | — | DAG layer that failed (engine-stamped) |
error | string | No | — | Error message (engine-stamped) |
error_type | string | No | — | Error class name (engine-stamped) |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | post | — |
awaiting | No | No | — | — | — |
approved | No | Yes | Yes | — | — |
expired | No | Yes | No | — | — |
failed | No | Yes | No | — | — |
rejected | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | post | awaiting | — |
awaiting | approve | approved | — |
awaiting | reject | rejected | — |
awaiting | expire | expired | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "slack.approval.request",
"initial_data": {
"organization_uuid": "value",
"connection_uuid": "value",
"channel": "value",
"prompt": "value"
}
}