Skip to content

Commit 23d2542

Browse files
committed
fix(workflows/examples): use code block titles for clarity
1 parent 14a9ac1 commit 23d2542

File tree

4 files changed

+164
-323
lines changed

4 files changed

+164
-323
lines changed

fern/workflows/examples/appointment-scheduling.mdx

Lines changed: 35 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,11 @@ You'll start with a default template that includes a "Call Start" node. We'll mo
8888
<Step title="Configure the Initial Conversation Node">
8989
The default template includes a conversation node. Click on it and configure:
9090

91-
**First Message**:
92-
```txt
91+
```txt title="First Message"
9392
Hello! Thank you for calling Tony's Barbershop. This is Sarah, your booking assistant. I can help you schedule, reschedule, or cancel appointments. How can I help you today?
9493
```
9594

96-
**Prompt**:
97-
```txt
95+
```txt title="Prompt"
9896
You are Sarah, the friendly booking assistant for Tony's Barbershop.
9997

10098
Listen to the customer's response and determine their intent:
@@ -117,18 +115,15 @@ You'll start with a default template that includes a "Call Start" node. We'll mo
117115
<Step title="Add Customer Verification Node">
118116
Click the + button below the greeting node and add a new **Conversation** node:
119117

120-
**Condition**:
121-
```txt
118+
```txt title="Condition"
122119
Intent identified
123120
```
124121

125-
**First Message**:
126-
```txt
122+
```txt title="First Message"
127123
Now I need to verify your information. Can you please provide your phone number or full name so I can look up your account?
128124
```
129125

130-
**Prompt**:
131-
```txt
126+
```txt title="Prompt"
132127
You are collecting customer identification information to look them up in the system.
133128
134129
If they provide a phone number, extract it in a clean format (numbers only).
@@ -149,8 +144,7 @@ You'll start with a default template that includes a "Call Start" node. We'll mo
149144
<Step title="Add Customer Lookup Tool Node">
150145
Add a **Tool** node:
151146

152-
**Condition**:
153-
```txt
147+
```txt title="Condition"
154148
Customer information collected
155149
```
156150

@@ -162,18 +156,15 @@ You'll start with a default template that includes a "Call Start" node. We'll mo
162156

163157
**Schedule New Appointment Node**:
164158

165-
**Condition**:
166-
```txt
159+
```txt title="Condition"
167160
Customer verified and intent is schedule
168161
```
169162

170-
**First Message**:
171-
```txt
163+
```txt title="First Message"
172164
Great! I can help you schedule a new appointment. What type of service would you like? We offer haircuts, beard trims, shampoo and styling, and full grooming packages.
173165
```
174166

175-
**Prompt**:
176-
```txt
167+
```txt title="Prompt"
177168
You are helping the customer schedule a new appointment.
178169

179170
Listen for the service they want and any preferred dates/times they mention.
@@ -183,18 +174,15 @@ You'll start with a default template that includes a "Call Start" node. We'll mo
183174

184175
**Reschedule Appointment Node**:
185176

186-
**Condition**:
187-
```txt
177+
```txt title="Condition"
188178
Customer verified and intent is reschedule
189179
```
190180

191-
**First Message**:
192-
```txt
181+
```txt title="First Message"
193182
I can help you reschedule your appointment. Let me first look up your current booking details.
194183
```
195184

196-
**Prompt**:
197-
```txt
185+
```txt title="Prompt"
198186
You are helping the customer reschedule an existing appointment.
199187

200188
Be understanding and accommodating. Look up their current appointment first.
@@ -203,18 +191,15 @@ You'll start with a default template that includes a "Call Start" node. We'll mo
203191

204192
**Cancel Appointment Node**:
205193

206-
**Condition**:
207-
```txt
194+
```txt title="Condition"
208195
Customer verified and intent is cancel
209196
```
210197

211-
**First Message**:
212-
```txt
198+
```txt title="First Message"
213199
I can help you cancel your appointment. Let me look up your current booking to confirm the details.
214200
```
215201

216-
**Prompt**:
217-
```txt
202+
```txt title="Prompt"
218203
You are helping the customer cancel their appointment.
219204

220205
Be understanding and offer to reschedule instead if appropriate.
@@ -227,18 +212,15 @@ You'll start with a default template that includes a "Call Start" node. We'll mo
227212

228213
**Enable Global Node**: Toggle this on to make the node available from any point in the conversation
229214

230-
**Condition**:
231-
```txt
215+
```txt title="Condition"
232216
Customer confused or error detected
233217
```
234218

235-
**First Message**:
236-
```txt
219+
```txt title="First Message"
237220
I apologize for any confusion. Let me transfer you to one of our human staff members who can better assist you. Please hold for just a moment.
238221
```
239222

240-
**Prompt**:
241-
```txt
223+
```txt title="Prompt"
242224
You are handling an error or confused customer situation.
243225

244226
Be apologetic and professional. Prepare them for transfer to human staff.
@@ -253,18 +235,15 @@ You'll start with a default template that includes a "Call Start" node. We'll mo
253235

254236
**Service Selection Node** (Conversation):
255237

256-
**Condition**:
257-
```txt
238+
```txt title="Condition"
258239
Service type mentioned or requested
259240
```
260241

261-
**First Message**:
262-
```txt
242+
```txt title="First Message"
263243
Perfect! And when would you prefer to come in? What date and time work best for you?
264244
```
265245

266-
**Prompt**:
267-
```txt
246+
```txt title="Prompt"
268247
You are collecting appointment preferences for scheduling.
269248

270249
Listen for specific dates, times, or general preferences like "morning" or "next week".
@@ -286,8 +265,7 @@ You'll start with a default template that includes a "Call Start" node. We'll mo
286265

287266
**Availability Check Tool Node**:
288267

289-
**Condition**:
290-
```txt
268+
```txt title="Condition"
291269
Preferences collected
292270
```
293271

@@ -296,18 +274,15 @@ You'll start with a default template that includes a "Call Start" node. We'll mo
296274

297275
**Availability Results Node** (Conversation):
298276

299-
**Condition**:
300-
```txt
277+
```txt title="Condition"
301278
Availability checked
302279
```
303280

304-
**First Message**:
305-
```txt
281+
```txt title="First Message"
306282
Based on your preferences, here are the available time slots. Which one works best for you?
307283
```
308284

309-
**Prompt**:
310-
```txt
285+
```txt title="Prompt"
311286
You are presenting available appointment times to the customer.
312287

313288
Present 2-3 options clearly with dates and times.
@@ -319,18 +294,15 @@ You'll start with a default template that includes a "Call Start" node. We'll mo
319294
<Step title="Add Confirmation and Booking Flow">
320295
**Booking Confirmation Node** (Conversation):
321296

322-
**Condition**:
323-
```txt
297+
```txt title="Condition"
324298
Time slot selected
325299
```
326300

327-
**First Message**:
328-
```txt
301+
```txt title="First Message"
329302
Perfect! Let me confirm your appointment details: [service] on [date] at [time]. Is this correct?
330303
```
331304

332-
**Prompt**:
333-
```txt
305+
```txt title="Prompt"
334306
You are confirming appointment details before booking.
335307

336308
Read back the service type, date, and time clearly.
@@ -345,8 +317,7 @@ You'll start with a default template that includes a "Call Start" node. We'll mo
345317

346318
**Create Appointment Tool Node**:
347319

348-
**Condition**:
349-
```txt
320+
```txt title="Condition"
350321
Appointment details confirmed
351322
```
352323

@@ -355,27 +326,23 @@ You'll start with a default template that includes a "Call Start" node. We'll mo
355326

356327
**Send Confirmation Node** (Tool):
357328

358-
**Condition**:
359-
```txt
329+
```txt title="Condition"
360330
Appointment created successfully
361331
```
362332

363333
**Select Tool**: Choose your pre-configured SMS/email confirmation tool
364334

365335
**Completion Node** (Conversation):
366336

367-
**Condition**:
368-
```txt
337+
```txt title="Condition"
369338
Confirmation sent
370339
```
371340

372-
**First Message**:
373-
```txt
341+
```txt title="First Message"
374342
Great! Your appointment is confirmed. You'll receive a confirmation message shortly. Is there anything else I can help you with today?
375343
```
376344

377-
**Prompt**:
378-
```txt
345+
```txt title="Prompt"
379346
You are wrapping up a successful appointment booking.
380347

381348
Be friendly and offer additional assistance.
@@ -387,8 +354,7 @@ You'll start with a default template that includes a "Call Start" node. We'll mo
387354
<Step title="Add Transfer and Hangup Options">
388355
**Transfer to Human Node**:
389356

390-
**Condition**:
391-
```txt
357+
```txt title="Condition"
392358
Customer requests human assistance
393359
```
394360

@@ -397,8 +363,7 @@ You'll start with a default template that includes a "Call Start" node. We'll mo
397363

398364
**End Call Node**:
399365

400-
**Condition**:
401-
```txt
366+
```txt title="Condition"
402367
Customer satisfied and no further assistance needed
403368
```
404369

0 commit comments

Comments
 (0)