You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: fern/squads/silent-transfers.mdx
+13-4Lines changed: 13 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,9 +8,13 @@ slug: squads/silent-transfers
8
8
If you want to allow your call flow to move seamlessly from one assistant to another _without_ the caller hearing `Please hold while we transfer you` here’s what to do:
9
9
10
10
1.**Update the Destination Assistant’s First Message**
11
-
- Set the assistant’s `firstMessage` to an _empty string_.
12
-
- Make sure the `firstMessageMode` is set to `assistant-speaks-first-with-model-generated-message`.
13
-
2.**Trigger the Transfer from the Source Assistant**
11
+
- Set the assistant's `firstMessage` to an _empty string_.
12
+
- Set the assistant's `firstMessageMode` to `assistant-speaks-first-with-model-generated-message`.
13
+
14
+
2.**Update the Squad's assistant destinations messages**
15
+
- For every `members[*].assistantDestinations[*]`, set the `message` property to an _empty string_.
16
+
17
+
3.**Trigger the Transfer from the Source Assistant**
14
18
15
19
- In that assistant’s prompt, include a line instructing it to transfer to the desired assistant:
16
20
@@ -20,7 +24,7 @@ If you want to allow your call flow to move seamlessly from one assistant to ano
20
24
21
25
- Replace `'assistantName'` with the exact name of the next assistant.
22
26
23
-
3.**Direct the Destination Assistant’s Behavior**
27
+
4.**Direct the Destination Assistant’s Behavior**
24
28
- In that assistant’s prompt, include a line instructing it to _`Proceed directly to the Task section without any greetings or small talk.`_
25
29
- This ensures there’s no awkward greeting or “Hello!” when the next assistant begins speaking.
26
30
@@ -38,6 +42,10 @@ Below are the key JSON examples you’ll need. These show how to structure your
38
42
39
43
### **HP Payment Squad With SubAgent**
40
44
45
+
<Warning>
46
+
Make sure the `members[*].assistantDestinations[*].message` properties are set to an _empty string_.
47
+
</Warning>
48
+
41
49
```json
42
50
{
43
51
"members": [
@@ -97,6 +105,7 @@ Below are the key JSON examples you’ll need. These show how to structure your
0 commit comments