Skip to content

samimshoaib01/AI_Chat_bot

Repository files navigation

AI Chatbot Chrome Extension for maang.in

image

I got issue(renamed it) while pushing repo to github .It became mess so i started working with the backup files. Hoping this will be evaluated. Demo_video :: https://youtu.be/bIunA-yyYhY

Overview

This Chrome extension integrates an AI-powered chatbot into the maang.in website, providing users with context-aware assistance for coding problems. The extension seamlessly blends with the site’s UI and offers a range of interactive features to enhance the user experience.

Features

  • Context-Aware Problem Details Extraction: Extracts all relevant details of the problem for context.
  • User Code Extraction: Retrieves user code from local storage.
  • Integrated 'Ask AI' Button: Beautifully integrated button that blends seamlessly with the website's design.
  • Interactive Chat: Engaging and interactive chat experience.
  • Single Prompt Submission: The prompt is sent only once; subsequent interactions directly call the API.
  • Hint and Editorial Extraction: Extracts hints and editorial code that aren't part of the DOM.
  • Chat Storage: Stores chat history for easy access and reference.
  • Organized Code Display: Displays codes in an organized manner within the chatbox.
  • Copy Code Button: Provides a convenient copy button for AI-generated code.
  • Dark Mode Integration: Seamlessly integrates with the site's dark mode.
  • Delete Chat History: Allows users to delete chat history.
  • UI Consistency: User interface designed to match the site's aesthetics.
  • Hover and Focus Effects: Adds hover and focus effects at the chatbox input.
  • Enter Key Support: Supports the Enter key for submitting input in the chatbox.
  • Separate Files for Scraping and Prompts: Uses separate files for scraping (scrape.js) and prompt generation (prompt.js).

Installation

  1. Clone the repository:
    https://github.com/samimshoaib01/AI_Chat_bot
  2. Navigate to the extension directory:
    cd AI_Chat_bot
  3. Open Chrome and go to chrome://extensions/.
  4. Enable "Developer mode" using the toggle switch in the top right corner.
  5. Click the "Load unpacked" button and select the extension directory.

Usage

  1. Navigate to the maang.in website.
  2. Click the 'Ask AI' button integrated into the site to open the chatbox.
  3. Interact with the chatbot to get context-aware assistance and solutions for coding problems.
  4. API keys are hard coded. If expired the this can be changed to AIzaSyBNT2rFCKyh7E-GNpJ6h0lqyjn0Q-kgcoE

Contributing

Feel free to fork this repository and submit pull requests. Contributions are welcome!

License

This project is licensed under the MIT License. See the LICENSE file for details.

Author

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors