Divi AI — Your Intelligent Assistant

Inspiration

We wanted to build an accessible, beautifully designed AI assistant that bridges the gap between casual curiosity and structured learning. Whether a student needs help breaking down difficult school subjects, a creator needs inspiration for a new project, or a curious mind wants up-to-date answers from the web, Divi AI provides a clean, fast, and personalized digital workspace.

What It Does

  • Real-time AI Web Search: Answers user queries with structured, up-to-date information and verified web sources.
  • Full-Stack User Authentication: Supports account creation, login, session status checks, and secure logout.
  • Isolated User Chat History: Automatically saves and loads chat conversations in local storage keyed specifically to each logged-in user account, ensuring complete privacy between users.
  • Responsive Multi-Page UI: Includes an interactive landing page, features overview, about section, contact view, and a dedicated sidebar-driven chat workspace.

How We Built It

  • Frontend: Built with HTML5, custom CSS3, and modern vanilla JavaScript. Hosted on GitHub Pages.
  • Backend: Built with Python and Flask, handling web-search API requests, user authentication, password hashing (werkzeug.security), and session management. Hosted on Render.
  • Database: SQLite database (users.db) for secure user account storage.
  • Video Demo: Screen recorded and edited using CapCut.

Challenges We Ran Into

  • Cross-Origin Authentication: Resolving CORS headers and cookie/session handling across separate domains (GitHub Pages frontend and Render backend).
  • Per-User State Management: Re-architecting the frontend chat storage system so that switching user accounts cleanly segregates and loads only the active user's conversation history without data leakage.

Accomplishments We're Proud Of

  • Creating a clean, cohesive user interface that rivals modern commercial AI applications.
  • Successfully integrating real-time web search capabilities directly into the conversational flow.
  • Building a reliable full-stack authentication system from scratch.

What We Learned

  • Deepened our understanding of full-stack session management, CORS configuration across modern browser environments, and user-centric frontend state handling.

What's Next for Divi AI

  • Adding native voice recognition and speech synthesis.
  • Adding file upload and document analysis support.
  • Enabling multi-device cloud chat history synchronization.

Built With

  • html/css/javascript
Share this project:

Updates