Skip to content
Proud to collaborate with Microsoft for Startups

data.ai-provider.get-default ​

Resolve the org's default enabled AIProviderConfig (is_default=True, enabled=True)

Resolve the org's single default AIProviderConfig (is_default=True, enabled=True).

Read-only — no DB mutations. Uses context.metadata["organization"] for the internal organization_id lookup; the public input is organization_uuid only.

Output shapes:

  • Default found: no_default_set=False + ai_provider_config_uuid, connection_uuid, default_model, model_config, rate_limit_rpm, rate_limit_tpm
  • No default: no_default_set=True (all other fields absent)

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-connection
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes—UUID of the organization whose default AI provider is being resolved

Output Schema ​

FieldTypeRequiredDefaultDescription
no_default_setbooleanYes—True when the org has no default+enabled AI provider config
ai_provider_config_uuiduuidNo—UUID of the default AIProviderConfig row (present only when no_default_set=False)
connection_uuiduuidNo—UUID of the linked CloudConnection (present only when no_default_set=False)
default_modelstringNo—Default model ID (e.g. 'gpt-4o-mini') configured for this provider
model_configdictNo—Model configuration dict: temperature, max_tokens, etc.
rate_limit_rpmintegerNo—Requests per minute rate limit; None means unlimited
rate_limit_tpmintegerNo—Tokens per minute rate limit; None means unlimited
failure_reasonstringNo—Engine-stamped: human-readable failure reason
failure_typestringNo—Engine-stamped: failure category
failed_actionstringNo—Engine-stamped: action method that raised
failed_at_statestringNo—Engine-stamped: state name when the failure occurred
failed_stepstringNo—Engine-stamped: name of the step that failed (DAG workflows)
failed_layerintegerNo—Engine-stamped: layer index that failed (DAG workflows)
errorstringNo—Engine-stamped: error message on the failure envelope
error_typestringNo—Engine-stamped: exception class name on the failure envelope

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—completeResolve default AI provider config
completedNoYesYes—Default AI provider resolved
failedNoYesNo—Resolution failed

State Diagram ​

Transitions ​

FromActionToDescription
pendingcompletecompleted—
pendingfailfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "data.ai-provider.get-default",
  "initial_data": {
    "organization_uuid": "value"
  }
}