This guide shows how to build an automation. An automation is a workflow that runs steps for you, such as sending an order for approval. UnifyApps Headless writes it, test-runs it, and deploys it once the tests pass.
Before you start
A folder set up with
/ua:setup.A signed-in connection for each outside system, and a test account there. If one is missing, it can be made with you in chat: you give the sign-in, or approve its sign-in link.
In Codex, type
$ua:build-loop. In Copilot CLI, ask in words.
How it builds an automation
The automation is written as TypeScript code. The platform checks the code and saves it. You do not need to read or write the code yourself.
Then it proves the automation works. It adds test records, runs the automation, and reads the result back. Only then does it deploy.
Build the automation
Step 1: Say what the automation should do
For a new automation, ask in chat. Say what starts it and what it should do.
Build an automation that sends every new purchase order over $5,000 to the manager for approval
For a ticket, or to add to an automation that exists, use the build loop. It works on one ticket at a time. The steps below show what the build loop does.
/ua:build-loop Add a reminder to the Route for approval automation when a manager has not answered in 2 days
Step 2: Answer the start questions
It asks up to 4 questions at the start:
Which test records to add. They get throwaway names and are deleted after.
Which connection and test account to use for each outside system, and which channel, board or folder there.
Any secret it needs, such as an API key. Paste it once in chat. It is saved as a hidden value and never shown again.
If it may deploy once every test passes.
Step 3: Approve the plan
It plans the parts: new objects or fields, the automation, and its test runs. If a connection must be made by hand, the plan says so. Nothing is built until you say yes.
Step 4: Let it build and test
Builder agents build the parts. For each thing you asked for, it adds the test records and runs the automation. It looks at every step: what went in, what came out, and any error. Then it reads the records back.
When a test fails, it finds the step at fault, fixes it, and runs it again. After 3 tries, it asks you. You can accept the result, try once more, or stop.
Warning: A test run is real. It can send a real email or message through your connection. So pick a test account. It asks first before a run that reaches outside systems in a way you did not ask for.
Step 5: Let it deploy
When every test passes, it runs a best-practice check. A serious problem is fixed first. Then it deploys the automation.
On a test (UAT) tenant, it deploys without asking. On any other tenant, it asks you first.
Step 6: Clean up the test records
It deletes the test records it added. First it shows what it will delete and asks you once.
Warning: Pages, AI agents or other automations may already call your automation. A deployed change reaches their users at once. So when you ask in chat, it asks you before it deploys such a change.
What you get
The automation, deployed where you said.
A result for every test run: pass or fail, with the step that differed.
The test records removed, after your yes.
A summary of what was built, any warnings from the best-practice check, and anything still open.
Next steps
Repair loop: Fix an automation that failed or wrote the wrong thing.
Build a web page: Build a page that runs the automation.
Move to another environment: Send the automation to another environment.