Create AI Assistant
Creates a new AI assistant with the specified configuration. The variant.type determines the assistant’s behavior and the required variant.config structure.
Variants
-
abandoned_cart— a ready-made flow; providevariant.config.abandoned_cart(e.g. payment plan). The system prompt is generated from the variant template, soagent.systemPromptcan be left empty. -
cod_to_prepaid— converts Shopify COD orders to prepaid. Providevariant.config.cod_to_prepaid.paymentLinkValidity,codFee, andsupportContacts. -
address_verification— verifies or collects Shopify shipping addresses. Providevariant.config.address_verification.minDays,maxDays, andsupportContacts. -
order_confirmation— confirms Shopify orders before fulfillment. Optional config:variant.config.order_confirmation.supportContacts. -
ndr_followup— follows up on failed delivery / NDR events. Optional config:variant.config.ndr_followup.maxRescheduleDays,webhookToken, andsupportContacts. -
custom— you fully author the behavior. Put your prompt inagent.systemPromptand declare any dynamic variables invariant.config.inputSchema.
For preset variants, leave agent.systemPrompt empty and pass the required per-call data in payload when initiating the call.
Using variables in agent.systemPrompt (custom variant)
Reference a variable with the {{variableName}} placeholder syntax; nested values use dot-paths, e.g. {{customer.firstName}}. Each variable you reference should be declared in variant.config.inputSchema (name + type, mark isRequired: true when mandatory). The actual values are supplied per call through the variableValues object when you initiate the call — at that point every {{placeholder}} is substituted with the matching value. Any placeholder with no matching value is left untouched in the prompt.
Body
40Telephony numbers linked to the assistant. Each value is the _id of a telephony number (from GET /v1/number-pool/{telephonyNumberId} or POST /v1/number-pool/purchase).
inbound— the phone number customers call to reach this assistant. When someone dials it, the assistant picks up automatically and follows itssystemPrompt. Only one assistant can hold an inbound number at a time; assigning it here removes it from any other assistant.outbound— the caller ID shown to customers when the assistant places an outgoing call.
Auto-assignment: In production, the first assistant in a new workspace automatically receives the workspace's default number as outbound. Additional assistants must be assigned numbers explicitly.
Post-call AI evaluation configuration. After each call ends, the platform runs these prompts against the call recording and transcript. Results are returned in the end-of-call webhook event and visible in the call dashboard.
Configure pre-call enrichment during assistant creation. Supports templated apiPlan.headers and apiPlan.body values from per-call variableValues.
Combined knowledge base containing both documents and FAQ entries.