Skip to content
Proud to collaborate with Microsoft for Startups

dgi.workflow_builder ​

AI-powered workflow building

AI-powered workflow building for DGI.

Converts user intent and parameters into a structured virtual workflow that can be executed by the workflow engine.

Inputs:

  • intent: The recognized user intent (required)
  • params: Gathered parameters from the user (required)
  • available_workflows: List of available workflow templates (optional)
  • conversation_context: Recent conversation messages (optional)
  • model: Optional model ID override (default: plugin.default_model)

Outputs (terminal state_data):

  • virtual_workflow: Complete workflow specification
  • workflow_type: The workflow type to execute
  • workflow_name: Human-readable name
  • steps: Ordered list of workflow steps
  • required_connections: List of required connection types
  • is_valid: Whether a valid workflow could be built

Plugin required: context.get_plugin("ai")

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-dgi
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
intentstringYes—Recognized user intent
paramsjsonYes—Gathered parameters
available_workflowslistNo—Available workflow templates
conversation_contextlistNo—Recent conversation messages
modelstringNo—Model ID override

Output Schema ​

FieldTypeRequiredDefaultDescription
intentstringNo——
paramsjsonNo——
available_workflowslistNo——
conversation_contextlistNo——
modelstringNo——
is_validbooleanNo——
messagestringNo——
required_connectionslistNo——
stepslistNo——
virtual_workflowdictNo——
workflow_namestringNo——
workflow_typestringNo——
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.workflow_builder",
  "initial_data": {
    "intent": "value",
    "params": "value"
  }
}