Create an agent
Describe an agent in AI Builder, review its card, run its example, and generate it with your app.
Create an invoice-checking agent by describing its job in AI Builder. You will review its card, run its example, and generate the app so the agent is created and published with it.
Before you start
You need App Admin or Edit permission on the app in its development environment. Agent access must also be enabled in your account. If agents are unavailable, ask your administrator to check the AI control center.
Create and review the agent
-
Open AI Builder and start a new app or open the app you want to change.
-
Enter a request that names the job, inputs, and outputs:
Add an agent that reviews supplier invoices. It receives an invoice PDF and the purchase order amount. Return the invoice number, the invoice total, whether the total matches the purchase order amount, and a short reason explaining any mismatch. If a value is missing or unreadable, explain that instead of guessing. Do not update records. -
Open Blueprint > Custom Agents. Each agent has a card with its name, key, a one-line description, what it Reads, an AI step, what it Returns, and the page it Runs from.
-
Ask for corrections in chat. For example:
Make the total a Number output and the match result a Yes/No output.Review the updated card.
Read an agent card
| On the card | What it tells you |
|---|---|
| Name and key | What the agent is called, and its key (for example Agent_Invoice_Checker_A00) |
| Created on Generate | The agent is made and published together with the app |
| Reads | Its inputs. An asterisk (*) marks a required input. Each shows its type: Text, Number or Attachment |
| Returns | Its outputs: "one answer" or "up to 10 answers" |
| Runs from | The page in your app where a person runs it |
| Instructions & example run | Expands to show the instructions in plain words and an example you can run |
The page displays the answer for a person to review. Any permitted tool actions may already have occurred. Agents started from schedules, business events, integrations or the API run with no person present, and any tool they hold acts without a person approving it. Where it matters, have the agent prepare a draft item and let a person approve it. See Responsible AI.

Test with the example run
- In Custom Agents, open the agent's Instructions & example run.
- Under Example run, choose Example 1 or Example 2. They show sample values ("sample values, not live data") under What the person enters, and the declared sample under What comes back.
- Click Run the example. It "Runs the Agent's Draft live on your dev account with these values."
- Inspect the returned values against the declared sample and your expectation.
- Developers can test their own inputs through
POST /{AgentId}/test. Send{"InputData":{...}}with values that match the agent's declared inputs and file requirements. See Test an agent.
You don't type inputs into the example run. It uses the sample values on the card.
Important
A test run is a real run and uses real tools. If you add tools, test with records you can safely change. The tool uses its connection's permissions.
Generate to publish
When the blueprint looks right, click Generate. AI Builder creates and publishes agents when you click Generate, together with the app. This is why each card reads "Created on Generate". To change an agent later, see Change an app after it's generated. People run Live; they do not run your Draft.
Then open the page named under Runs from and run the agent as a person would. Read the answer and confirm that its fields are useful for the next person handling the invoice.
To use the agent in production, deploy the app. Only the published agent moves. If it uses tools, connect them in the target environment before relying on their actions.

