# Goals & Intent Tests

Goals tell Duku what matters. Intent tests prove those journeys still work.

### Goals

A **goal** is a business-critical destination in the state graph, such as a checkout confirmation page, a successful login redirect, or a registration completion screen.

Duku identifies likely goals from graph structure, page characteristics, and navigation patterns.

### Intents

An **intent** is a human-readable description of a path to a goal. Duku generates descriptions like:

* *User opens the login page, enters credentials, and reaches the dashboard*
* *User adds an item to cart, completes checkout, and reaches order confirmation*

### Intent tests

**Intent tests** replay discovered journeys in a real browser. Duku selects the shortest known paths to each goal, then executes them against the target.

This gives you a simple answer to a hard question: can users still complete the journeys that matter?

{% hint style="info" %}
Intent tests are derived from exploration data, so they adapt as your application changes.
{% endhint %}

#### Run intent tests

* **From the dashboard:** Open a target, then click **Start Intent Tests**
* **From the API:** Call `startIntentRuns`

#### Results

Each run includes:

* **Status:** Whether the journey completed
* **Step log:** Which steps passed or failed
* **Screenshots:** Visual evidence for each step
* **Errors:** Any issue captured during replay


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.duku.ai/core-concepts/goals-and-intent-tests.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
