Skip to content
Proud to collaborate with Microsoft for Startups

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 ​

PropertyValue
Workflow typeAtomic
LibraryApp-dgi
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
connection_uuiduuidNo—Explicit AI CloudConnection UUID — threaded to ai.chat.complete so synapse uses the org's resolved connection (org-context-free)
modelstringNo—Optional model override threaded to ai.chat.complete
user_messagestringYes—The user's current message
message_historyjsonNo—Previous messages [{role, content}]
previous_understandingjsonNo—Prior understanding output if refining

Output Schema ​

FieldTypeRequiredDefaultDescription
input_tokensintegerNo——
output_tokensintegerNo——
understandingdictNo——
connection_uuiduuidNo——
message_historyjsonNo——
modelstringNo——
previous_understandingjsonNo——
user_messagestringNo——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
failed_layerstringNo——
errorstringNo——
error_typestringNo——

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": "dgi.synapse.understand",
  "initial_data": {
    "user_message": "value"
  }
}