Skip to content
Proud to collaborate with Microsoft for Startups

slack.command.dispatch ​

Dispatch a verified Slack slash command payload to an authorized platform action.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-slack
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes—Organization resolved by the HTTP verification boundary
connection_uuiduuidYes—Slack connection resolved by team/enterprise/signing secret lookup
commandstringYes—Slack slash command
textstringNo—Raw command text
team_refstringNo—Slack team id
user_refstringYes—Slack user id
channelstringNo—Slack channel id
response_urlstringNo—Ephemeral Slack response URL; do not persist
payloadjsonYes—Verified slash command payload
workflow_run_idstringNo—Parent DAG run id (auto-injected by the engine when used as a DAG step)

Output Schema ​

FieldTypeRequiredDefaultDescription
commandstringNo—Slash command handled
actionstringNo—Internal action selected
actor_uuiduuidNo—Resolved Orkestia actor when mapping succeeds
response_modestringNo—immediate, delayed, or rejected
response_payloadjsonNo—Slack response payload to return or post
workflow_run_idstringNo—Parent DAG run id (auto-injected by the engine when used as a DAG step)
failure_reasonstringNo—Human-readable failure reason (engine-stamped)
failure_typestringNo—Failure category (engine-stamped)
failed_actionstringNo—Action that failed (engine-stamped)
failed_at_statestringNo—State where the workflow failed (engine-stamped)
failed_stepstringNo—DAG step that failed (engine-stamped)
failed_layerstringNo—DAG layer that failed (engine-stamped)
errorstringNo—Error message (engine-stamped)
error_typestringNo—Error class name (engine-stamped)

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—execute—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "slack.command.dispatch",
  "initial_data": {
    "organization_uuid": "value",
    "connection_uuid": "value",
    "command": "value",
    "user_ref": "value"
  }
}