Skip to content
Proud to collaborate with Microsoft for Startups

dgi.ai_chat ​

AI-powered chat for DGI conversations

AI-powered chat for DGI conversations.

Uses the AI plugin to provide conversational responses about infrastructure automation.

Inputs:

  • messages: List of {role, content} message objects (required). Roles: user, assistant, system.
  • system_prompt: Optional system instruction override.
  • model: Optional model ID override (default: plugin.default_model).
  • temperature: Optional temperature 0.0-2.0 (default: 0.7).
  • max_tokens: Optional max tokens (default: 1024).

Outputs (terminal state_data):

  • response: str — assistant reply text
  • role: str — always "assistant"
  • finish_reason: str — stop | length | tool_calls
  • model: str — model ID used
  • usage: dict — token usage

Plugin required: context.get_plugin("ai")

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-dgi
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
messagesjsonYes—List of {role, content} message objects
system_promptstringNo—System instruction override
modelstringNo—Model ID override
temperaturejsonNo—Temperature 0.0-2.0
max_tokensintegerNo—Max tokens to generate

Output Schema ​

FieldTypeRequiredDefaultDescription
messagesjsonNo——
system_promptstringNo——
modelstringNo——
temperaturejsonNo——
max_tokensintegerNo——
finish_reasonstringNo——
responsestringNo——
rolestringNo——
usagedictNo——
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.ai_chat",
  "initial_data": {
    "messages": "value"
  }
}