Skip to content

Commit

Permalink
Correct slug and title for set_meta_data AI guide (#103)
Browse files Browse the repository at this point in the history
* change slug, add redirect, rename file, add 'metadata' to body text to improve indexing

* update links
  • Loading branch information
hey-august authored Feb 28, 2025
1 parent c90a549 commit a161033
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/swml/guides/AI/back_to_back_functions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -195,5 +195,5 @@ You can follow our [Testing webhooks with ngrok](https://developer.signalwire.co
## Conclusion

You can use the `back_to_back_functions` mechanism to create very complex interactions all managed by an intelligent agent.
If you're looking for more examples, the [`set_meta_data`](./set_metadata.mdx) tutorial also
If you're looking for more examples, the [`set_meta_data`](./set_meta_data.mdx) tutorial also
demonstrates the use of `back_to_back_functions`.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
slug: /swml/guides/ai/set_metadata
slug: /swml/guides/ai/set_meta_data
title: Use `set_meta_data`
x-custom:
tags:
- favorite
Expand All @@ -8,9 +9,9 @@ x-custom:
- product:voice
---

# Using `set_meta_data`
# Use `set_meta_data`

In this example, we demonstrate how to use `set_meta_data` to store information to reference later.
In this example, we demonstrate how to use `set_meta_data` to store metadata to reference later.
The AI agent, will store a user's name and then look up any additional stored information.

The benefit of storing information in `meta_data` is that the information it can be referenced from any function with the same `meta_data_token`, while also
Expand Down
2 changes: 1 addition & 1 deletion docs/swml/guides/AI/swaig/functions/data_map/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ the argument is named `target`, you can access its value using `%{args.target}`.
Both `global_meta_data` and `function.meta_data` are versatile environmental objects that can
store arbitrary data. This data can be set initially in the SWML script or dynamically
through the SWML [`set_global_data`](/swml/methods/ai/swaig/functions/data_map/output)
or [`set_meta_data`](../../../set_metadata.mdx) actions.
or [`set_meta_data`](../../../set_meta_data.mdx) actions.

- **`meta_data`**: Stores data specific to a particular function.
- **`global_meta_data`**: Accessible across all functions within the SWML script.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ is processed, no further instructions within the SWAIG function will be executed
| `toggle_functions.active` | `boolean` | `true` | Whether to activate or deactivate the functions. |
| `toggle_functions.function` | `object[]` | - | A list of functions to toggle. |
| `set_global_data` | `object` | - | A JSON object containing any global data, as a key-value map. This action sets the data in the [`global_meta_data`](../../../index.mdx) to be globally referenced. |
| [`set_meta_data`](../../../../../guides/AI/set_metadata.mdx) | `object` | - | A JSON object containing any metadata, as a key-value map. This action sets the data in the [`meta_data`](../index.mdx) to be referenced locally in the function. |
| [`set_meta_data`](../../../../../guides/AI/set_meta_data.mdx) | `object` | - | A JSON object containing any metadata, as a key-value map. This action sets the data in the [`meta_data`](../index.mdx) to be referenced locally in the function. |
| `unset_global_data` | `string` \| `object` | - | The key of the global data to unset from the [`global_data`](../../../index.mdx). You can also reset the `global_data` by passing in a new object. |
| `unset_meta_data` | `string` \| `object` | - | The key of the metadata to unset from the [`meta_data`](../index.mdx). You can also reset the `meta_data` by passing in a new object. |
| `playback_bg` | `object` | - | A JSON object containing the audio file to play. |
Expand Down
5 changes: 4 additions & 1 deletion provisioning/nginx/redirects.map
Original file line number Diff line number Diff line change
Expand Up @@ -1169,4 +1169,7 @@
/platform/dashboard/getting-started/navigating-your-space /platform/dashboard/get-started/explore;
/platform/dashboard/getting-started/navigating-your-space/ /platform/dashboard/get-started/explore;
/platform/dashboard/getting-started/your-signalwire-video-space /platform/dashboard/get-started/video;
/platform/dashboard/getting-started/your-signalwire-video-space/ /platform/dashboard/get-started/video;
/platform/dashboard/getting-started/your-signalwire-video-space/ /platform/dashboard/get-started/video;

/swml/guides/ai/set_metadata /swml/guides/ai/set_meta_data;
/swml/guides/ai/set_metadata/ /swml/guides/ai/set_meta_data;

0 comments on commit a161033

Please sign in to comment.