chat.conversation.send-message.wait-and-persist-assistant ​
Wait on the dgi child run and append the assistant message
Block on the child dgi run, then persist the assistant ChatMessage.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-chat |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
conversation_uuid | uuid | Yes | — | — |
user_message_uuid | uuid | Yes | — | Public uuid of the user-turn ChatMessage |
dgi_workflow_uuid | uuid | Yes | — | workflow UUID of the child dgi.thought-processing run to wait on |
workflow_run_uuid | uuid | No | — | — |
workflow_run_id | string | No | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
assistant_message | json | No | — | Full assistant payload (content, role, pending_input, pending_action, citations, metadata) |
wait_started_at | integer | No | — | — |
wait_poll_count | integer | No | — | — |
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 | — | start_wait | — |
waiting | No | No | — | — | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | start_wait | waiting | — |
waiting | poll | waiting | — |
waiting | complete | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "chat.conversation.send-message.wait-and-persist-assistant",
"initial_data": {
"conversation_uuid": "value",
"user_message_uuid": "value",
"dgi_workflow_uuid": "value"
}
}