Skip to main content
In this article, you will learn how to create a new agent in Superflow. An agent is a reusable check that you describe in plain English, which Superflow then runs against your projects to find issues automatically. Before the agent is saved, Superflow stress-tests your instructions against sample cases so you can confirm it behaves the way you expect. In this example, we will build a Spell Check agent that looks for spelling mistakes in a page.
Agents are currently in Beta. Each run consumes credits from your workspace balance, and the exact cost is shown before you confirm a run.

Creating the Agent

1

On the Superflow Dashboard, click Agents in the left sidebar

The All Agents page will open. Click the New Agent button on the upper right side.
On the Superflow Dashboard, click Agents in the left sidebar
2

The Basics step will appear

Enter a Name for your agent, then add an optional Description to explain what it does. A live preview of the agent card is shown on the right side. Click Next.
The Basics step will appear
Auto Credits calculates credits at run time.
3

The Prompt step will appear

In the Prompt field, describe what the agent should check for. In this example, we will use Make sure all the spellings in the HTML body is correct. Click Next.
The Prompt step will appear
There are two optional controls on this step:
  • Refine prompt rewrites your instruction into a clearer, more specific version.
  • Questions lets you click Add Question to add questions the agent should ask at run time.

Reviewing the Test Results

1

The Test step will begin automatically

Superflow analyzes your instructions, stress-tests the prompt, generates test scenarios, and builds live previews. This is the longest step, so allow it a moment to finish.
The Test step will begin automatically
2

When testing completes, the generated scenarios are listed as numbered tabs

Click any tab to inspect that scenario. Each one shows a live preview of the sample case, the Expected Output, and the Reason behind it.
When testing completes, the generated scenarios are listed as numbered tabs
Each scenario is labelled so you can see the kind of case it covers, for example: Reviewing these scenarios is the point of this step. It shows you where your check will succeed and where it may produce a false positive, before the agent runs against real projects.
1

If a scenario's result looks wrong, click Wrong Output?

Tell us Why** and explain the problem. Superflow will rebuild the prompt using your feedback and test it again.
If a scenario's result looks wrong, click Wrong Output?
2

Once you are satisfied with the results, click Create

Superflow will configure the agent and lock in the prompt along with the edge cases it learned during testing.
Once you are satisfied with the results, click Create
3

Your new agent will appear in the All Agents list, marked with a NEW badge

Your new agent will appear in the All Agents list, marked with a NEW badge

Next Steps

Your agent is ready to use. The next step is to run it against a project and review what it finds.

How to Run an Agent from the Agents Tab

Run your new agent against a project, choose a device, and review its findings.