> ## Documentation Index
> Fetch the complete documentation index at: https://usesuperflow.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# How to Create a New Agent

> Learn how to create a new agent in Superflow.

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.

<Frame>
  <video controls className="w-full aspect-video" src="https://mintcdn.com/superflow/jELxsvcVzU8LZvi4/videos/create-an-agent.mp4?fit=max&auto=format&n=jELxsvcVzU8LZvi4&q=85&s=eabd37a183d099c907b6e9ae06bbfced" data-path="videos/create-an-agent.mp4" />
</Frame>

<Note>
  Agents are currently in **Beta**. Each run consumes credits from your workspace balance, and the exact cost is shown before you confirm a run.
</Note>

## Creating the Agent

<Steps>
  <Step title="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.

    <Frame>
      <img src="https://mintcdn.com/superflow/7RoAJ1ZsgDbr7h78/images/how-to-guides/how-to-create-a-new-agent/01-agents-new-agent.png?fit=max&auto=format&n=7RoAJ1ZsgDbr7h78&q=85&s=3fbbad029cf6899ea12e9dc0d7466436" alt="On the Superflow Dashboard, click Agents in the left sidebar" width="1600" height="1040" data-path="images/how-to-guides/how-to-create-a-new-agent/01-agents-new-agent.png" />
    </Frame>
  </Step>

  <Step title="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**.

    <Frame>
      <img src="https://mintcdn.com/superflow/7RoAJ1ZsgDbr7h78/images/how-to-guides/how-to-create-a-new-agent/02-basics.png?fit=max&auto=format&n=7RoAJ1ZsgDbr7h78&q=85&s=79a6708f012484ecded9f6d32a702d81" alt="The Basics step will appear" width="1600" height="1040" data-path="images/how-to-guides/how-to-create-a-new-agent/02-basics.png" />
    </Frame>

    <Tip>
      **Auto Credits** calculates credits at run time.
    </Tip>
  </Step>

  <Step title="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**.

    <Frame>
      <img src="https://mintcdn.com/superflow/7RoAJ1ZsgDbr7h78/images/how-to-guides/how-to-create-a-new-agent/03-prompt.png?fit=max&auto=format&n=7RoAJ1ZsgDbr7h78&q=85&s=365c15e7014155b50de431c5900fdf82" alt="The Prompt step will appear" width="1600" height="1040" data-path="images/how-to-guides/how-to-create-a-new-agent/03-prompt.png" />
    </Frame>
  </Step>
</Steps>

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

<Steps>
  <Step title="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.

    <Frame>
      <img src="https://mintcdn.com/superflow/7RoAJ1ZsgDbr7h78/images/how-to-guides/how-to-create-a-new-agent/04-testing.png?fit=max&auto=format&n=7RoAJ1ZsgDbr7h78&q=85&s=f192921bf5bf73ec90f1121e212fff44" alt="The Test step will begin automatically" width="1600" height="1040" data-path="images/how-to-guides/how-to-create-a-new-agent/04-testing.png" />
    </Frame>
  </Step>

  <Step title="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.

    <Frame>
      <img src="https://mintcdn.com/superflow/7RoAJ1ZsgDbr7h78/images/how-to-guides/how-to-create-a-new-agent/05-test-results.png?fit=max&auto=format&n=7RoAJ1ZsgDbr7h78&q=85&s=5a3349a868a32fb661a51c6779a34e2a" alt="When testing completes, the generated scenarios are listed as numbered tabs" width="1600" height="1040" data-path="images/how-to-guides/how-to-create-a-new-agent/05-test-results.png" />
    </Frame>
  </Step>
</Steps>

Each scenario is labelled so you can see the kind of case it covers, for example:

| Label                       | What it means                                                                             |
| --------------------------- | ----------------------------------------------------------------------------------------- |
| **Obvious Match**           | A clear-cut issue the agent should always catch, such as `Submite Changes` on a button.   |
| **Subtle Match**            | A harder case that is easy to miss, such as a misspelling inside a placeholder attribute. |
| **Expected: Should detect** | The agent is expected to raise a finding for this scenario.                               |

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.

<Steps>
  <Step title="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.

    <Frame>
      <img src="https://mintcdn.com/superflow/7RoAJ1ZsgDbr7h78/images/how-to-guides/how-to-create-a-new-agent/06-feedback.png?fit=max&auto=format&n=7RoAJ1ZsgDbr7h78&q=85&s=89172798da8b03971ce35d1fd2aaf28d" alt="If a scenario's result looks wrong, click Wrong Output?" width="1600" height="1040" data-path="images/how-to-guides/how-to-create-a-new-agent/06-feedback.png" />
    </Frame>
  </Step>

  <Step title="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.

    <Frame>
      <img src="https://mintcdn.com/superflow/7RoAJ1ZsgDbr7h78/images/how-to-guides/how-to-create-a-new-agent/07-creating.png?fit=max&auto=format&n=7RoAJ1ZsgDbr7h78&q=85&s=a8c353299df21ff947e1aa4435eead34" alt="Once you are satisfied with the results, click Create" width="1600" height="1040" data-path="images/how-to-guides/how-to-create-a-new-agent/07-creating.png" />
    </Frame>
  </Step>

  <Step title="Your new agent will appear in the All Agents list, marked with a NEW badge">
    <Frame>
      <img src="https://mintcdn.com/superflow/7RoAJ1ZsgDbr7h78/images/how-to-guides/how-to-create-a-new-agent/09-agent-list.png?fit=max&auto=format&n=7RoAJ1ZsgDbr7h78&q=85&s=a6979db979e3001b28be9fe88a66e430" alt="Your new agent will appear in the All Agents list, marked with a NEW badge" width="1600" height="1040" data-path="images/how-to-guides/how-to-create-a-new-agent/09-agent-list.png" />
    </Frame>
  </Step>
</Steps>

## Next Steps

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

<CardGroup>
  <Card title="How to Run an Agent from the Agents Tab" icon="play" href="/docs/agents/how-to-run-an-agent-from-the-agents-tab">
    Run your new agent against a project, choose a device, and review its findings.
  </Card>
</CardGroup>


## Related topics

- [How to Create Agents from a Checklist](/docs/agents/how-to-create-agents-from-a-checklist.md)
- [How to Create and Run an Agent Group](/docs/agents/how-to-create-and-run-an-agent-group.md)
- [How to Run Agent Pre-Checks on a New Project](/docs/agents/how-to-run-agent-pre-checks-on-a-new-project.md)
- [How to Run an Agent from the Agents Tab](/docs/agents/how-to-run-an-agent-from-the-agents-tab.md)
- [How to Create a New Project](/docs/dashboard/how-create-a-new-project.md)
