> This page is for SWML.

> Fetch clean Markdown by appending `.md` to any page URL under https://signalwire.com/docs or requesting it with the HTTP header `Accept: text/markdown`. The root index at https://signalwire.com/docs/llms.txt lists the available documentation indexes.

# SWAIG

> The SignalWire AI Gateway Interface. Allows you to create user-defined functions that can be executed during the dialogue.

The SignalWire AI Gateway Interface. Allows you to create user-defined functions that can be executed during the dialogue.

## **Properties**

**`amazon_bedrock.SWAIG`** `object`

An object that accepts the following properties.

---

**`SWAIG.defaults`** `object`

Default settings for all SWAIG functions. If `defaults` is not set, settings may be set in each function object. Default is not set.

---

**`defaults.web_hook_url`** `string`

The default URL that receives calls to every function without its own `web_hook_url`. If `defaults` is not set, `web_hook_url` may be set in each [SWAIG function](/docs/swml/reference/calling/amazon-bedrock/swaig/functions) object. Authentication can also be set in the url in the format of `username:password@url`.

For what this URL receives and what it should return, see the
[tool webhook](/docs/swml/reference/calling/amazon-bedrock/swaig/functions#tool-webhook).

---

**`SWAIG.functions`** `object[]`

An array of functions the agent can call during the conversation. Default is not set.

See [`functions`](/docs/swml/reference/calling/amazon-bedrock/swaig/functions) for additional details.

---