Shay PandaS
Convex Communityโ€ข2mo agoโ€ข
2 replies
Shay Panda

Build browser agents with Stagehand + Browserbase

Hey everyone! Shrey from Browserbase here ๐Ÿ‘‹

I work on Stagehand, an AI-native browser framework that allows you to perform web automations (scraping, workflow automation, etc) using natural language instructions -- think Playwright/Puppeteer/Selenium, but super-powered for AI agents.

We just launched a Convex Component to help developers build automations directly from your Convex backends. For example, here's how you'd scrape hacker news + save it to a table:

return await stagehand.extract(ctx, {
  url: "https://news.ycombinator.com",
  instruction: "Extract the top 5 stories with title, score, and link",
  schema: z.object({
    stories: z.array(z.object({
      title: z.string(),
      score: z.string(),
      link: z.string(),
    }))
  })
});


Try it out here: https://www.convex.dev/components/stagehand
If you have any questions / need support, feel free to join our community Discord: http://stagehand.dev/community

Thanks @Wayne for helping to make this happen ๐Ÿค
Was this page helpful?