Kissflow DocsCentro de ayuda
Este artículo aún no está disponible en español. Se muestra la versión original en inglés.

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.

Video: Create an agent

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

  1. Open AI Builder and start a new app or open the app you want to change.

  2. 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.
  3. 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.

  4. 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 cardWhat it tells you
Name and keyWhat the agent is called, and its key (for example Agent_Invoice_Checker_A00)
Created on GenerateThe agent is made and published together with the app
ReadsIts inputs. An asterisk (*) marks a required input. Each shows its type: Text, Number or Attachment
ReturnsIts outputs: "one answer" or "up to 10 answers"
Runs fromThe page in your app where a person runs it
Instructions & example runExpands 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.

Creating and reviewing an invoice-checking agent in AI Builder

Test with the example run

  1. In Custom Agents, open the agent's Instructions & example run.
  2. 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.
  3. Click Run the example. It "Runs the Agent's Draft live on your dev account with these values."
  4. Inspect the returned values against the declared sample and your expectation.
  5. 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.

En esta página