Skip to content

Commit 987092c

Browse files
committed
Started adding use cases pages
1 parent d4fe71d commit 987092c

7 files changed

Lines changed: 517 additions & 0 deletions

File tree

docs/docs.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,15 @@
333333
}
334334
]
335335
},
336+
{
337+
"group": "Use cases",
338+
"pages": [
339+
"guides/use-cases/data-processing-etl",
340+
"guides/use-cases/media-generation",
341+
"guides/use-cases/media-processing",
342+
"guides/use-cases/marketing"
343+
]
344+
},
336345
{
337346
"group": "Example projects",
338347
"pages": [

docs/guides/introduction.mdx

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,41 @@ mode: "center"
1515
<Card title="SvelteKit" img="/images/logo-svelte.png" href="/guides/community/sveltekit" />
1616
</CardGroup>
1717

18+
## Use cases
19+
20+
Explore comprehensive guides for common use cases and workflows:
21+
22+
<CardGroup cols={2}>
23+
<Card
24+
title="Data Processing & ETL"
25+
href="/guides/use-cases/data-processing-etl"
26+
>
27+
Transform and move data reliably at any scale. Whether streaming real-time analytics, enriching
28+
customer records, or synchronizing large datasets.
29+
</Card>
30+
<Card
31+
title="Content generation"
32+
href="/guides/use-cases/content-generation"
33+
>
34+
Create scalable content workflows from single assets to thousands. Generate PDFs, videos, or
35+
social media content with progress tracking and approval steps.
36+
</Card>
37+
<Card
38+
title="Media processing"
39+
href="/guides/use-cases/media-processing"
40+
>
41+
Process audio, video, and images efficiently with adaptive workflows. From real-time
42+
transcription to batch optimization.
43+
</Card>
44+
<Card
45+
title="Marketing"
46+
href="/guides/use-cases/marketing"
47+
>
48+
Orchestrate campaigns that respond dynamically to user behavior. Build drip sequences,
49+
personalization engines, and analytics workflows.
50+
</Card>
51+
</CardGroup>
52+
1853
## Guides
1954

2055
Get set up fast using our detailed walk-through guides.
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
---
2+
title: "Data Processing & ETL"
3+
description: "Build reliable data processing and ETL pipelines with automatic retries, progress tracking, and no timeout limits using Trigger.dev"
4+
---
5+
6+
import UseCasesCards from "/snippets/use-cases-cards.mdx";
7+
8+
## Overview
9+
10+
Data processing and ETL (Extract, Transform, Load) workflows require handling large datasets, complex transformations, and reliable data movement between systems. Build robust data pipelines in TypeScript with automatic retries, progress tracking, and no timeout limits; perfect for web scraping, database synchronization, real-time analytics, and large-scale data transformation.
11+
12+
## Basic data processing and ETL workflow implementation
13+
14+
A typical ETL pipeline:
15+
16+
1. **Extract**: Pull from APIs, databases, S3, or web scraping
17+
2. **Transform**: Clean, validate, enrich data
18+
3. **Load**: Write to warehouse, database, or storage
19+
4. **Monitor**: Track progress, handle failures
20+
21+
Each step is durable and retryable—if transformation fails, Trigger.dev automatically retries without re-extracting source data thanks to [checkpoint-resume](/how-it-works#the-checkpoint-resume-system) and [idempotency keys](/idempotency).
22+
23+
Trigger.dev is ideal for ETL pipelines because there are no [timeout limits](/runs/max-duration) (process datasets for hours or days), [batchTriggerAndWait()](/triggering#yourtask-batchtriggerandwait) parallelizes across thousands of records with [queue.concurrencyLimit](/queue-concurrency) to respect API rate limits, [metadata](/runs/metadata) + [realtime](/realtime) stream row-by-row progress to dashboards, and [schedules.task()](/tasks/scheduled) handles recurring jobs with cron syntax.
24+
25+
## Data processing workflow examples
26+
27+
<CardGroup cols={2}>
28+
<Card
29+
title="Realtime CSV importer"
30+
icon="book"
31+
href="/guides/example-projects/realtime-csv-importer"
32+
>
33+
Import CSV files with progress tracking streamed to the frontend.
34+
</Card>
35+
<Card title="Web scraper with BrowserBase" icon="book" href="/guides/examples/scrape-hacker-news">
36+
Scrape Hacker News using BrowserBase and Puppeteer, summarize with ChatGPT.
37+
</Card>
38+
<Card title="Firecrawl" icon="book" href="/guides/examples/firecrawl-url-crawl">
39+
Crawl URLs and return LLM-ready markdown using Firecrawl.
40+
</Card>
41+
<Card
42+
title="Supabase database operations"
43+
icon="book"
44+
href="/guides/examples/supabase-database-operations"
45+
>
46+
Run CRUD operations on a Supabase database table.
47+
</Card>
48+
<Card title="Sequin database triggers" icon="book" href="/guides/frameworks/sequin">
49+
Trigger tasks from database changes using Sequin's CDC platform.
50+
</Card>
51+
<Card
52+
title="Sync Vercel environment variables"
53+
icon="book"
54+
href="/guides/examples/vercel-sync-env-vars"
55+
>
56+
Automatically sync environment variables from Vercel projects.
57+
</Card>
58+
</CardGroup>
59+
60+
## Production use cases
61+
62+
<Card title="Papermark customer story" href="https://trigger.dev/customers/papermark-customer-story">
63+
64+
Read how Papermark processes thousands of documents per month using Trigger.dev.
65+
66+
</Card>
67+
68+
## Common data processing patterns
69+
70+
### Scheduled Data Syncs
71+
72+
Run ETL jobs on a schedule to keep systems in sync:
73+
74+
- Daily database exports and backups
75+
- Hourly API data pulls and transformations
76+
- Real-time webhook processing and routing
77+
- Periodic data warehouse updates
78+
79+
### Event-Driven Processing
80+
81+
Respond to data events with automated workflows:
82+
83+
- Process new database records as they're created
84+
- Transform uploaded files immediately
85+
- React to webhook events from external systems
86+
- Handle real-time data streams
87+
88+
### Batch Processing
89+
90+
Process large datasets efficiently:
91+
92+
- Import CSV files with thousands of rows
93+
- Bulk update records across systems
94+
- Process queued data in parallel batches
95+
- Generate reports from aggregated data
96+
97+
### Pipeline Orchestration
98+
99+
Chain multiple processing steps together:
100+
101+
- Extract from API → Transform → Load to database
102+
- Web scraping → Data cleaning → Analysis → Storage
103+
- File upload → Validation → Processing → Notification
104+
- Multi-source data aggregation and enrichment
105+
106+
<UseCasesCards />
Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
---
2+
title: "Marketing"
3+
description: "Orchestrate campaigns that respond dynamically to user behavior. Build drip sequences, personalization engines, and analytics workflows with Trigger.dev"
4+
---
5+
6+
import UseCasesCards from "/snippets/use-cases-cards.mdx";
7+
8+
## Overview
9+
10+
Marketing automation workflows require orchestrating complex campaigns that respond to user behavior, send personalized content, and track engagement across multiple channels. Build reliable marketing pipelines in TypeScript with automatic retries, progress tracking, and no timeout limits; perfect for email sequences, customer journeys, personalization engines, and analytics workflows.
11+
12+
## Basic marketing workflow implementation
13+
14+
A typical marketing automation workflow:
15+
16+
1. **Trigger**: User event, [webhook](/triggering), or [scheduled task](/tasks/scheduled)
17+
2. **Segment**: Query database for targeting criteria
18+
3. **Generate**: Create personalized content (AI-generated copy, dynamic images)
19+
4. **Send**: Deliver via email/SMS APIs with [retry logic](/errors-retrying)
20+
5. **Track**: Store engagement data, [trigger follow-ups](/triggering#yourtask-trigger)
21+
22+
Each step is durable and retryable—if email sending fails, Trigger.dev automatically retries without regenerating personalized content.
23+
24+
Trigger.dev is ideal for marketing automation because [wait.for()](/wait-for) and [wait.until()](/wait-until) let you build drip campaigns with precise delays (hours to weeks) without paying for idle time, [batchTriggerAndWait()](/triggering#yourtask-batchtriggerandwait) sends to thousands in parallel with configurable concurrency, and [idempotency keys](/idempotency) ensure users never receive duplicate messages even when tasks retry.
25+
26+
## Common marketing workflow patterns
27+
28+
### Drip Campaigns
29+
30+
Use scheduled tasks and wait conditions to create sophisticated email sequences:
31+
32+
- Welcome series for new subscribers
33+
- Onboarding sequences for new users
34+
- Re-engagement campaigns for inactive users
35+
- Product education sequences
36+
37+
### Behavioral Triggers
38+
39+
Respond to user actions with personalized campaigns:
40+
41+
- Cart abandonment recovery
42+
- Post-purchase follow-up
43+
- Feature usage-based messaging
44+
- Milestone celebration campaigns
45+
46+
### Personalization at Scale
47+
48+
Generate personalized content for thousands of users:
49+
50+
- Dynamic email content based on user preferences
51+
- Personalized product recommendations
52+
- Custom landing pages for different segments
53+
- Individualized promotional offers
54+
55+
### Analytics and Reporting
56+
57+
Track campaign performance and optimize:
58+
59+
- A/B test different message variants
60+
- Monitor engagement metrics across channels
61+
- Generate automated performance reports
62+
- Trigger campaigns based on performance thresholds
63+
64+
## Marketing workflow examples
65+
66+
<CardGroup cols={2}>
67+
<Card
68+
title="Email sequences with Resend"
69+
icon="book"
70+
href="/guides/examples/resend-email-sequence"
71+
>
72+
Send a sequence of emails over several days using Resend.
73+
</Card>
74+
<Card title="React Email" icon="book" href="/guides/examples/react-email">
75+
Send emails using React Email with JSX email templates.
76+
</Card>
77+
<Card title="Stripe webhooks" icon="book" href="/guides/examples/stripe-webhook">
78+
Trigger campaigns from Stripe payment events and subscription changes.
79+
</Card>
80+
<Card
81+
title="Generate and translate marketing copy"
82+
icon="book"
83+
href="/guides/ai-agents/generate-translate-copy"
84+
>
85+
Chain prompts to generate and translate copy in multiple languages.
86+
</Card>
87+
<Card
88+
title="Product image generator"
89+
icon="book"
90+
href="/guides/example-projects/product-image-generator"
91+
>
92+
Transform basic product photos into professional marketing images.
93+
</Card>
94+
<Card
95+
title="Human-in-the-loop workflow"
96+
icon="book"
97+
href="/guides/example-projects/human-in-the-loop-workflow"
98+
>
99+
Add human approval steps to workflows using ReactFlow and waitpoint tokens.
100+
</Card>
101+
</CardGroup>
102+
103+
<UseCasesCards />
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
---
2+
title: "AI-Powered Media Generation"
3+
description: "Build reliable AI media generation workflows for images, videos, audio, and more with Trigger.dev. No timeouts, automatic retries, and real-time progress tracking"
4+
---
5+
6+
import UseCasesCards from "/snippets/use-cases-cards.mdx";
7+
8+
## Overview
9+
10+
AI-powered media generation workflows require handling unpredictable API latencies, managing rate limits, and processing computationally intensive operations. Build reliable AI content generation pipelines in TypeScript with automatic retries, progress tracking, and no timeout limits; perfect for AI image generation, video synthesis, audio creation, and multi-modal content workflows.
11+
12+
## Basic AI media generation workflow implementation
13+
14+
A typical AI generation pipeline:
15+
16+
1. **Input**: Receive prompts, parameters, reference images
17+
2. **Generate**: Call AI APIs (OpenAI, Replicate, Fal.ai, Stability, etc.)
18+
3. **Post-process**: Upscale, optimize, apply transformations
19+
4. **Review**: Human approval or automated quality checks
20+
5. **Deliver**: Upload to storage, update database
21+
22+
Each step is durable and retryable—if an AI API call times out, Trigger.dev automatically retries without re-executing expensive prompt generation thanks to [checkpoint-resume](/how-it-works#the-checkpoint-resume-system) and [idempotency](/idempotency).
23+
24+
Trigger.dev is ideal for AI media generation because [checkpoint-resume](/how-it-works#the-checkpoint-resume-system) pauses during AI API calls (you only pay for active compute, not inference time), no [timeout limits](/runs/max-duration) means generation can take minutes or hours, [batchTriggerAndWait()](/triggering#yourtask-batchtriggerandwait) generates hundreds in parallel with [queue.concurrencyLimit](/queue-concurrency) respecting API rate limits, [metadata.stream()](/runs/metadata#stream) + [realtime](/realtime) stream previews to your frontend, and [wait.for()](/wait-for-token) adds human approval gates for brand safety.
25+
26+
## AI media generation workflow examples
27+
28+
<CardGroup cols={2}>
29+
<Card
30+
title="Product image generator"
31+
icon="book"
32+
href="/guides/example-projects/product-image-generator"
33+
>
34+
Transform product photos into professional marketing images using Replicate.
35+
</Card>
36+
<Card title="DALL·E 3" icon="book" href="/guides/examples/dall-e3-generate-image">
37+
Generate images from text prompts using OpenAI's DALL·E 3.
38+
</Card>
39+
<Card title="Fal.ai realtime" icon="book" href="/guides/examples/fal-ai-realtime">
40+
Generate images with Fal.ai and stream progress updates in real-time.
41+
</Card>
42+
<Card
43+
title="Vercel AI SDK image generator"
44+
icon="book"
45+
href="/guides/example-projects/vercel-ai-sdk-image-generator"
46+
>
47+
Build image generation workflows using Vercel's AI SDK.
48+
</Card>
49+
<Card
50+
title="Meme generator (human-in-the-loop)"
51+
icon="book"
52+
href="/guides/example-projects/meme-generator-human-in-the-loop"
53+
>
54+
Generate memes with DALL·E 3 and add human approval steps.
55+
</Card>
56+
<Card
57+
title="Deep research agent"
58+
icon="book"
59+
href="/guides/example-projects/vercel-ai-sdk-deep-research"
60+
>
61+
Build a research agent that generates comprehensive reports with Vercel AI SDK.
62+
</Card>
63+
</CardGroup>
64+
65+
## Production use cases
66+
67+
<Card title="Icon customer story" href="https://trigger.dev/customers/icon-customer-story">
68+
69+
Read how Icon uses Trigger.dev to process and generate thousands of AI-powered videos per month for their AI-driven video creation platform.
70+
71+
</Card>
72+
73+
## Common AI generation patterns
74+
75+
### Single Media Generation
76+
77+
Generate individual AI-powered content on demand:
78+
79+
- Generate images from text prompts
80+
- Transform existing images with AI models
81+
- Create variations of source images
82+
- Apply AI filters and effects
83+
84+
### Batch Generation
85+
86+
Create content at scale for production workflows:
87+
88+
- Generate hundreds of product images
89+
- Create personalized marketing assets at scale
90+
- Generate thumbnail variations for A/B testing
91+
- Bulk process images through AI models
92+
93+
### Multi-step AI Pipelines
94+
95+
Chain multiple AI operations for sophisticated workflows:
96+
97+
- Prompt generation → Image generation → Upscaling
98+
- Image generation → Style transfer → Optimization
99+
- Audio generation → Transcription → Translation
100+
- Video generation → Thumbnail extraction → Metadata generation
101+
102+
### Human-in-the-loop
103+
104+
Add review and approval steps to AI workflows:
105+
106+
- Generate content → Human review → Publish
107+
- AI moderation → Flagged content review → Decision
108+
- Batch generation → Sample review → Approve batch
109+
- Iterative refinement with human feedback
110+
111+
<UseCasesCards />

0 commit comments

Comments
 (0)