dgi.synapse.understand ​
Deep intent understanding from user message + history
Deep intent understanding from user message and conversation history.
The first synapse in the DGI reasoning chain. Analyzes the user's message to produce a structured understanding of their goal.
Inputs:
- user_message: The user's current message (required)
- message_history: Previous messages in the conversation (optional)
- previous_understanding: Output from a prior understand synapse if refining (optional)
Outputs (terminal state_data):
- understanding: dict with goal, intent_type, domain, complexity, key_entities, constraints, ambiguities
- input_tokens: int
- output_tokens: int
Plugin required: context.get_plugin("ai")
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-dgi |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
connection_uuid | uuid | No | — | Explicit AI CloudConnection UUID — threaded to ai.chat.complete so synapse uses the org's resolved connection (org-context-free) |
model | string | No | — | Optional model override threaded to ai.chat.complete |
user_message | string | Yes | — | The user's current message |
message_history | json | No | — | Previous messages [{role, content}] |
previous_understanding | json | No | — | Prior understanding output if refining |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
input_tokens | integer | No | — | — |
output_tokens | integer | No | — | — |
understanding | dict | No | — | — |
connection_uuid | uuid | No | — | — |
message_history | json | No | — | — |
model | string | No | — | — |
previous_understanding | json | No | — | — |
user_message | string | No | — | — |
failure_reason | string | No | — | — |
failure_type | string | No | — | — |
failed_action | string | No | — | — |
failed_at_state | string | No | — | — |
failed_step | string | No | — | — |
failed_layer | string | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
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": "dgi.synapse.understand",
"initial_data": {
"user_message": "value"
}
}