Skip to main content

OpenAI Setup

Prerequisites

Tip: You will need to load credits on your OpenAI account before proceeding.

OpenAI Platform Configuration

  1. Log into platform.openai.com

  2. Create a new project and copy the Project ID

openai-1.png

  1. Create an API key and copy the API Key

openai-2.png

  1. Create a webhook with the following settings:
    • URL: Your PBX URL with prefix, for example: https://phones.pbx70.vodia-teams.com/openai (where openai is the prefix)
    • Event Type: realtime.call.incoming

openai-3.png

Vodia PBX Configuration

  1. Create a new OpenAI trunk in Vodia PBX for connection to OpenAI
    • Enter the Project ID (from step 2 above) as the username when creating the trunk

openai-4.png

  1. Create a dialplan entry for use of that trunk:
    • Pattern: openai
    • Replacement: (leave empty)

openai-5.png


Your OpenAI integration is now configured and ready to use by your Voice Agents JS script.