Skip to main content
By the end of this guide, your Trigger.dev agent will automate a background job that processes data and sends notifications. You’ll learn how to:
  1. Set up a Trigger.dev workflow to handle long-running tasks.
  2. Use Trigger.dev to schedule and monitor your background jobs.
Background jobs meet cloud browsers
Trigger.dev is an open-source background-jobs & AI infrastructure platform. It lets you write long-running workflows in plain async/await code without worrying about queues, cron schedulers, retries, or observability. Think BullMQ + Cron + Sentry + Kubernetes, but rolled into one developer-first package and available as a hosted SaaS or self-hosted. Browserbase gives you disposable, headless Chrome instances over WebSockets — perfect for data extraction, screenshotting, and PDF generation. Combine the two and you unlock server-side browser automation that never times out:
  • Spin up an isolated browser in Browserbase
  • Drive it with Puppeteer/Playwright from a Trigger task
  • Stream logs & status back to your UI in real-time via Trigger Realtime
  • Scale to thousands of concurrent browsers with zero infra work

Why use them together?

ChallengeHow the integration helps
Functions on Vercel/Netlify time-out after 10–30 sTrigger tasks have no timeouts, so long extraction jobs finish happily
Queuing, retries, rate limitsBuilt-in retry, concurrency, and cron features
Running Chrome on serverlessBrowserbase hosts Chrome—no Lambda layers, no xvfb
ObservabilityEvery job is a run in Trigger with logs & session recordings

What you can build

  • PDF → PNG pipelines (MuPDF via aptGet extension)
  • High-volume data extraction with rotating proxies
  • Automated report generation (React-to-PDF, screenshots)
  • AI agents that browse sites, summarize content and send email
Looking for a concrete example? Jump to the quickstart or browse the code here: Repo
Don’t need full background job infrastructure? Functions provide a simpler option for browser agents with API invocation — without managing Trigger.dev infrastructure. Ideal for straightforward agent workflows.

Follow the guide

Follow the quickstart guide to automate a background job.