# ai.SWAIG.data_map ai.SWAIG.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. | Name | Type | Description | |:--|:--|:--| | [data_map.output](./data_map.output.mdx) | object | An object that defines the output of the SWAIG function. | | [data_map.expressions](./data_map.expressions.mdx) | object[] | An array of objects that define patterns and corresponding actions. | | [data_map.webhooks](./data_map.webhooks.mdx) | object[] | An array of objects that define external API calls. | ## **Examples:** 1. [Executing SWML from a SWAIG function](../../../../guides/AI/executing_swml.mdx)