# functions.data_map ai.SWAIG.functions.data_map is an object that defines the data_map for the [SWAIG function](../index.mdx). The data_map is used to define either a output, expressions, or webhooks object that will be used to process the input data of the SWAIG function and either return a response or perform an action. The data_map options will be prioritized in the following order: output, expressions, and webhooks. If one is present, the others will be ignored. ## Parameters | Name
oneOf | Type | Description | |:|:--|:--| | [output](./data_map.output.mdx)Required | object | An object that defines the output of the SWAIG function. | | [expressions](./data_map.expressions.mdx)Required | object[] | An array of objects that define patterns and corresponding actions. | | [webhooks](./data_map.webhooks.mdx)Required | object[] | An array of objects that define external API calls. | ## **Examples:** 1. [Executing SWML from a SWAIG function](../../../../../guides/AI/executing_swml.mdx)