slack.interaction.dispatch ​
Dispatch verified Slack Block Kit interaction payloads, including approval callbacks.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-slack |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | Organization resolved by the HTTP verification boundary |
connection_uuid | uuid | Yes | — | Slack connection resolved by team/enterprise/signing secret lookup |
interaction_type | string | Yes | — | Slack interaction type |
callback_id | string | No | — | Slack callback id or block action id |
action_id | string | No | — | Slack action id |
user_ref | string | Yes | — | Slack user id |
channel | string | No | — | Slack channel id |
message_ts | string | No | — | Original Slack message ts |
response_url | string | No | — | Ephemeral Slack response URL; do not persist |
payload | json | Yes | — | Verified interaction payload |
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 |
|---|---|---|---|---|
interaction_type | string | No | — | Interaction type handled |
action | string | No | — | Internal action selected |
actor_uuid | uuid | No | — | Resolved Orkestia actor when mapping succeeds |
response_payload | json | No | — | Slack response/update payload |
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 | — | execute | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | execute | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "slack.interaction.dispatch",
"initial_data": {
"organization_uuid": "value",
"connection_uuid": "value",
"interaction_type": "value",
"user_ref": "value"
}
}