Copy an agent for a new location
- Get Agent on the original, then Create Agent with
name,organizationIdand the copied settings, renamed from snake_case to camelCase. - It must leave out read-only values such as
idand thegoogle_place_*details. SetgooglePlaceIdto the new location’s listing, or leave it out. See Google Business. - The copy has no phone number or SIP registration yet. Connect it the same way as any new agent, for example with SIP Registration.
Add a transfer rule
- Get Agent to read
transfer_rules, then Update Agent with the full new text intransferRules. If transfers are off, it also setstransferEnabled: true. - For a warm transfer, where the AI agent introduces the caller first, it uses
warmTransferRulesandwarmTransferEnabledinstead. See Call Transfer and Warm Transfer.
Send call summaries to your team
- Get Agent to read
email(a comma-separated string), then Update Agent withemailas an array of all the addresses. - For the recording link,
sendRecordingLinkWithSummary: true. This needs recording to be on (enableRecording), otherwise the API returns400.
Text callers a confirmation
- Get Agent to read
extensions. The assistant adds one entry toextensions.tools, using the exact format in SMS Functions in extensions.tools, and sends the wholeextensionsobject back with Update Agent. - With Twilio, the entry needs a From number, and the organization’s Twilio connection must already be set up. With hosted SMS, the number must be one of the organization’s hosted SMS numbers.
- The same function can text your team instead of the caller, for example “text +15555550100 when a caller reports an emergency”. Write that in the instructions.
Review calls and suggest instruction changes
- List Call Logs for summaries and transcripts, paging with
pageandlimit. - Get Agent to read
system_prompt. After you approve, Update Agent with the newsystemPrompt. - If the new instructions don’t work as well, revert to the previous version.
