User Guide: Bring Your Own Model Key for VoiceBot
1 min
The Bring Your Own Key (BYOK) feature allows you to integrate your own API credentials for Speech-to-Text (STT), Large Language Models (LLM), and Text-to-Speech (TTS) services. By providing your own keys, you gain greater control over model usage, billing, and region-specific configurations within your Exotel VoiceBot.
I. Creating a Model Configuration Rule
Before you can use your own keys in a bot, you must define a configuration rule in the settings.
- Navigate to Settings: From the main side navigation, go to Settings > Model Configuration.
- Add Configuration: Click the "+ Add Configuration" button to open the New Model Configuration Rule panel.
- Name Your Rule: Under Your Model Name, give your rule a clear, identifiable name (e.g., "Company_Azure_STT").
- Configure Service Type: Select the tab for the service you wish to configure:
- STT (Speech-to-Text): Select your provider (e.g., Speechmatics or Azure).
- LLM (Large Language Model): Supported models currently include existing options such as GPT-4o-mini.
- TTS (Text-to-Speech): Configure providers like Eleven Labs or Google.
- Enter API Details: Provide the required technical details, including:
- Region (if applicable).
- API Key*.
- Save: Click "Add" to finalize the rule.
II. Applying Your Keys in the Bot Builder
Once your configuration rules are created, you can apply them to specific bots through the Build Bot interface.
- Open Bot Builder: Navigate to Build Bot and select the bot you wish to modify.
- Access Configuration Tab: Click on the Configuration tab at the top of the editor.
- Select Your Custom Rule:
- Navigate to the relevant section (Model, Speech (STT), or Voice (TTS)).
- Locate the Configuration Rule* dropdown menu.
- Select the custom rule you created in Step I (e.g., "azure-exotel").
- Save Changes: Click the "Save" button in the top right corner to apply your own keys to the bot's runtime.