ConvoServe: AI-Powered Phone Chatbot for Effortless Business Data Retrieval
What Inspired Us
We noticed that businesses often struggle to quickly retrieve and update their databases using traditional interfaces. Inspired by AI-powered assistants, we built ConvoServe: a chatbot that allows users to seamlessly query and update a company's MongoDB database via a simple phone call, ensuring controlled yet accessible business data management.
What We Learned
- How to integrate OpenAI API into a real-world business application.
- The importance of database security when allowing AI-generated modifications.
- Effective state management in React for handling form inputs and API responses.
- Best practices for API authentication and role-based access control.
How We Built The Project
Backend:
- Developed using Node.js and Express.js for RESTful API endpoints.
- Used MongoDB to store and manage company and agent data.
- Implemented JWT authentication for secure access control.
- Developed using Node.js and Express.js for RESTful API endpoints.
AI Chatbot:
- Integrated OpenAI's Realtime API to generate audio responses dynamically.
- Integrated VoIP provider (Twilio) for real-time phone-based interactions.
- Designed prompts to enable the chatbot to interpret and act on user queries.
- Ensured structured responses that align with business database operations.
- Integrated OpenAI's Realtime API to generate audio responses dynamically.
Frontend:
- Built with React + TypeScript for a modern and responsive UI.
- Utilized HeroUI components for a clean, user-friendly experience.
- Implemented React Router for seamless navigation.
- Built with React + TypeScript for a modern and responsive UI.
Challenges We Faced
- Audio streaming redirection to web socket: Ensuring VoIP audio is transmitted back and forth to the OpenAI-realtime API.
- Token-based authentication: Managing JWT tokens for secure login and session persistence.
- Database updates via AI: Ensuring structured and accurate updates to MongoDB using OpenAI-generated responses.
- CORS issues: Debugging frontend-backend communication problems when making API requests.
- User interactions: Handling both free-form AI responses and structured database queries in a single interface.
Future Improvements
- Enhance AI capabilities to understand more complex queries, including write and delete operations.
- Implement robust input validation, role-based permissions, and AI response filtering to prevent malicious users from executing application-breaking queries through the phone.
- Optimize MongoDB queries for faster and more efficient data retrieval.
- Improve UI/UX with real-time chatbot feedback and analytics.
Built With
- css
- html
- javascript
- node.js
- openai-realtime
- react
- twilio
- typescript
- voip
Log in or sign up for Devpost to join the conversation.