Agent Workflows

This guide explains how to turn AuraBoot metadata into useful agent workflows. The goal is not to make the model free-form. The goal is to give it well-described tools, strict schemas, and a guarded path for business operations.

Prerequisites

Before enabling agent workflows, make sure the basic platform metadata is healthy:

RequirementWhy it matters
Models have readable names and field descriptionsThe model needs domain context
Commands are published and permissionedAgents execute through commands
Command input schemas are strictTool calls need reliable parameters
Risk levels are assignedConfirmation policy depends on risk
Audit logging is enabledAgent actions must be traceable

If the metadata is weak, the agent will still run, but it will ask more clarification questions and choose tools less reliably.

Configure an LLM Provider

AuraBoot reads LLM configuration from the platform cloud configuration service. A provider record should define:

  • Provider code, such as openai, anthropic, deepseek, or a custom OpenAI-compatible provider
  • API format, usually chat_completions or messages
  • Base URL when using a compatible gateway
  • Default model
  • API key
  • Token limits and timeout policy

Use one provider first. Add multiple providers only when you have a clear routing need, such as a fast model for summaries and a stronger model for planning.

Define an Agent

An agent definition should be small and concrete.

FieldGuidance
CodeStable identifier, such as sales-assistant
NameUser-facing name
System instructionRole, scope, and boundaries
Default modelModel to use unless overridden
Allowed toolsNarrow list of tool codes or capability groups
GuardrailsConfirmation, budget, max steps, provider policy

Avoid broad instructions such as "manage the whole business". Prefer scoped agents such as "help sales users inspect leads, draft follow-ups, and create task records".

Expose Tools

The best tools are usually existing commands and named queries.

Tool sourceBest forNotes
DSL commandCreate, update, delete, state transitionUses permissions, validation, audit
Named queryAnalytics and read-heavy questionsKeep parameters explicit
Native toolIntegration-specific actionsAdd a strict contract
Workflow actionLong-running business processesPrefer approval for risky steps

Each tool needs a clear purpose, input schema, output schema, and risk policy. Do not expose internal maintenance APIs as agent tools unless they are already safe for delegated execution.

Add Agent Hints

Agent hints are short usage descriptions attached to capabilities. They help the model choose the right tool.

Good hint:

Use this command when a sales user wants to qualify a lead after confirming budget, decision maker, and expected close date. Do not use it for leads still missing required discovery fields.

Weak hint:

Update lead.

The stronger hint tells the model when to use the command, when not to use it, and which business preconditions matter.

Set Confirmation Policy

Map tool risk to user confirmation.

OperationSuggested policy
Read-only lookupNo confirmation
Draft creationNo confirmation or ask once
Status transitionAsk once
Delete or irreversible actionAlways ask
Financial, legal, or external side effectApproval required

Confirmation is not only a UI detail. It is part of the agent contract, so it should be reviewed with the same discipline as command permissions.

Run a Test Conversation

Start with a simple scenario:

  1. Open AuraBot from a page with known model context
  2. Ask a read-only question about the current list
  3. Ask the agent to create a draft record
  4. Confirm the action if prompted
  5. Open the created record and verify field values
  6. Inspect the trace and audit entry

The trace should show the model call, selected tool, arguments, command result, and final response. If the wrong tool was selected, improve the tool contract before changing prompts.

Troubleshooting

SymptomLikely causeFix
Agent says no provider is configuredMissing or disabled LLM providerAdd a cloud config provider record
Agent cannot run a commandUser lacks permission or command is unpublishedFix permission or publish the command
Agent asks too many questionsTool schemas or field descriptions are vagueImprove model and command metadata
Agent selects the wrong toolTool purpose overlaps with another toolAdd whenToUse and whenNotToUse guidance
Tool call fails validationInput schema does not match command requirementsAlign the command schema and examples

Production Checklist

  • Provider keys are stored in platform configuration, not in frontend code
  • High-risk commands require confirmation or approval
  • Agent tools have current contracts
  • Tool contracts are regenerated after capability changes
  • Trace retention and audit retention match your compliance needs
  • A small set of real workflows has been tested end-to-end

Next Steps