kuschanton / call-gpt

Call a number to talk with Chat GPT powered by Twilio
8 stars 2 forks source link

Few Questions #3

Open realaidynamics opened 6 months ago

realaidynamics commented 6 months ago

How would I change the voice for the output response on twilio, I can change the voice for the introduction message but after the call-gpt receives the input it responds with the same voice as before. Also, how would i implement a custom gpt api key to this that has documenetation on a buisness so that when a caller asks company specific questions it would be able to answer.

kuschanton commented 6 months ago

Hello @realaidynamics, you can change the voice of GPT response in the say_play_3 widget in Studio. Implementing context can be done in different ways, but it has be done externally to Twilio in the backend. There is a ton of examples on internet of how it can be done using different libraries, like for example Langchain here: https://python.langchain.com/docs/modules/data_connection/document_loaders/

realaidynamics commented 6 months ago

Thanks, how should i go about integrating things like langchain into this code. this repo looks pretty good (https://github.com/techleadhd/chatgpt-retrieval/blob/main/chatgpt.py) from what I've found but I don't know how to implement it will call-gpt.

kuschanton commented 6 months ago

I'm happy to give you a direction, but the actual integration of langchain is beyond what this blogpost/repository is about :)