ai
Add an ai verb to the main section. Starts an AI-powered conversation on the call.
prompt_text and prompt_pom are mutually exclusive. Provide one or the other to
set the AI system prompt, but not both.
Parameters
prompt_text
Plain text system prompt for the AI. Mutually exclusive with prompt_pom.
prompt_pom
Prompt Object Model (POM) structure for the AI prompt. A list of section dictionaries
with keys like "section", "body", and "bullets". Mutually exclusive with
prompt_text.
post_prompt
Instructions for summarizing the call after the AI conversation ends.
post_prompt_url
URL where the post-prompt summary is sent via webhook.
swaig
SWAIG (SignalWire AI Gateway) configuration with tool function definitions and
defaults. Structure: {"defaults": {"web_hook_url": "..."}, "functions": [...]}.
**kwargs
Additional AI verb parameters passed directly into the verb config (e.g.,
hints, languages, params, global_data).
Returns
Self — The builder instance for method chaining.