Sent to a tool’s web_hook_url (or the SWAIG defaults.web_hook_url) when an
ai agent calls one of your functions. Your endpoint runs the
function and returns a JSON object with a response string (the result the AI reads next) and,
optionally, an action — a single object or an array — telling the agent what to do.
The function’s parameter definition, as you declared it in parameters.
The content type of the request body. Always text/swaig.
How the body is delivered. Always SWAIG Function.
The AI session’s current global_data, when it has any.
The token that scopes meta_data, when the function defines one.
Metadata scoped to meta_data_token, when the function defines a token.
true when the AI session has hit an unrecoverable error. Included only in that case.
A description of the error. Included only when fatal_error is set.
SWML variables for the call. Included when you enable swaig_post_swml_vars.
SWML call state. Included when you enable swaig_post_swml_vars.
The conversation so far, with sensitive values redacted. Included when you enable swaig_post_conversation.
The full, unredacted conversation so far. Included when you enable swaig_post_conversation.