> For the complete documentation index, see [llms.txt](https://docs.testfirst.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.testfirst.com/agentic-test-automation/agentic-test-automation.md).

# Agentic Test Automation

Agentic Test Automation turns test intent into working, validated automation.

The TestFirst Agent understands the intended test journey, explores your application, builds the automation, and validates it against the expected behavior.

See how TestFirst turns requirements and documentation into working automation in a few steps.

{% embed url="<https://guides.testfirst.com/demo/cmtjxpenv01rr2b0j714q6n7v>" %}

### How It Works

```
Test Intent + Product Context
          ↓
   TestFirst Agent
          ↓
  Application Discovery
          ↓
   Build & Validate
          ↓
      Review
```

The agent can use:

* **Test case steps** and expected behaviour
* **Source documents** from selected Test Scopes
* **Instructions** provided through Additional context
* Product knowledge from **AI Memory**

### Create Automation

From an automated (Test type) test case in the TestFirst Editor:

1. Click ![](https://2622859358-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FErSaU4WjIuLC7zfVEh8L%2Fuploads%2F8jZojcBCIC1tZW1pdhqy%2FScreenshot%202026-09-07%20112609.png?alt=media\&token=bdd4f32a-56fd-4359-b4ff-7de0748f3ea0)
2. Confirm the relevant Test Scope, if applicable.
3. Add any instructions in Additional context (optional).
4. Click START.
5. Follow the agent in the Preview panel.
6. Review and accept the generated automation.

{% hint style="info" %}
Use Additional context when you want to provide specific testing instructions, test data, scenarios, conditions, or areas for the agent to focus on.
{% endhint %}

### Refine Your Automation

Once accepted, the generated automation can be edited and maintained like any other TestFirst automated test.

{% hint style="info" %}
Want more control?&#x20;

Refine the generated automation using the [Recorder](/testfirst-editor/writing-test-cases/record-test-cases.md) or [edit the Gherkin directly](/testfirst-editor/writing-test-cases/write-test-cases-with-gherkin.md) in the TestFirst Editor.
{% endhint %}

#### AI Memory

AI Memory provides the agent with an evolving understanding of your product and is enriched as agents learn more about your application.

Learn more: [AI Memory](/agentic-test-automation/ai-memory.md)

<br>
