chat.conversation.send-message.dispatch-dgi ​
Start a dgi.thought-processing child run for the just-persisted user turn
Spawn a dgi.thought-processing child run for the user turn.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-chat |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
conversation_uuid | uuid | Yes | — | — |
organization_uuid | uuid | Yes | — | Organization uuid from validate step |
user_uuid | uuid | No | — | The sender — packed into the dgi context so context-sourced user_uuid inputs (workflow-request.create, schedule.create) resolve |
user_message | string | Yes | — | — |
user_message_uuid | uuid | Yes | — | ChatMessage uuid of the just-persisted user turn |
llm_connection_uuid | uuid | No | — | Optional LLM connection override (uuid) |
confirmed_action | json | No | — | Optional resolution of a prior pending_action |
provided_inputs | json | No | — | Optional values the user filled into a prior pending_input form |
deep_reasoning | boolean | No | — | Deep-reasoning mode flag (raises the dgi tool-loop budget) |
proactive | boolean | No | — | Proactive mode flag (request next-action suggestions) |
workflow_run_uuid | uuid | No | — | — |
workflow_run_id | string | No | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
conversation_uuid | uuid | No | — | — |
user_uuid | uuid | No | — | — |
organization_uuid | uuid | No | — | — |
user_message | string | No | — | — |
provided_inputs | json | No | — | — |
confirmed_action | json | No | — | — |
llm_connection_uuid | uuid | No | — | — |
stream | boolean | No | — | — |
deep_reasoning | boolean | No | — | — |
proactive | boolean | No | — | — |
workflow_run_uuid | uuid | No | — | — |
workflow_run_id | string | No | — | — |
last_message_preview | string | No | — | — |
dgi_workflow_uuid | uuid | No | — | — |
user_message_uuid | uuid | No | — | — |
assistant_message_uuid | uuid | No | — | — |
failure_reason | string | No | — | Engine-stamped human-readable failure reason |
failed_at_state | string | No | — | Engine-stamped state when the workflow failed |
failed_step | string | No | — | Engine-stamped step name (DAG path) |
failed_layer | integer | No | — | Engine-stamped layer index (DAG path) |
error | string | No | — | Engine-stamped exception message |
error_type | string | No | — | Engine-stamped exception class name |
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": "chat.conversation.send-message.dispatch-dgi",
"initial_data": {
"conversation_uuid": "value",
"organization_uuid": "value",
"user_message": "value",
"user_message_uuid": "value"
}
}