Skip to content
Proud to collaborate with Microsoft for Startups

dgi.intent_recognition ​

AI-powered intent recognition

AI-powered intent recognition for DGI conversations.

Uses AI to analyze user messages and determine their intent with better accuracy than keyword-based matching.

Inputs:

  • message: The user's message (required)
  • history: Previous messages in conversation (optional)
  • available_workflows: List of workflow IDs to consider (optional)
  • model: Optional model ID override (default: plugin.default_model)

Outputs (terminal state_data):

  • recognized_intent: The identified intent (e.g., "deploy_site", "provision_ec2")
  • intent_confidence: Confidence score (0.0-1.0)
  • intent_params: Extracted parameters from the message
  • suggested_workflow: Recommended workflow ID or null

Plugin required: context.get_plugin("ai")

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-dgi
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
messagestringYes—User's message
historylistNo—Previous messages in conversation
available_workflowslistNo—List of workflow IDs to consider
modelstringNo—Model ID override

Output Schema ​

FieldTypeRequiredDefaultDescription
messagestringNo——
historylistNo——
available_workflowslistNo——
modelstringNo——
intent_confidencefloatNo——
intent_paramsdictNo——
intent_raw_responsedictNo——
recognized_intentstringNo——
suggested_workflowstringNo——
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.intent_recognition",
  "initial_data": {
    "message": "value"
  }
}