Agent System

Aura Bot dashboard

AuraBoot's agent system turns application metadata into safe AI actions. AuraBot can answer questions, inspect the current page context, call approved tools, and execute multi-step work through the same command pipeline used by normal users.

The key design choice is that agents do not bypass the platform. They operate through models, commands, named queries, permissions, audit logs, approvals, and traces. This makes AI useful in business applications without creating a second, uncontrolled automation path.

Runtime Layers

LayerPurposeRuntime artifact
AuraBot PanelUser-facing chat and contextual assistantStreaming chat session
LLM ProviderModel selection and API executionCloud-configured provider
Agent DefinitionRole, instructions, model, guardrailsAgent metadata record
Tool ContractTool purpose, schema, risk, confirmation policyNative tool config
Command PipelineAuth, validation, transaction, audit, eventsCommand execution result
TraceDebugging, cost, spans, tool callsAI trace and span records

This layering keeps the user experience conversational while keeping execution deterministic enough for operations teams to inspect.

AuraBot vs. Agent Runtime

AuraBot is the user interface. The agent runtime is the execution layer behind it.

AuraBot handles:

  • Opening a right-side assistant panel from the application shell
  • Collecting current page context, record context, model metadata, and selected fields
  • Streaming responses from the configured model provider
  • Offering quick actions such as explain, summarize, draft, or query

The agent runtime handles:

  • Loading agent definitions and guardrails
  • Selecting tools from metadata-derived contracts
  • Calling DSL commands, named queries, or approved native tools
  • Applying confirmation and approval rules
  • Recording trace spans, tool calls, failures, and cost

Tool Contracts

Every agent tool should have a contract. A contract explains what the tool does, when it should be used, what input schema it accepts, what output schema it returns, and what risk level it carries.

AuraBoot can derive most contracts from metadata:

SourceDerived contract fields
Command definitionPurpose, side effects, risk level, input schema
Model metadataField names, data types, required inputs
Named queryRead-only query purpose and parameters
Capability registryVersion, ownership, composability
Agent hintsHuman-written usage guidance

Contract quality matters. If a tool says only "update record", the model may choose it too often. If it says "transition an approved purchase request back to draft when the requester needs to correct fields", the model can make a narrower and safer decision.

Risk and Confirmation

Agent execution maps command risk to confirmation behavior.

RiskExampleAgent behavior
Low readQuery records or summarize a pageExecute without confirmation
Low writeCreate a draft recordUsually execute directly
MediumChange status or run a batch updateAsk once or require explicit confirmation
HighDelete, approve payment, irreversible operationAlways confirm and often require approval

The same permission checks still apply. If the user cannot run a command manually, the agent cannot run it on the user's behalf.

Multi-step Execution

Agents can decompose work into steps. A typical request such as "create a campaign, add three tasks, and summarize next actions" becomes:

  1. Understand the target model and required fields
  2. Create the campaign through a create command
  3. Create child task records through command calls
  4. Query the resulting records
  5. Return a summary with links

Each write operation still passes through the command pipeline. The agent receives structured results rather than scraping the UI.

Collaboration Modes

Advanced deployments can model agent work as tasks. The core patterns are:

ModeBehaviorUse case
DelegateA parent task assigns one subtask to a specific agentSpecialist review or calculation
BroadcastSeveral agents attempt the same task, then the best result is selectedDrafting, classification, analysis
PipelineAgent steps run in sequence and pass output forwardMulti-stage enrichment or review

OSS documentation should treat these as architecture concepts unless the deployment has the corresponding task management screens enabled.

Observability

Agent work must be debuggable. AuraBoot records trace data for model calls and tool calls so administrators can answer:

  • Which prompt and model were used?
  • Which tool was selected and why?
  • What arguments were sent to the tool?
  • Did validation, permission, or downstream execution fail?
  • How long did the model call and tool call take?
  • What was the token or provider cost?

Trace data is also useful for improving tool descriptions. If a tool is frequently misused, the fix is often a better contract, not a larger model.

Plugin Author Responsibilities

When plugin authors want their capabilities to work well with AuraBot, they should:

  • Define precise model names, field labels, and descriptions
  • Keep command input schemas strict and complete
  • Set realistic risk levels on commands
  • Add agent_hint or equivalent guidance for ambiguous actions
  • Prefer named queries for read-heavy analytics
  • Avoid exposing high-risk tools without clear preconditions

Boundaries

Agents are powerful, but they are not a replacement for platform rules. Do not use an agent to work around missing commands, weak permissions, or incomplete validation. If an operation matters to the business, model it as a command first, then let the agent call that command.

Next Steps