> ## Documentation Index
> Fetch the complete documentation index at: https://trigger.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Marketing workflows

> Learn how to use Trigger.dev for marketing workflows, including drip campaigns, behavioral triggers, personalization engines, and AI-powered content workflows

## Overview

Build marketing workflows from email drip sequences to orchestrating full multi-channel campaigns. Handle multi-day sequences, behavioral triggers, dynamic content generation, and build live analytics dashboards.

## Featured examples

> [card] [Email sequences with Resend](https://trigger.dev/docs/guides/examples/resend-email-sequence.md)
>
> Send multi-day email sequences with wait delays between messages.

> [card] [Product image generator](https://trigger.dev/docs/guides/example-projects/product-image-generator.md)
>
> Transform product photos into professional marketing images using Replicate.

> [card] [Human-in-the-loop workflow](https://trigger.dev/docs/guides/example-projects/human-in-the-loop-workflow.md)
>
> Approve marketing content using a human-in-the-loop workflow.

## Benefits of using Trigger.dev for marketing workflows

**Delays without idle costs:** Wait hours or weeks between steps. Waits over 5 seconds are automatically checkpointed and don't count towards compute usage. Perfect for drip campaigns and scheduled follow-ups.

**Guaranteed delivery:** Messages send exactly once, even after retries. Personalized content isn't regenerated on failure.

**Scale without limits:** Process thousands in parallel while respecting rate limits. Send to entire segments without overwhelming APIs.

## Production use cases

> [card] [Icon customer story](https://trigger.dev/customers/icon-customer-story)
>
> Read how Icon uses Trigger.dev to process and generate thousands of videos per month for their AI-driven video creation platform.

## Example workflow patterns

> [tab] Drip email campaign
>
> Simple drip campaign. User signs up, waits specified delay, sends personalized email, tracks engagement.
>
> ```mermaid theme={"theme":"css-variables"}
> graph TB
>     A[userCreateAccount] --> B[sendWelcomeEmail]
>     B --> C[wait.for 24h]
>     C --> D[sendProductTipsEmail]
>     D --> E[wait.for 7d]
>     E --> F[sendFeedbackEmail]
>
> ```

> [tab] Multi-channel campaigns
>
> **Router pattern with delay orchestration**. User action triggers campaign, router selects channel based on preferences (email/SMS/push), coordinates multi-day sequence with delays between messages, tracks engagement across channels.
>
> ```mermaid theme={"theme":"css-variables"}
> graph TB
>     A[startCampaign] --> B[fetchUserProfile]
>     B --> C[selectChannel]
>     C --> D{Preferred<br/>Channel?}
>
>     D -->|Email| E[sendEmail1]
>     D -->|SMS| F[sendSMS1]
>     D -->|Push| G[sendPush1]
>
>     E --> H[wait.for 2d]
>     F --> H
>     G --> H
>
>     H --> I[sendFollowUp]
>     I --> J[trackConversion]
> ```

> [tab] AI content with approval
>
> **Supervisor pattern with approval gate**. Generates AI marketing content (images, copy, assets), pauses with wait.forToken for human review, applies revisions if needed, publishes to channels after approval.
>
> ```mermaid theme={"theme":"css-variables"}
> graph TB
>     A[createCampaignAssets] --> B[generateAIContent]
>     B --> C[wait.forToken approval]
>     C --> D{Approved?}
>
>     D -->|Yes| E[publishToChannels]
>     D -->|Needs revision| F[applyFeedback]
>     F --> B
> ```

> [tab] Survey response enrichment
>
> **Coordinator pattern with enrichment**. User completes survey, batch triggers parallel enrichment from CRM/analytics, analyzes and scores responses, updates customer profiles, triggers personalized follow-up campaigns.
>
> ```mermaid theme={"theme":"css-variables"}
> graph TB
>     A[processSurveyResponse] --> B[coordinateEnrichment]
>     B --> C[batchTriggerAndWait]
>
>     C --> D[fetchCRMData]
>     C --> E[fetchAnalytics]
>     C --> F[fetchBehaviorData]
>
>     D --> G[analyzeAndScore]
>     E --> G
>     F --> G
>
>     G --> H[updateCRMProfile]
>     H --> I[triggerFollowUp]
> ```

## Featured use cases

> [card] [Data processing & ETL workflows](https://trigger.dev/docs/guides/use-cases/data-processing-etl.md)
>
> Build complex data pipelines that process large datasets without timeouts.

> [card] [Media processing workflows](https://trigger.dev/docs/guides/use-cases/media-processing.md)
>
> Batch process videos, images, audio, and documents with no execution time limits.

> [card] [AI media generation workflows](https://trigger.dev/docs/guides/use-cases/media-generation.md)
>
> Generate images, videos, audio, documents and other media using AI models.

> [card] [Marketing workflows](https://trigger.dev/docs/guides/use-cases/marketing.md)
>
> Build drip campaigns, create marketing content, and orchestrate multi-channel campaigns.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.