Skip to content

Commit 4648065

Browse files
authored
feat: add explicitly instructions on silent transfers (#311)
1 parent 0c9fcd6 commit 4648065

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

fern/squads/silent-transfers.mdx

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,13 @@ slug: squads/silent-transfers
88
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:
99

1010
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**
1418

1519
- In that assistant’s prompt, include a line instructing it to transfer to the desired assistant:
1620

@@ -20,7 +24,7 @@ If you want to allow your call flow to move seamlessly from one assistant to ano
2024

2125
- Replace `'assistantName'` with the exact name of the next assistant.
2226

23-
3. **Direct the Destination Assistant’s Behavior**
27+
4. **Direct the Destination Assistant’s Behavior**
2428
- In that assistant’s prompt, include a line instructing it to _`Proceed directly to the Task section without any greetings or small talk.`_
2529
- This ensures there’s no awkward greeting or “Hello!” when the next assistant begins speaking.
2630

@@ -38,6 +42,10 @@ Below are the key JSON examples you’ll need. These show how to structure your
3842

3943
### **HP Payment Squad With SubAgent**
4044

45+
<Warning>
46+
Make sure the `members[*].assistantDestinations[*].message` properties are set to an _empty string_.
47+
</Warning>
48+
4149
```json
4250
{
4351
"members": [
@@ -97,6 +105,7 @@ Below are the key JSON examples you’ll need. These show how to structure your
97105
"temperature": 0.3
98106
},
99107
"firstMessage": "",
108+
"firstMessageMode": "assistant-speaks-first-with-model-generated-message",
100109
"transcriber": {
101110
"model": "nova-2",
102111
"language": "en",

0 commit comments

Comments
 (0)