This project integrates Twilio Voice with OpenAI's language models using Golang. It enables AI-powered voice interactions, allowing for intelligent phone call handling, voice-based chatbots, or automated customer service systems.
- Seamless integration of Twilio Voice API and OpenAI's GPT models
- Real-time speech-to-text and text-to-speech conversion
- Dynamic conversation flow based on AI responses
- Customizable AI personality and knowledge base
- Scalable architecture for handling multiple concurrent calls
- Go 1.16 or higher
- Twilio account and API credentials
- OpenAI API key
-
Clone the repository:
git clone https://github.com/shakibhasan09/twilio-voice-openai.git cd twilio-voice-openai
-
Install dependencies:
go mod tidy
-
Set up environment variables:
cp .env.example .env
-
Start the server:
go run main.go
-
Configure your Twilio phone number to point to your server's webhook URL.
-
Make a call to your Twilio number to interact with the AI-powered voice system.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
If you have any questions or feedback, please open an issue on this repository or contact me at [email protected]