chat.conversation.send-message.persist-user-message ​
Insert a user-role ChatMessage and update conversation counters
Append the user-role ChatMessage and bump the conversation counters.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-chat |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
conversation_uuid | uuid | Yes | — | — |
user_uuid | uuid | No | — | Public user uuid from the validate step; absent on an end-user run |
user_message | string | Yes | — | Raw user message content |
provided_inputs | json | No | — | Optional resolved form payload for a prior pending_input |
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.persist-user-message",
"initial_data": {
"conversation_uuid": "value",
"user_message": "value"
}
}