This guide shows how to build or add to an AI agent. UnifyApps Headless sets up its instructions, tools and knowledge. Then it tests the agent with real messages and publishes only when you say yes.
Before you start
A folder set up with
/ua:setup.For a new agent: ask in chat, or plan it first with
/ua:scope-loop. The build loop adds to an agent that exists.A connection for any outside system a new tool reaches. It can make a missing one with you in chat.
Knowledge files in the solution folder, up to 20 MB each.
In Codex, type
$ua:build-loop. In Copilot CLI, ask in words.
What an agent is made of
Part | What it is |
|---|---|
Instructions | What the agent is told to do |
Model | The AI model it uses |
Tools | What it can call, such as an automation |
Knowledge | Documents, websites, app and data catalog sources, and knowledge sets several agents share. Files can be up to 20 MB. A website reads 100 pages unless you ask for more. From an app source, each person gets answers only from what they can see there. |
Skills and guardrails | Extra parts the agent builder can add when the work needs them |
You do not need to know these words. Describe what the agent should do, and UnifyApps Headless works out the parts.
Build the agent
Step 1: Say what the agent should do
Use the build loop for one ticket or one new ability at a time.
/ua:build-loop Let the Purchase Orders agent answer "where is my order?" from the Purchase order object
You can also give it a ticket instead of words.
Step 2: Answer the start questions
It asks up to 4 questions at the start. For example: which test user the test messages run as. It also asks if an automation for a new tool may be deployed once its test run passes.
Step 3: Approve the plan
It plans the parts the work needs. That can be a new automation for a tool, or an object the agent reads. Nothing is built until you say yes.
Step 4: Let it build
Builder agents build the parts. Each change to the agent is read back from the platform.
Step 5: Let it test the agent
For each thing you asked for, it sends a test message to the draft agent. Then it reads the trace: which tools the agent called and which knowledge it found. That shows why the agent answered the way it did.
When an answer is wrong, it fixes the part at fault and tries again. After 3 tries, it asks you. You can accept the answer, try once more, or stop.
Step 6: Say yes to publish
When the tests pass, it offers to publish. It publishes only after your yes.
Publishing does not put the agent in front of people. After another yes, it can add the agent to the UnifyApps copilot. Slack, Teams and schedules you set up yourself.
Warning: Publishing changes what real users of the agent see. Test messages always go to the draft, never to the published agent your users talk to.
What you get
The agent's new instructions, tools and knowledge, each read back.
A result for every test message: pass or fail, with the answer and the trace.
A summary of what was built, any open items, and what to do next.
Tip: To test the agent more widely, use the test loop. It writes test conversations, turns them into an evaluation, and runs it.
Next steps
Test loop: Write and run tests for the agent.
Repair loop: Fix an agent that answers wrongly or calls the wrong tool.
Build an automation: Build an automation for the agent to call.