Skip to main content
The agent wizard covers the common fields, but AgentConfig exposes top-level options that the wizard does not surface: pre- and post-conversation workflows, custom recording locations, and noise cancellation. Set them in the agent config JSON or via the API. The full, authoritative shape of every field is published as a JSON Schema. Fetch it before building requests so you always match the deployed version:
GET /core/agent-config-schema returns the JSON Schema generated directly from the AgentConfig model, so it is the source of truth for field names, types, defaults, and enum values.

Pre-conversation workflow

pre_conversation_workflow runs a workflow before the agent starts. Use it to look up the caller, gate access, or seed the agent with context. The workflow can return three optional outputs: The field accepts a WorkflowAction. Reference a published workflow, or supply an inline definition:
You must specify either workflow_id plus workflow_version, or an inline definition — not both, and not neither. When referencing a workflow, initial_step is required.
reject_on_error: true plus a reject output gives you a hard gate: if the lookup fails or the workflow decides to, the conversation never starts.

Post-conversation workflow

post_conversation_workflow runs a workflow after the conversation ends — for logging, CRM updates, follow-up, or downstream automation. It accepts the same WorkflowAction shape as the pre-conversation workflow. Its outputs do not affect the (already finished) conversation, so reject has no effect here.
Both hooks invoke standard workflows. For how an agent embeds and triggers a workflow, see Agent-embedded triggers.

Custom recording locations

By default Anyreach stores recordings for you. Set custom_recording_locations to copy recordings into your own object storage instead. The field is a list (minimum one entry); each entry is discriminated by provider. Every provider supports file_type, either ogg (default) or mp4.
For S3, Anyreach can mint a presigned URL to play back a recording from your bucket. GCP and Azure store the recording but do not return a playback URL.

Noise cancellation

noise_cancellation enables LiveKit noise-cancellation models on the audio stream. It holds a models list with at least one entry; each entry is discriminated by provider and model.name.
Match the model to the channel: use bvc_telephony for inbound/outbound phone calls and bvc for web or higher-fidelity audio.

Reference

These fields live at the top level of AgentConfig (alongside version, agent, and metadata). Always validate against the live schema before sending requests.

Agent API usage

Create and update agents, including these config fields, over the API.

Agent-embedded triggers

How agents invoke workflows for pre- and post-conversation hooks.