Trigger.dev | Build and deploy fully-managed AI agents and workflows.

Trigger.dev | Build and deploy fully-managed AI agents and workflows.

trigger.dev

Trigger.dev is the open source platform for building AI workflows in TypeScript. Long-running tasks with retries, queues, observability, and elastic scaling.

收录于 9 个月前更新于 9 个月前正常收录
Trigger.dev | Build and deploy fully-managed AI agents and workflows. 网站预览

详细内容

We're hiring! Join our team

Build and deploy fully‑managed AI agents and workflows

Trigger.dev is the platform for building AI workflows in TypeScript. Long-running tasks with retries, queues, observability, and elastic scaling.

Start building now 12.9k| Open source

AI tasks

Video processing

Cron

Waits

Workflows

AI Agent

Concurrency

Retries

PDF to images

Semantic search

Email campaign

// Generate an image using OpenAI Dall-E 3

export const generateContent = task({

  id: "generate-content",

  retry: {

    maxAttempts: 3,

  },

  run: async ({ theme, description }: Payload) => {

    const textResult = await openai.chat.completions.create({

      model: "gpt-4o",

      messages: generateTextPrompt(theme, description),

    });

    if (!textResult.choices[0]) {

      throw new Error("No content, retrying…");

    }

    const imageResult = await openai.images.generate({

      model: "dall-e-3",

      prompt: generateImagePrompt(theme, description),

    });

    if (!imageResult.data[0]) {

      throw new Error("No image, retrying…");

    }

    return {

      text: textResult.choices[0],

      image: imageResult.data[0].url,

    };

  },

});

Reliably call AI APIs with no timeouts, automatic retrying, and tracing. Use existing Node.js SDKs and code from your repo.

Learn more about AI tasks

Trusted by developers at companies all over the world

How it works

Pause

Replay

Full screen

Write tasks in your Trigger folder

Build invincible AI apps

Offload any long-running async AI tasks to our infrastructure. Create AI agents with human-in-the-loop functionality and stream responses directly to your frontend.

AI agents overview

Autonomous agent\
Autonomous agent \
\
AI agents that can use judgement to perform complex open-ended tasks.\
\
View example

Prompt chaining\
Prompt chaining \
\
Chain AI prompts together to create multi-stage processing flows.\
\
View example

Routing\
Routing \
\
Smart distribution of tasks to specialized AI models based on content analysis.\
\
View example

Parallelization\
Parallelization \
\
Concurrent execution of multiple AI tasks for simultaneous processing and analysis.\
\
View example

Orchestrator\
Orchestrator \
\
Coordinate multiple AI agents to achieve complex objectives.\
\
View example

Evaluator-optimizer\
Evaluator-optimizer \
\
Iterative feedback system that continuously evaluates and refines AI outputs.\
\
View example

Deploy and scale to any size

No timeouts

Write simple, reliable code and never hit a timeout.

Pay for what you use

Only pay when your code is actually executing.

No servers to manage

We deploy your tasks and handle scaling for you.

Find and fix bugs fast

Alerts for errors

Get notified via email, Slack or webhooks when your tasks or deployments fail.

Alerts for errors

Advanced filtering

Find runs fast using advanced filtering options, then apply bulk actions to multiple tasks at once.

hero

Versioning

Each deploy is an atomic version ensuring started tasks are not affected by code changes.

hero

Bring your tasks to the foreground

Trigger.dev Realtime

Display the status of your tasks anywhere in your app

Show the run status (in progress, completed, failed) and metadata to provide real-time, contextual information for your users as your tasks progress.

Realtime docs

Update your UI in real-timewith the run status

Realtime streams

Stream LLM responses from your runs to your users

Forward streams from any provider through our Realtime API. Build AI agents with tools and context from your runs.

Realtime streams docs

Pipe streams to your frontendfrom your runs

True runtime freedom for developers

Unlike restricted runtimes, Trigger.dev lets you freely customize every aspect of your build process, resulting bundle, and final container image.

Python

Execute Python scripts with automatic package installation through requirements.txt

Learn more

Prisma

Copy files to the build directory, generate the Prisma client, migrate databases, and more.

Learn more

Puppeteer

Automate browser capabilities and control web pages.

Learn more

esbuild

Add custom esbuild plugins to your build process.

Learn more

FFmpeg

Add FFmpeg binaries to your project during build time, enabling video manipulation tasks.

Learn more

apt-get

Easily install any system packages you need, from libreoffice to git

Learn more

additionalPackages

Add additional packages which aren't automatically included via imports.

Learn more

audioWaveform

Produce visual renderings of audio using waveform data.

Learn more

Custom build extensions

Integrate custom tooling and project-specific requirements directly into your build pipeline.

Get started

All the tools you need to ship

View all features

Development

Write tasks in regular code

Durable cron schedules

Trigger.dev Realtime

React hooks Max duration Batch triggering Structured inputs / outputs Waits Wait for HTTP callback Preview branches

