Skip to content

Commit 59ac4f7

Browse files
committed
Further diagram improvements
1 parent 77ab65b commit 59ac4f7

File tree

3 files changed

+36
-29
lines changed

3 files changed

+36
-29
lines changed

docs/guides/use-cases/marketing.mdx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import UseCasesCards from "/snippets/use-cases-cards.mdx";
88

99
## Overview
1010

11-
Build marketing workflows from drip campaigns to orchestrating multi-channel campaigns. Handle multi-day sequences, behavioral triggers, dynamic content generation, and live analytics, all with automatic retries and progress tracking.
11+
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.
1212

1313
## Featured examples
1414

@@ -62,10 +62,12 @@ Read how Icon uses Trigger.dev to process and generate thousands of videos per m
6262

6363
```mermaid
6464
graph TB
65-
A[startDripCampaign] --> B[fetchUserData]
65+
A[userCreateAccount] --> B[sendWelcomeEmail]
6666
B --> C[wait.for 24h]
67-
C --> D[sendPersonalizedEmail]
68-
D --> E[trackEngagement]
67+
C --> D[sendProductTipsEmail]
68+
D --> E[wait.for 7d]
69+
E --> F[sendFeedbackEmail]
70+
6971
```
7072

7173
</div>
@@ -84,7 +86,7 @@ graph TB
8486
8587
D -->|Email| E[sendEmail1]
8688
D -->|SMS| F[sendSMS1]
87-
D -->|Social media post| G[postToX1]
89+
D -->|Push| G[sendPush1]
8890
8991
E --> H[wait.for 2d]
9092
F --> H

docs/guides/use-cases/media-generation.mdx

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,24 @@ Read how Papermark process thousands of documents per month using Trigger.dev.
6464
## Example worfklow patterns
6565

6666
<Tabs>
67+
<Tab title="AI content with approval">
68+
**Supervisor pattern with approval gate**. Generates AI content, pauses execution with wait.forToken to allow human review, applies feedback if needed, publishes approved content.
69+
70+
<div align="center">
71+
72+
```mermaid
73+
graph TB
74+
A[generateContent] --> B[createWithAI]
75+
B --> C[wait.forToken approval]
76+
C --> D{Approved?}
77+
78+
D -->|Yes| E[publishContent]
79+
D -->|Needs revision| F[applyFeedback]
80+
F --> B
81+
```
82+
83+
</div>
84+
</Tab>
6785
<Tab title="AI image generation">
6886
Simple AI image generation. Receives prompt and parameters, calls OpenAI DALL·E 3, post-processes result, uploads to storage.
6987

@@ -121,24 +139,6 @@ graph TB
121139
</div>
122140
</Tab>
123141

124-
<Tab title="AI content with approval">
125-
**Supervisor pattern with approval gate**. Generates AI content, pauses execution with wait.for to allow human review, applies feedback if needed, publishes approved content.
126-
127-
<div align="center">
128-
129-
```mermaid
130-
graph TB
131-
A[generateContent] --> B[createWithAI]
132-
B --> C[wait.for approval]
133-
C --> D{Approved?}
134-
135-
D -->|Yes| E[publishContent]
136-
D -->|Needs revision| F[applyFeedback]
137-
F --> B
138-
```
139-
140-
</div>
141-
</Tab>
142142
</Tabs>
143143

144144
<UseCasesCards />

docs/guides/use-cases/media-processing.mdx

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,22 @@ Build media processing pipelines that handle large files and long-running operat
4444

4545
<Tabs>
4646
<Tab title="Video transcode">
47-
Simple video transcoding pipeline. Downloads video from storage, transcodes to multiple formats, extracts thumbnail, uploads results.
47+
Simple video transcoding pipeline. Downloads video from storage, batch triggers parallel transcoding to multiple formats and thumbnail extraction, uploads all results.
4848

4949
<div align="center">
5050

5151
```mermaid
5252
graph TB
5353
A[processVideo] --> B[downloadFromStorage]
54-
B --> C[transcodeToHD]
55-
C --> D[transcodeToSD]
56-
D --> E[extractThumbnail]
57-
E --> F[uploadToStorage]
54+
B --> C[batchTriggerAndWait]
55+
56+
C --> D[transcodeToHD]
57+
C --> E[transcodeToSD]
58+
C --> F[extractThumbnail]
59+
60+
D --> G[uploadToStorage]
61+
E --> G
62+
F --> G
5863
```
5964

6065
</div>
@@ -150,7 +155,7 @@ graph TB
150155
</Tab>
151156

152157
<Tab title="Document extraction with approval">
153-
**Router pattern with human-in-the-loop**. Detects file type and routes to appropriate processor, classifies document with AI to determine type (invoice/contract/receipt), extracts structured data fields, optionally pauses with wait.for for human approval.
158+
**Router pattern with human-in-the-loop**. Detects file type and routes to appropriate processor, classifies document with AI to determine type (invoice/contract/receipt), extracts structured data fields, optionally pauses with wait.forToken for human approval.
154159

155160
<div align="center">
156161

0 commit comments

Comments
 (0)