Docs

Update AI Agent

Updates an existing AI agent in SignalWire.

PUT

Query

Field selectionChoose which fields should be included in the response. Learn more
string

Comma-separated response fields to include.

Body

Arguments
stringrequired

Unique ID of an AI Agent.

string

Unique ID of an AI Agent.

string

Name of the AI Agent.

string

The instructions to send to the agent.

number

Randomness setting. Float value between 0.0 and 1.5. Closer to 0 will make the output less random.

number

Randomness setting. Alternative to `temperature`. Float value between 0.0 and 1.0. Closer to 0 will make the output less random.

number

Threshold to fire a speech-detect event at the end of the utterance. Float value between 0.0 and 1.0. Decreasing this value will reduce the pause after the user speaks, but may introduce false positives.

number

Aversion to staying on topic. Float value between -2.0 and 2.0. Positive values increase the model's likelihood to talk about new topics.

number

Aversion to repeating lines. Float value between -2.0 and 2.0. Positive values decrease the model's likelihood to repeat the same line verbatim.

array of object

An array of objects that define the steps in the context. These steps are used to define the flow of the conversation.

string

The instructions to send to the agent.

number

Randomness setting. Float value between 0.0 and 1.5. Closer to 0 will make the output less random.

number

Randomness setting. Alternative to `temperature`. Float value between 0.0 and 1.0. Closer to 0 will make the output less random.

number

Threshold to fire a speech-detect event at the end of the utterance. Float value between 0.0 and 1.0. Decreasing this value will reduce the pause after the user speaks, but may introduce false positives.

number

Aversion to staying on topic. Float value between -2.0 and 2.0. Positive values increase the model's likelihood to talk about new topics.

number

Aversion to repeating lines. Float value between -2.0 and 2.0. Positive values decrease the model's likelihood to repeat the same line verbatim.

boolean

Instructs the agent to acknowledge crosstalk and confirm user input when the user speaks over the agent.

string

Sets the name the AI agent responds to for wake/activation purposes. When using `enable_pause`, `start_paused`, or `speak_when_spoken_to`, the user must say this name to get the agent's attention.

number

Adjust the volume of the AI. Allowed values from `-50` - `50`.

string

A custom identifier for the AI application instance. This name is included in webhook payloads.

number

Amount of time, in ms, to wait before prompting the user to respond. Allowed values from `10,000` - `600,000`. Set to `0` to disable.

string

A custom prompt that is fed into the AI when the attention_timeout is reached.

string

URL of audio file to play in the background while AI plays in foreground.

number

Maximum number of times to loop playing the background file. `undefined` means loop indefinitely.

number

Defines background_file volume within a range of `-50` to `50`.

string

Takes a string, including a regular expression, defining barge behavior. For example, this param can direct the AI to stop when the word 'hippopotomus' is input.

number

Defines the number of words that must be input before triggering barge behavior, in a range of `1-99`.

string

Sets the prompt which binds the agent to its purpose.

array of object

Injects pre-existing conversation history into the AI session at startup. This allows you to seed the AI agent with context from a previous conversation or provide example interactions.

string

Used by `check_for_input` and `save_conversation` to identify an individual conversation.

number

Enables debugging to the set URL. Allowed values from `0` - `1`.

string

Each interaction between the AI and end user is posted in real time to the established URL.

boolean

Enables debug mode for the AI session.

array of string

Forces the direction of the call to the assistant. Valid values are `inbound` and `outbound`.

string

DTMF digit, as a string, to signal the end of input (ex: '#')

number

Time, in ms, at the end of digit input to detect end of input. Allowed values from `250` - `10,000`.

number

Amount of silence, in ms, at the end of an utterance to detect end of speech. Allowed values from `250` - `10,000`.

boolean

Enables the inner dialog feature for background conversation analysis.

boolean

Enables the pause/resume functionality for the AI agent.

boolean

