From 9d3fcc674866ab4802a8a498b99125142624b62b Mon Sep 17 00:00:00 2001 From: manny-r31 Date: Wed, 29 Apr 2026 13:58:32 -0400 Subject: [PATCH 1/3] Changes to SWAIG example to make transfer true requirement more explicit. --- .../server-sdks/pages/guides/build-ai-agents/swaig.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fern/products/server-sdks/pages/guides/build-ai-agents/swaig.mdx b/fern/products/server-sdks/pages/guides/build-ai-agents/swaig.mdx index f6fd42f5c..091ad0b4d 100644 --- a/fern/products/server-sdks/pages/guides/build-ai-agents/swaig.mdx +++ b/fern/products/server-sdks/pages/guides/build-ai-agents/swaig.mdx @@ -531,7 +531,7 @@ return result; | Action | Purpose | Example | |--------|---------|---------| | `set_global_data` | Store data for later use | `{"key": "value"}` | -| `transfer` | End AI, prepare for transfer | `True` | +| `transfer` | End AI, prepare for transfer. **Required** as `True` to perform a hard transfer. | `True` | | `swml` | Execute SWML after AI ends | `{"version": "1.0.0", ...}` | | `stop` | End the AI conversation | `True` | | `toggle_functions` | Enable/disable functions | `[{"active": false, "function": "fn_name"}]` | @@ -605,9 +605,9 @@ Or for a transfer: { "response": "Transferring you to a specialist now.", "action": [ - {"transfer": true}, { - "swml": { + "transfer": true, + "SWML": { "version": "1.0.0", "sections": { "main": [ From 19cf746e474a85c76892b7fc49c319343018698b Mon Sep 17 00:00:00 2001 From: manny-r31 Date: Fri, 1 May 2026 14:51:35 -0400 Subject: [PATCH 2/3] change to schema to accomodate for adjustment to SWML transfer action --- .../Methods/ai/swaig/functions/data_map/actions/swml.tsp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/specs/swml/Methods/ai/swaig/functions/data_map/actions/swml.tsp b/specs/swml/Methods/ai/swaig/functions/data_map/actions/swml.tsp index ba2dd2330..1f1c20005 100644 --- a/specs/swml/Methods/ai/swaig/functions/data_map/actions/swml.tsp +++ b/specs/swml/Methods/ai/swaig/functions/data_map/actions/swml.tsp @@ -5,4 +5,9 @@ model SWMLAction { @summary("SWML") @doc("A SWML object to be executed.") SWML: SWMLObject; + + @summary("transfer") + @doc("When `true`, ends the AI session and hard-transfers the call to the sibling `SWML` payload. When omitted or `false`, the SWML executes inline and the AI session continues afterward.") + @example(true) + transfer?: boolean | SWMLVar; } From 98e890e9d7f10ecb6df4a453ccefbcc353c28df7 Mon Sep 17 00:00:00 2001 From: manny-r31 Date: Fri, 1 May 2026 16:10:54 -0400 Subject: [PATCH 3/3] fixes to snippet for action[].transfer param --- fern/snippets/swml/_actions.mdx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fern/snippets/swml/_actions.mdx b/fern/snippets/swml/_actions.mdx index 2ff84d9cb..decc30f69 100644 --- a/fern/snippets/swml/_actions.mdx +++ b/fern/snippets/swml/_actions.mdx @@ -136,8 +136,11 @@ - + Transfer the call to a new destination. + + When `true`, ends the AI session and hard-transfers the call to the sibling `action[].SWML` payload in the same action object. + When omitted or `false`, the SWML executes inline and the AI session continues afterward.