Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/content/docs/browser-rendering/platform/stagehand.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ This guide shows you how to deploy a [Worker](/workers/) that uses Stagehand, Br
## Use Stagehand in a Worker with Workers AI

In this example, you will use Stagehand to search for a movie on this [example movie directory](https://demo.playwright.dev/movies), extract its details (title, year, rating, duration, and genre), and return the information along with a screenshot of the webpage.
<Details header="See a video of this example"> ![Stagehand video](/images/browser-rendering/speedystagehand.gif)
<Details header="See a video of this example"> ![Stagehand video](/images/browser-rendering/speedystagehand.gif)
Output: ![Stagehand example result](~/assets/images/browser-rendering/stagehand-example.png)</Details>

If instead you want to skip the steps and get started right away, select **Deploy to Cloudflare** below.
Expand Down Expand Up @@ -148,6 +148,10 @@ Then, in your Worker code, import the `workersAIClient.ts` file and use it to co
};
```

:::note
The snippet above requires [Zod v3](https://v3.zod.dev/) and is currently not compatible with Zod v4.
:::

### 4. Build the project

```bash
Expand Down
Loading