Production

Multi-region workers Static IPs

Concurrency & queues

Wait for token (human-in-the-loop) Multiple environments Elastic infrastructure Automatic retries Build extensions Checkpointing Versioning Machines

Observability

Observability & monitoring

Logging & tracing Tags

Advanced run filters

Run metadata Bulk actions

Real-time alerts

Reliable by default

Docs

Task retrying

Configure automatic retrying for tasks.

handleError()

Conditional retrying based on the error and run.

retry.onThrow()

Fine-grained retrying inside tasks.

retry.fetch()

Automatically retry requests based on the response.

trigger.config

Configure default retrying in your config file.

import { task } from "@trigger.dev/sdk";

export const simpleTask = task({

  id: "simple-task",

  retry: {

    maxAttempts: 3,

    minTimeoutInMs: 1000,

    maxTimeoutInMs: 5000,

    factor: 2,

    randomize: true,

  },

  run: async (payload, { ctx }) => {

    logger.log(`Attempt ${ctx.attempt.number}`);

    try {

      throw new Error("This is an error.");

    } catch (error) {

      // The error was caught, so no retry

    }

    throw new Error("This will cause a retry.");

  },

});

Works with your existing tech stack…

Vercel logo

AWS logo

Remix logo

Nuxt logo

SvelteKit logo

Fastify logo

RedwoodJS logo

Cloudflare logo

ExpressJS logo

Astro logo

Google Cloud logo

Azure logo

Netlify logo

NextJS logo

Heart 1Heart 2Heart 3Heart 4Heart 5

We love open source. Trigger.dev is Apache 2.0 licensed so you can view the source code, contribute and self-host.

12.9k+ \
stars on GitHub

Apache 2.0 \
open source license

4.3k+ \
Discord members

Loved by developers

Join our community

Trigger.dev is redefining background jobs for modern developers.

Paul Copplestone

Paul Copplestone

Supabase

Supabase logo

Trigger.dev is one of those tools that you set up once (takes like 30 minutes) and then never have to worry about again. We use it heavily at Magic Patterns and wish we used it earlier. Previously, we had a homegrown cron job solution.. not good.

Read Magic Patterns'customer story

Alex Danilowicz

Alex Danilowicz

Magic Patterns

Magic Patterns logo

With Trigger.dev, we’ve summarized over a million student interactions in just a couple of weeks. We’re incredibly thankful for tools like Trigger.dev that are empowering us to bring AI-driven solutions to educators and students at scale.

Read MagicSchool AI'scustomer story

Ben Duggan

Ben Duggan

MagicSchool AI

MagicSchool AI logo

Trigger.dev lets us focus on AI logic, not infrastructure. We can now ship workflow orchestration the same way we ship backend features.

Read Pallet'scustomer story

Karl Kaiser

Karl Kaiser

Pallet

Pallet logo

We moved our flick.social workflows from Temporal to Trigger.dev and went from 87% to 100% success. Temporal workers couldn’t stay stable with bursty loads and FFmpeg CPU spikes, which caused queue-depth throttling and missed activities. Trigger.dev handles the load without degrading, and the local testing + observability make diagnosing issues trivial.

Andreas Asprou

Andreas Asprou

Flick.social

Flick.social logo

We're using Trigger for our billing, background jobs and deployment pipeline without worrying about operations or infrastructure. It just works.

Andreas Thomas

Andreas Thomas

Unkey

Unkey logo

Trigger.dev is a great way to automate email campaigns with Resend.

Zeno Rocha

Zeno Rocha

Resend

Resend logo

We have critical business functionalities that need to be reliable and replayable in the event of a failure. Trigger.dev helps us deliver messages over WhatsApp, run thousands of jobs with custom LLM workflows, and execute ETL processes to sync our data across multiple databases without breaking a sweat!

Patryk Maron

Patryk Maron

DRPCRD

DRPCRD logo

We love Trigger.dev and it’s had a big impact in dev iteration velocity already.

André Neves

André Neves

ZBD

ZBD logo

The first time I used Trigger.dev, I had an a-ha moment, I no longer needed to set up everything with ECS or Lambda. What also stands out is the exceptional support, unlike any I've seen in the web community.

Martin Ruzicka

Martin Ruzicka

P.S. Bridal

P.S. Bridal logo

We migrated from an AWS background job service that required a dedicated expert for maintenance. Trigger.dev's TypeScript support, simplicity and visual feedback let us focus on making AI excellent at UI creation instead of managing infrastructure.

Read HeroUI'scustomer story

Junior Garcia

Junior Garcia

HeroUI

HeroUI logo

The reliability of Trigger.dev's job scheduling has been essential as we've scaled our evidence collection automation and built our open source community of 600+ compliance professionals.

Read Comp AI'scustomer story

Lewis Carhart

Lewis Carhart

Comp AI

Comp AI logo

Trigger has completely transformed our video pipelines; we can now process thousands of videos in a catalog at once using FFmpeg, and our video ad generation time has dropped to sub-5 minutes by taking advantage of parallel-processing.

