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

Track runs

Understand run statuses, find results and error codes, and read run history for your agents.

Every time an agent works on something, that is a run. This article explains the statuses a run moves through, where you find its results, and how App Admins and Editors read run history.

Video: Track runs

Run statuses

Runs happen in the background. A run has one of these statuses.

StatusMeaning
QueuedWaiting for a free slot. Your account has a Live-run limit, shared with process agents. Additional runs wait. See Limits.
Not started (NotStarted in the API)Picked up, before Running.
RunningThe agent is reading, searching, reasoning or using tools.
CompletedResults are ready.
FailedThe run stopped without results. It reports an error code and whether trying again could help.

A Failed run returns an error code and no partial results. Every run also records whether it was a Draft (test) or Live run in its Stage field. For what each code means, see Troubleshoot agent errors.

Two things to know:

  • No automatic retries. A tool may already have acted before the run failed, so Kissflow doesn't retry for you. Check what the agent already did before you run it again.
  • No cancel. You can't cancel a run once it has started.

Test runs of the Draft don't take a Live run slot. See Limits.

Find the results of a run

How you started the runWhere results appear
From a page in the app (the agent card names it under Runs from)The person who ran it reads the answer there before acting.
From app page codeRead the run with its run ID using the Kissflow JavaScript SDK.
From an integration or your own systemRead the run with its run ID using the Agent API.

An animated sequence of a run from an app page: inputs filled in, the Running state, and the answer the person reads

An accepted start response includes a run ID. If you have that ID, use it to read the run. If the response is lost and you have no ID, report that the run may still be in progress. Don't blindly resubmit the request; you may start it twice.

To keep a lasting record, save the results on the item with a tool, or read them in page code and save them through the appropriate item API.

Run history

  • People can read their own runs.
  • App Admins and Editors can read every run of the app's agents, newest first, through the Agent API.
  • Run history stays in each environment. Development runs don't appear in production.
  • The latest run is kept. Older runs and test runs expire. Deleting an agent keeps its execution history.

Review runs through the Agent API, and check the audit log for who ran an agent and when. You can also ask AI Builder to add a run history page to your app. Run results include status, results, timestamps and any error. They don't include the agent's working, such as its messages or tool calls, for anyone, including API users. To understand why an agent answered as it did, add a Reason output. To review runs, call the Agent API from a script or tool. See Agent API.

Use run history for quality

Run history is the main way to monitor a published agent.

  1. List recent runs, newest first.
  2. Filter for Failed runs and note their error codes.
  3. Group by code. KISSFLOW_ERROR_20609 means the run exceeded its time limit.
  4. Add real failing inputs to your golden test set, and fix the instructions.

See Evaluate agent quality for the full method.

Note

Agent created, Agent updated, Agent deleted, Agent published and Agent executed events are also recorded in the account's audit log. Test runs and live runs both appear as Agent executed. See Audit and access.

En esta página