Goal
Create a new agent (AI or human), configure its capabilities and settings, and manage it over time.Preconditions
- Access to a Veratrace instance
- Valid AWS Cognito authentication
- Appropriate permissions to create and manage agents (Administrator or Editor role)
- Backend API running at
http://localhost:8080(development)
Permissions
Required roles: Administrator or Editor (inferred from mock roles)
UI Steps

Step 1: Navigate to Create Page
- Click Agents in the navigation sidebar
- Click Create Agent button or navigate directly to
/agents/create
/agents/create
Component: CreateAgentPage (wraps AddEditAgentPage)
Source: /Users/vincentgraham/clearline-ui/src/app/routes/routerConfig.jsx (line 114-115)
Step 2: Configure Agent Basics
- Enter Name - Agent name (required)
- Select Type - AI or HUMAN (required)
- Toggle Active - Whether agent is active (default: true)
/agents/create
Component: AddEditAgentPage
Source: /Users/vincentgraham/clearline-ui/src/features/agents/pages/CreateAgentPage/CreateAgentPage.jsx
Step 3: Configure AI Agent (if Type is AI)
- Select Model - AI model identifier (e.g., “gpt-4”, “gpt-3.5-turbo”, “claude-3”)
- Select Capabilities - AI-specific capabilities:
- Text generation
- Code generation
- Image analysis
- Data analysis
- Translation
- Summarization
- Content creation
- Automated responses
/agents/create
Component: AddEditAgentPage
Source: /Users/vincentgraham/clearline-ui/src/features/agents/types/agent.js (line 28-37)
Step 4: Configure Human Agent (if Type is HUMAN)
- Select Capabilities - Human-specific capabilities:
- Customer support
- Sales assistance
- Project management
- Strategic planning
- Relationship building
- Complex problem solving
- Creative thinking
- Leadership
- Training/mentoring
- Quality assurance
/agents/create
Component: AddEditAgentPage
Source: /Users/vincentgraham/clearline-ui/src/features/agents/types/agent.js (line 39-49)
Step 5: Set Priority
- Select Priority - high, medium, or low
/agents/create
Component: AddEditAgentPage
Source: /Users/vincentgraham/clearline-ui/src/features/agents/types/agent.js (line 52-56)
Step 6: Save Agent
- Click Save or Create button
- Agent is created and saved
/agents/create
Component: AddEditAgentPage
Source: /Users/vincentgraham/clearline-ui/src/features/agents/api/agents.js
Step 7: Edit Agent (Optional)
- Navigate to
/agents/:agentId/edit - Modify agent configuration
- Click Save to update
/agents/:agentId/edit
Component: AddEditAgentPage
Source: /Users/vincentgraham/clearline-ui/src/app/routes/routerConfig.jsx (line 118-119)
Backend API Calls
Create Agent
Endpoint:POST /instances/:instanceId/agents
Called when: User clicks “Save” or “Create” button
Request:
/Users/vincentgraham/clearline-ui/src/features/agents/api/agents.js (line 72-100)
Update Agent
Endpoint:PUT /instances/:instanceId/agents/:agentId
Called when: User clicks “Save” in edit mode
Request: Same as Create Agent
Response: Updated agent object
Source: /Users/vincentgraham/clearline-ui/src/features/agents/api/agents.js (line 133-161)
Get Agent
Endpoint:GET /instances/:instanceId/agents/:agentId
Called when: Loading agent for editing
Response: Agent object
Source: /Users/vincentgraham/clearline-ui/src/features/agents/api/agents.js (line 108-124)
List Agents
Endpoint:GET /instances/:instanceId/agents
Called when: Loading agents list page
Query Parameters:
type- Filter by type (AI, HUMAN)active- Filter by active statusname- Search by namepage,size,sort- Pagination and sorting
/Users/vincentgraham/clearline-ui/src/features/agents/api/agents.js (line 21-64)
Delete Agent
Endpoint:DELETE /instances/:instanceId/agents/:agentId
Called when: User deletes an agent
Response: 204 No Content
Source: /Users/vincentgraham/clearline-ui/src/features/agents/api/agents.js (line 169-191)
Audit/Evidence Implications
Source: Source: Feature InventoryTroubleshooting
Error: “Instance configuration not available”
Cause: Instance config not loaded or invalid Solution:- Verify authentication is complete
- Check instance ID is valid
- Refresh page and retry
/Users/vincentgraham/clearline-ui/src/features/agents/api/agents.js (line 24-26)
Error: “Failed to create agent”
Cause: Invalid agent data or backend error Solution:- Verify all required fields are filled (name, type)
- Check agent type-specific requirements (model for AI agents)
- Review backend logs for details
/Users/vincentgraham/clearline-ui/src/features/agents/api/agents.js (line 90-97)
Error: “Failed to update agent”
Cause: Invalid agent data or backend error Solution:- Verify agent ID is valid
- Check all fields are valid
- Review backend logs
/Users/vincentgraham/clearline-ui/src/features/agents/api/agents.js (line 151-158)
Agent Not Appearing in List
Cause: Filter settings or pagination Solution:- Clear filters on agents list page
- Check pagination (navigate to next page)
- Verify agent was created successfully
/Users/vincentgraham/clearline-ui/src/features/agents/api/agents.js (line 21-64)
Related
- Agent Concept - Understand agents
- Agents API - Complete API reference
- Manage Agents Guide - Agent management guide