Before you start
Complete these steps before building your agent.- Define your agent’s scope. Each agent should handle one specific workflow or question type, such as equipment fault diagnosis, work order triage, or document Q&A.
- Identify an evaluation dataset. Gather 10 to 20 representative questions your users will ask, along with the answers you would consider correct, to use as test cases after building.
- Choose a language model. Select the language model that fits your agent’s task complexity. See About language models for guidance.
Build and publish an agent
Navigate to Agent builder
In CDF, navigate to Atlas AI > Agent builder.Select + Create agent or select a template to use as a starting point.
Configure basic information
Enter a Name that clearly describes the agent’s purpose.Write a Description that explains what problems the agent solves or tasks it automates.Add Sample prompts that show users how to interact with the agent. Make these specific and representative of real use cases.
Set up prompting
Select the Language model you identified earlier.Write Instructions that define the agent’s behavior for every interaction. Effective instructions cover four elements.Keep instructions focused on universal behavior. Workflow-specific guidance, vocabulary mappings, and tool sequencing belong in skills, which the agent loads on demand when relevant.
- Scope and identity
- Universal rules
- Output format
- Boundaries
Define what the agent is for and what requests it should decline.
You are a maintenance assistant for rotating equipment. You help engineers diagnose faults, review work order history, and retrieve sensor data. You do not provide recommendations on staffing or procurement.
Configure skills
Skills give the agent domain-specific knowledge for specific workflows. Use a separate skill for each distinct workflow or dataset so the agent loads only what is relevant to the current question.
- In the Agent builder, select Skills, then + Add skill.
- Use the skill builder to generate a skill from an existing document such as an SOP, engineering specification, or naming convention guide. Review and adjust the generated draft before saving. You can also write skills manually.
- Attach the skill to your agent and test with questions that should trigger it.
Configure tools
Add Tools to let the agent access CDF data, perform calculations, or interact with other applications.
- Start with the Query tool. The Query tool works across your entire data model without requiring separate configuration per view.
- Enable only the tools your agent needs. Each additional tool increases the chance the agent selects the wrong one.
- Document tool combinations in skills. When a question requires more than one tool, add sequencing instructions to the relevant skill rather than relying on the agent to infer the order. See Configuring skills for agents for examples.
Agent actions inherit CDF access controls. The agent can only access data the user has permission to view.
Test and refine
Test the agent in Atlas AI. Refine the language model, instructions, tools, and skills as needed.Test with questions that cover a range of scenarios.
- Typical questions your users will ask
- Questions that involve multiple tools or data types
- Edge cases, such as equipment that does not exist or questions outside the agent’s scope
- Follow-up questions that build on a previous response
Evaluate
Run your evaluation test cases to verify the agent’s responses before publishing.See Running agent evaluations for the step-by-step walkthrough.
Publish
Select Publish to make the agent available in the Agent library to everyone in your CDF project.