Read Icon'scustomer story

Caleb Tan

Caleb Tan

Icon

Icon logo

We needed a sophisticated event engine: chaining LLM queries, orchestrating responses, async tasks, persistent state (without long lived servers), complex concurrency, and variable compute power. Trigger’s managed infra and intuitive SDK allowed us to migrate our entire events engine in a day (with incredible support from the team).

Michael Parker

Michael Parker

Stunt Double

Stunt Double logo

Trigger is a central part of our architecture. It’s allowed us to build a resilient system to orchestrates data across multiple systems. We love its observability, replayability, and how easily it slots into our existing codebase. It allows us to refine over time how to set the boundaries between async tasks and synchronous business logic.

Read NUMI'scustomer story

Agree Ahmed

Agree Ahmed

NUMI

NUMI logo

Trigger.dev is undoubtedly one of my most cherished services. Throughout my two-decade career, it’s rare to encounter a product or service that truly resonates and makes a significant impact. It just clicks - an absolute game-changer for us. The support is beyond exceptional, and they genuinely care about the product and their users. I wholeheartedly recommend Trigger!

Aaron J. Spurlock

Aaron J. Spurlock

Midtown HI

Midtown HI logo

Trigger.dev has become my go-to tool for new projects. I no longer need an additional server and can forget about horizontal scaling!

Nevo David

Nevo David

Novu

Novu logo

For AI powered products, Trigger.dev is my clear go-to tool for building robust serverless pipelines stitching together various LLM calls.

Evan Sandler

Evan Sandler

Blee

Blee logo

Trigger is packaging end-to-end cron, queues and webhooks platform in a slick interface. Integration was quick and we love the support ❤️

Aseem Gupta

Aseem Gupta

SuperKalam

SuperKalam logo

The Trigger.dev developer experience is unparalleled for building durable agents. Queues, streaming, retries, logging and more, all with just a few lines of code.

Read Capy'scustomer story

Justin Sun

Justin Sun

Capy

Capy logo

Trigger.dev was the missing piece in our journey to go fully serverless. It enables us to focus entirely on building our product without worrying about the complexities of background jobs. The best part? We’re continuously adding more jobs as we scale!

Read Midday'scustomer story

Pontus Abrahamsson

Pontus Abrahamsson

Midday

Midday logo

We found software that's open-source friendly called MuPDF which runs in Node.js environments. Combined with using Trigger's tasks and runs, it solved our problem instantly. We are now easily processing around 6,000 documents per month anywhere from one page to hundreds of pages.

Read Papermark'scustomer story

Marc Seitz

Marc Seitz

Papermark

Papermark logo

We’ve been looking for a product like Trigger.dev for a long time - automation that's simple and dev-focused.

Han Wang

Han Wang

Mintlify

Mintlify logo

The platform transformed my workflow, I'm thrilled with it! Migrating my agentic workflow from Python to Trigger.dev has been a major win. Rare to find powerful features paired with such responsive assistance.

Gerasimos

Gerasimos

Tierly

Tierly logo

Using Trigger.dev for our Slack jobs saved us loads of time! It was much easier to set up than a no-code tool.

Vlad Matsiiako

Vlad Matsiiako

Infisical

Infisical logo

We decided to use Trigger.dev over Inngest or setting up our own dedicated solution. We had also looked into UI-based solutions like Zapier and n8n, but they become complex, really slow, expensive and time-consuming to manage for large automations. Trigger.dev made the most overall sense for us when taking dev-speed, cost, scalability and being future-proof into account.

Sohrab Fadai

Sohrab Fadai

Heartspace AI

Heartspace AI logo

I’m in love with Trigger.dev – it’s so much better than the old bull.js + heroku + redis setup that I used to use. You’ve knocked it out of the park with this tool!

Kushal Byatnal

Kushal Byatnal

Extend

Extend logo

Trigger.dev helps us process bounties & tips on Algora without having to duct-tape queues & crons. With standardized timeouts, retries & logging we get full resilience & observability!

Zaf Cesur

Zaf Cesur

Algora

Algora logo

I really enjoyed using Trigger.dev to create jobs through code. I found the API integrations and scheduling features super useful.

Adam Shiervani

Adam Shiervani

BuildJet

BuildJet logo

Read more...

We're backed by the world's best investors, founders and operators

Y Combinator

Supabase

PagerDuty

Dropbox

Raycast

Instabug

Atlassian

Amazon Web Services

Ready to start building?

Build and deploy your first task in 3 mins with no timeouts and no infrastructure to manage.

Get started for free

Simple pricing

Only pay for what you use and scale with your needs.

Explore pricing

Self-host

Trigger.dev is open source and self-hostable.

Self-hosting docs

We only collect analytics cookies so we can improve your experience.

Privacy policy

Opt-out

Accept

网站信息

域名
trigger.dev
收录路径
trigger