# Recording Demos with an AI Agent

> How an AI agent that controls the browser, such as Claude in Chrome or Codex, records a HowdyGo demo with the Chrome extension: start, click through the flow, stop, and wait for the upload.

An AI agent that controls your browser, such as Claude in Chrome or Codex, can
record a new HowdyGo demo for you. The agent starts the
[HowdyGo Chrome extension](https://docs.howdygo.com/create/capturing-a-demo) from the page, clicks
through the flow you describe, stops the recording, and waits for the upload.
With the [HowdyGo MCP server](https://docs.howdygo.com/ai/mcp-server) connected, it then sets up the
new demo and gives you its links.

[Video: How to Create a SaaS Product Demo with AI](https://www.youtube.com/watch?v=HLadSLrUfgk)

To use it, describe the flow to your agent:

- "Record a demo of creating a collection on HowdyGo, then set it up."

With the HowdyGo MCP server connected, the agent already knows how to drive
the extension, so you don't need to explain it. The
[page API reference](#page-api-reference) below is for agents that aren't
connected to the MCP server.

## Requirements

- The HowdyGo Chrome extension, version 2.11 or later, installed and signed in
  to HowdyGo in the browser the agent controls.
- An agent that can run JavaScript in your tab and click and type in it.
- To set up the demo afterwards, the [HowdyGo MCP server](https://docs.howdygo.com/ai/mcp-server)
  connected to the agent.

## Page API reference

All methods take no arguments and return a promise.

| Method | What it does |
| --- | --- |
| `getStatus()` | Reports the recording state, and the result of this tab's last recording. |
| `startRecording()` | Starts recording this tab, like pressing **Start Recording** in the extension. |
| `stopRecording()` | Stops the recording and uploads it. Returns the `recordingId`. |
| `cancelRecording()` | Discards the recording. Nothing is uploaded. |

Each method resolves to `{ ok: true, status, message? }` or
`{ ok: false, reason, status?, message? }`. The `message` explains what
happened and what to do next.

### Status fields

| Field | Meaning |
| --- | --- |
| `state` | `"idle"`, `"starting"`, `"recording"`, `"stopping"` or `"uploading"`. |
| `isThisTabRecording` | Whether this tab is the one being recorded. |
| `paused` | Whether you paused the recording. |
| `uploadProgress` | Upload progress from 0 to 100, while uploading. |
| `lastRecording` | The result of this tab's last stopped recording, once its upload has finished or failed. |

### Recording results

`status.lastRecording` has the `recordingId`, a `result` and a `message`:

| `result` | Meaning | What happens next |
| --- | --- | --- |
| `"uploaded"` | The demo is ready at `demoEditorUrl`. | The agent sets up the demo and gives you its editor link. |
| `"discarded"` | Nothing was recorded. `reason` is `"no-steps"` when nothing was clicked. | Ask the agent to record the flow again. |
| `"upload-failed"` | The upload failed, but the extension kept the recording. | The agent can retry the upload with `stopRecording()`, or discard the recording with `cancelRecording()`. |

### Why a start can fail

| `reason` | Meaning |
| --- | --- |
| `"authentication-required"` | You aren't signed in to HowdyGo in the browser the agent controls. Sign in, then ask the agent to try again. |
| `"unrecordable-tab"` | Browser pages, extension pages and the Chrome Web Store can't be recorded. Start the flow on another page. |
| `"file-access-disabled"` | Recording a local file needs [file access](https://docs.howdygo.com/create/capturing-a-demo#capturing-local-files). |
| `"recording-another-tab"` | Another tab is already recording. Stop or cancel that recording first. |
| `"no-response"` or `"extension-unavailable"` | The extension didn't answer, for example because it was just updated. Reload the tab and try again. |

## If the agent can't start the extension

The agent can't start recording from the page when the extension is older than
2.11, isn't installed, or can't run on the page. It can still record the demo
with your help:

1. The agent asks you to start recording. Click the HowdyGo toolbar button,
   start recording, and tell the agent once it's running.
2. The agent clicks through the flow, then clicks **Stop** on the HowdyGo
   recording toolbar on the page.
3. After the upload, HowdyGo opens the new demo in the editor. The agent uses
   that editor link, or asks you to paste it.

> [!TIP]
> Recording with an agent creates the same demo as recording it yourself. You
> can edit it in the [editor](https://docs.howdygo.com/create/editing-steps), and every change is saved
> in its [version history](https://docs.howdygo.com/create/version-history).
