Skip to content

Intellia is a smart virtual AI assistant that leverages advanced artificial intelligence to automate tasks, deliver personalized support, and boost efficiency.

Notifications You must be signed in to change notification settings

its-pratyushpandey/Intellia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

42 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ€– MyAssistant - Professional AI Assistant

A sophisticated full-stack AI assistant application built using the MERN stack, delivering advanced voice interactions, intelligent responses, and a suite of smart services tailored for professional and personal productivity.


πŸš€ Features

🧠 AI Capabilities

  • Advanced Conversational AI: Seamless conversations powered by Google Gemini.
  • Voice Recognition & Speech Synthesis: Natural and responsive voice interactions.
  • Multi-language Support: Communicate in multiple languages and dialects.
  • Context-Aware Responses: Maintains context for smarter replies.
  • Personality Customization: Adjustable AI personality to suit your preferences.

🌟 Smart Services

  • Weather Integration: Real-time weather updates and forecasts.
  • News Feed: Stay updated with the latest news across categories.
  • Email Management: Mock email interface for demonstration.
  • Smart Home Dashboard: Virtual controls for smart home devices.
  • Advanced Analytics: Gain insights into user interactions.

🎨 Professional UI/UX

  • Modern Design: Glassmorphism effects and smooth animations.
  • Responsive Layout: Fully optimized for all device sizes.
  • Dark Theme: Experience a sleek and professional dark mode.
  • Interactive Dashboard: Comprehensive and intuitive control center.
  • Voice Visualizations: Real-time indicators for voice activity.

πŸ”’ Security & Performance

  • JWT Authentication: Secure user authentication.
  • Rate Limiting: API protection against abuse.
  • Input Validation: Comprehensive data validation to enhance security.
  • Error Handling: Graceful and user-friendly error management.
  • Security Headers: Production-ready security measures.

πŸ›  Tech Stack

Frontend

  • React 19: Leveraging the latest features of React.
  • Vite: Fast build tool and development server.
  • Tailwind CSS: Utility-first CSS framework for rapid styling.
  • Framer Motion: Advanced animations for a polished UI.
  • Axios: HTTP client for API requests.
  • React Router: Efficient client-side routing.

Backend

  • Node.js: Robust JavaScript runtime environment.
  • Express.js: Lightweight and flexible web application framework.
  • MongoDB: NoSQL database with Mongoose ODM.
  • JWT: JSON Web Token for secure authentication.
  • Cloudinary: Cloud-based image upload and management.
  • Natural: Natural language processing library.
  • Helmet: Security middleware for enhanced protection.

AI & External Services

  • Google Gemini AI: Advanced conversational AI model.
  • OpenWeatherMap API: Real-time weather data (optional).
  • Web Speech API: Voice recognition and synthesis.

πŸ“¦ Project Structure

MyAssistant/
β”œβ”€β”€ backend/                 # Node.js backend
β”‚   β”œβ”€β”€ config/             # Configuration files
β”‚   β”œβ”€β”€ controllers/        # Route controllers
β”‚   β”œβ”€β”€ middlewares/        # Custom middleware
β”‚   β”œβ”€β”€ models/             # Database models
β”‚   β”œβ”€β”€ routes/             # API routes
β”‚   β”œβ”€β”€ services/           # Business logic services
β”‚   β”œβ”€β”€ public/             # File uploads
β”‚   β”œβ”€β”€ .env.example        # Environment template
β”‚   β”œβ”€β”€ README.md           # Backend documentation
β”‚   └── package.json        # Backend dependencies
β”œβ”€β”€ frontend/                # React frontend
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ components/     # Reusable components
β”‚   β”‚   β”œβ”€β”€ pages/          # Page components
β”‚   β”‚   β”œβ”€β”€ context/        # React context API
β”‚   β”‚   β”œβ”€β”€ assets/         # Static assets
β”‚   β”‚   └── styles/         # CSS styles
β”‚   β”œβ”€β”€ public/             # Public assets
β”‚   └── package.json        # Frontend dependencies
β”œβ”€β”€ FEATURES.md             # Detailed features documentation
β”œβ”€β”€ .gitignore              # Git ignore rules
└── README.md               # This file

