This project integrates OpenAI's language model with Twilio's communication APIs using Node.js and WebSocket. It allows real-time communication and AI-driven responses.
- Real-time messaging with WebSocket
- AI-driven responses using OpenAI
- Integration with Twilio for SMS and voice communication
- Node.js installed
- Twilio account and API credentials
- OpenAI API key
-
Clone the repository:
git clone https://github.com/yourusername/voice-ai-agent.git cd voice-ai-agent -
Install dependencies:
npm install
-
Create a
.envfile and add your credentials:TWILIO_ACCOUNT_SID=your_twilio_account_sid TWILIO_AUTH_TOKEN=your_twilio_auth_token OPENAI_API_KEY=your_openai_api_key
-
Start the server:
npm start
-
Connect to the WebSocket server at
ws://localhost:3000. -
Send messages and receive AI-driven responses.
Contributions are welcome! Please open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
For questions or support, please contact yourname@example.com.