Enables intelligent turn detection that monitors partial speech transcripts.

number

The stability slider determines how stable the voice is and the randomness between each generation. Lowering this slider introduces a broader emotional range for the voice.

number

The similarity slider dictates how closely the AI should adhere to the original voice when attempting to replicate it. The higher the similarity, the closer the AI will sound to the original voice.

number

Amount of energy necessary for bot to hear you (in dB). Allowed values from `0.0` - `100.0`.

string

A URL for the hold music to play, accepting WAV, mp3, and FreeSWITCH tone_stream.

boolean

Enables hold music during SWAIG processing.

number

Amount of time, in ms, to wait before exiting the app due to inactivity. Allowed values from `10,000` - `3,600,000`.

string

Specifies the AI model to use for the inner dialog feature.

string

The system prompt that guides the inner dialog AI's behavior.

boolean

When enabled, synchronizes the inner dialog with the main conversation flow.

string

Check for input function with check_for_input. Example use case: Feeding an inbound SMS to AI on a voice call, eg., for collecting an email address or other complex information.

boolean

When enabled, barges agent upon any sound interruption longer than 1 second.

string

Provide a prompt for the agent to handle crosstalk.

boolean

Allows multilingualism when `true`.

string

The local timezone setting for the AI. Value should use `IANA TZ ID`

number

Sets the maximum number of tokens the AI model can generate in a single response.

number

Sets a time duration for the outbound call recipient to respond to the AI agent before timeout, in a range from `10000` to `600000`.

boolean

When enabled, global_data persists across multiple AI agent invocations within the same call.

string

Specifies the output format for structured prompts. Valid values are `markdown` or `xml`.

boolean

Send a summary of the conversation after the call ends. This requires a `post_url` to be set in the ai parameters and the `conversation_id` defined below. This eliminates the need for a `post_prompt` in the ai parameters.

boolean

When enabled, the AI agent remains silent until directly addressed by name.

boolean

When enabled, the AI agent starts in a paused state.

boolean

Allows tweaking any of the indicated settings, such as `barge_match_string`, using the returned SWML from the SWAIG function.

boolean

Allows your SWAIG to return SWML to be executed.

boolean

Post entire conversation to any SWAIG call.

boolean

Controls whether SWML variables are included in SWAIG function webhook payloads.

boolean

Pass a summary of a conversation from one AI agent to another. For example, transfer a call summary between support agents in two departments.

number

Time in milliseconds to wait after detecting a potential end-of-turn before finalizing speech recognition.

string

Configures Silero Voice Activity Detection (VAD) settings. Format: `threshold` or `threshold:frame_ms`. The threshold (0-100) sets sensitivity for detecting voice activity. The optional frame_ms (16-40) sets frame duration in milliseconds.

boolean

Enable verbose logging.

boolean

When false, AI agent will initialize dialogue after call is setup. When true, agent will wait for the user to speak first.

string

Specifies an additional prefix that must be spoken along with the agent's name to wake the agent.

array of object

An array of JSON objects to clarify the AI's pronunciation of words or expressions.

array of string

An array of hints (as strings) to provide context to the dialogue.

array of object

An array of JSON objects defining supported languages in the conversation.

string

Default URL to send status callbacks and reports to. Authentication can also be set in the url in the format of `username:password@url.`

array of string

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

array of object

An array of objects to include remote function signatures. The object fields are url to specify where the remote functions are defined and functions which is an array of the function names as strings.

array of 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.

Every app you connect,one REST pattern

Call any app with one REST pattern. MindCloud handles each provider's auth, request shape, and responses for you.

Learn what the Universal API is
One REST patternUse the same request structure across apps like Slack, HubSpot, Salesforce, and thousands more.
Managed connectionsSend a MindCloud connection ID instead of handling provider tokens, refresh logic, and credential storage yourself.
Action-level docsEach action page shows the exact endpoint, required arguments, optional controls, and response behavior for that app version.