Skip to main content

ai.SWAIG

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

ai.SWAIG
object

An object that contains the SWAIG parameters.

SWAIG Parameters

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.

See defaults for additional details.

SWAIG.functions
object[]

An array of JSON objects to define functions that can be executed during the interaction with the AI. Default is not set. The fields of this object are the six following.

See functions for additional details.

SWAIG.includes
object[]

An array of objects to include remote function signatures. This allows you to include functions that are defined in a remote location.

See includes for additional details.

SWAIG.internal_fillers
object

An object containing filler phrases for internal SWAIG functions.

See internal_fillers for additional details.

SWAIG.native_functions
string[]

Prebuilt functions the AI agent is able to call (from this list of available native functions).