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:
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.
Custom recording locations
By default Anyreach stores recordings for you. Setcustom_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.
- S3
- GCP
- Azure
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.
Reference
These fields live at the top level ofAgentConfig (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.

