Skip to main content
Paste one of these after the starter prompt, which sets the safety rules. Replace the parts in brackets. Each prompt lists the API calls it relies on, so you can check what the assistant does.

Copy an agent for a new location

There’s no clone endpoint, so the assistant reads the agent and creates a new one with the same settings:
  • Get Agent on the original, then Create Agent with name, organizationId and the copied settings, renamed from snake_case to camelCase.
  • It must leave out read-only values such as id and the google_place_* details. Set googlePlaceId to 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.
You can also copy an agent with Clone in the Connect App’s agents list. See Edit Agent.

Add a transfer rule

Transfer rules are plain text, so the assistant adds a sentence to the existing rules:
  • Get Agent to read transfer_rules, then Update Agent with the full new text in transferRules. If transfers are off, it also sets transferEnabled: true.
  • For a warm transfer, where the AI agent introduces the caller first, it uses warmTransferRules and warmTransferEnabled instead. See Call Transfer and Warm Transfer.

Send call summaries to your team

  • Get Agent to read email (a comma-separated string), then Update Agent with email as an array of all the addresses.
  • For the recording link, sendRecordingLinkWithSummary: true. This needs recording to be on (enableRecording), otherwise the API returns 400.

Text callers a confirmation

  • Get Agent to read extensions. The assistant adds one entry to extensions.tools, using the exact format in SMS Functions in extensions.tools, and sends the whole extensions object 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 page and limit.
  • Get Agent to read system_prompt. After you approve, Update Agent with the new systemPrompt.
  • If the new instructions don’t work as well, revert to the previous version.
For writing good instructions, see Instructions and Best Practices.

Explain what an agent does

This uses only Get Agent, so it’s a safe first test of your setup.