First, in the left navigation bar of the develop tab , navigate to the functions and assets section, then click services . Click create service . Twilio voice chatgpt service creation demo give your service a name. I'll call mine voice-chatgpt-demo and click next . Twilio voice chatgpt service nomination demo the console view for your service appears, with functions, assets, environment variables, and dependencies in the left navigation, as well as a text editor and console to edit your code and track logs.
The first thing you need to do is set up your 11-digit phone number format philippines environment variables. Click environment variables in the bottom right. Twilio voice chatgpt service setup demo your twilio account sid and auth token are pre-populated as env variables, so all you need openai_api_keyto do is add your openai api key; the sample code refers to it as , so if you want to copy and paste without modification, make sure to name it the same.
Click add when you're done. Demo of adding twilio voice chatgpt environment variables now, you need to update our dependencies to include the openai npm module so that you can make requests to the openapi api. Click dependencies , then type in the moduleopenai text box and the version text box .
Don't forget to click add
-
- Posts: 16
- Joined: Sun Dec 22, 2024 4:47 am