Step 1: Add an OpenAI account connection
Vocode uses account connections to manage your account parameters and associate them with phone numbers and calls. You can add multiple account connections if you have multiple OpenAI accounts you would like to integrate. You can quickly add an account connection via our API by providing an OpenAI API key.create_account_connection
will return the parameters for your new account connection, including an id
, which is necessary for the following steps.
Step 2: Use the OpenAI account connection with your agent
To use the new account connection with your calls, you need to configure your agents with the account connection. You can do so when you create a new agent or update an existing agent via theopenai_account_connection
parameter.
Use your own OpenAI models
You can add your own OpenAI models to your agents using theopenai_model_name_override
parameter when creating or updating your agents. These models can be the base OpenAI models (e.g. gpt-3.5-turbo-1106, gpt-4) or your own fine-tuned models.
NOTE: A model name override can only be used if you add your own OpenAI account connection to the agent. Model overrides do not work when using Vocode’s OpenAI system.