Client-side configuration
You can pass a config into theRTVIClient
params properties on the constructor.
Passing a config from the client is optional. A bot will always start with a default config if no config is passed from the client.
Some RTVI implementations may also choose to ignore configs passed from the client, for security or other reasons.
Working with the RTVI config array
RTVI config is defined as a list because order matters; configurations are applied sequentially on your bot pipeline. For example, to configure a TTS service with a new voice and an LLM service with new prompting, specify the TTS first to ensure the voice is applied before the prompting. This ordering principle also applies to service options, ensuring deterministic outcomes for all RTVI implementations. RTVI clients instances expose various methods for working with config arrays which you can read about here.Server-side configuration
Platforms implementing RTVI on the server side will generally provide a method for passing a config into aconnect
endpoint. It’s a good practice to use the same config format for both client-side and server-side configuration, though of course this choice is left up to the implementor of the server-side APIs.