πŸš€ Quick Start

Prerequisites

  • Node.js (>=18.0.0)
  • MongoDB database (local or Atlas)
  • Git version control

Installation

  1. Clone the repository

    git clone https://github.com/its-pratyushpandey/MyAssistant.git
    cd MyAssistant
  2. Setup Backend

    cd backend
    npm install
    cp .env.example .env
    # Edit .env with your configuration
    npm run dev
  3. Setup Frontend (in a new terminal)

    cd frontend
    npm install
    npm run dev
  4. Access the application

Environment Configuration

Create a .env file in the backend directory:

# Required
MONGODB_URL=your_mongodb_connection_string
JWT_SECRET=your_jwt_secret_key
GEMINI_API_URL=your_gemini_api_url_with_key
CLOUDINARY_CLOUD_NAME=your_cloudinary_cloud_name
CLOUDINARY_API_KEY=your_cloudinary_api_key
CLOUDINARY_API_SECRET=your_cloudinary_api_secret

# Optional
WEATHER_API_KEY=your_weather_api_key
NODE_ENV=development
PORT=8000

πŸ“± Usage Guide

Getting Started

  1. Sign Up: Create a new account.
  2. Customize Assistant: Choose an AI avatar and name.
  3. Configure Settings: Adjust voice and AI preferences.
  4. Start Chatting: Use voice or text to interact.

Voice Commands

  • "Hey [Assistant Name]": Wake up the assistant.
  • Weather queries: "What's the weather like?"
  • General questions: Ask anything you want to know.
  • System controls: "Open dashboard", "Show features".

Dashboard Features

  • Weather Widget: Current weather and 5-day forecast.
  • News Feed: Latest news from various categories.
  • Email Interface: Mock email management.
  • Smart Home: Virtual device controls.
  • Analytics: Usage statistics and insights.

πŸ”§ Development

Backend Development

cd backend
npm run dev          # Start development server
npm start            # Start production server
npm test             # Run tests (when available)

Frontend Development

cd frontend
npm run dev          # Start development server
npm run build        # Build for production
npm run preview      # Preview production build

API Documentation

  • Health Check: GET /api/health
  • API Docs: GET /api/docs
  • Authentication: POST /api/auth/signup, POST /api/auth/signin
  • User Operations: GET /api/user/current, POST /api/user/update
  • AI Chat: POST /api/user/asktoassistant

🌐 Deployment

Backend Deployment

  1. Set NODE_ENV=production.
  2. Configure the production MongoDB URL.
  3. Set strong JWT secrets.
  4. Deploy to your preferred platform (Heroku, Railway, Render, etc.).

Frontend Deployment

  1. Update the API URL for production.
  2. Build the project: npm run build.
  3. Deploy to Vercel, Netlify, or a similar platform.

🀝 Contributing

  1. Fork the repository.
  2. Create a feature branch: git checkout -b feature/amazing-feature.
  3. Commit your changes: git commit -m 'Add amazing feature'.
  4. Push to the branch: git push origin feature/amazing-feature.
  5. Open a Pull Request.

πŸ“„ License

This project is licensed under the ISC License - see the LICENSE file for details.


πŸ‘¨β€πŸ’» Author

Pratyush Pandey


πŸ™ Acknowledgments

  • Google Gemini AI for intelligent responses.
  • OpenWeatherMap for weather data.
  • Cloudinary for image management.
  • MongoDB for database services.
  • All open-source contributors.

πŸ“ž Support

For support and questions:


⭐ Star this repository if you found it helpful!

About

Intellia is a smart virtual AI assistant that leverages advanced artificial intelligence to automate tasks, deliver personalized support, and boost efficiency.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages