Inspiration

The inspiration for NeuroNudge came from the need to enhance real-time communication by providing users with AI-driven suggestions for crafting engaging and persuasive messages. Whether it’s for romantic conversations or playful banter, I wanted to create a tool that empowers users to communicate more effectively while having fun.


What it does

NeuroNudge is an interactive chat application where two users can converse in real time. For one user (User 2), the app provides AI-generated flirty and playful suggestions to help them craft persuasive and engaging responses. Each suggestion comes with a "convince percentage," indicating how effective the response might be. The app dynamically updates suggestions based on the most recent message, ensuring relevance and creativity.


How we built it

  • Frontend: Designed an intuitive interface using HTML, CSS, and JavaScript. The layout features two tablets—one for each user—with a sleek dark theme and glowing effects.
  • Backend: Built a Flask server to handle API requests and integrate with the Groq API for generating AI-driven suggestions.
  • AI Integration: Used the Groq API to analyze messages and generate context-aware, flirty responses in real time.
  • Dynamic Updates: Implemented JavaScript functions to update chat messages and suggestions dynamically without requiring page reloads.

Challenges we ran into

  1. Parsing API Responses: Ensuring consistent formatting of AI-generated suggestions required robust regex parsing and fallback mechanisms.
  2. Real-Time Updates: Synchronizing chat messages and suggestions in real-time was challenging but resolved with asynchronous JavaScript.
  3. API Key Security: Initially hardcoded the API key, which posed a security risk. Switched to environment variables for better protection.
  4. Design Constraints: Balancing aesthetics with usability took significant effort, especially when refining the tablet layout and responsiveness.

Accomplishments that we're proud of

  • Successfully integrated AI into a real-time chat application, creating a seamless user experience.
  • Designed a visually appealing and functional interface that enhances engagement.
  • Built a robust backend capable of handling dynamic requests and parsing complex API responses.
  • Achieved a fully functional prototype that works as intended without requiring additional credits or resources.

What we learned

  1. Frontend-Backend Integration: Gained hands-on experience connecting a Flask backend with a dynamic frontend.
  2. AI-Powered Applications: Learned how to structure prompts for large language models and parse their responses effectively.
  3. Debugging Skills: Developed critical problem-solving skills by debugging issues between the frontend, backend, and API.
  4. User-Centric Design: Focused on creating an interface that is both visually appealing and easy to use.

What's next for NeuroNudge

  • Multi-Language Support: Expand the app to support multiple languages, making it more inclusive.
  • Customization Options: Allow users to customize the tone of suggestions (e.g., formal, casual, humorous).
  • Real-Time Messaging: Introduce WebSockets for instant message delivery and smoother interactions.
  • Mobile Responsiveness: Optimize the design for smaller screens to make the app accessible on mobile devices.
  • Enhanced AI Models: Experiment with different AI models to improve the quality and variety of suggestions.

Built With

Share this project:

Updates