🧠 Smart WhatsApp Replies Using ChatGPT API – AI Chrome Extension
A lightweight, AI-powered Chrome Extension that helps you reply faster and smarter on WhatsApp Web using
ChatGPT (GPT-4.1-mini) from OpenAI.
🚀 How to Use
-
Install the extension from the
Chrome Web Store.
- Click the extension icon (top-right of your Chrome toolbar).
-
Enter your OpenAI API key (starts with
sk-
).
You can get your API key here:
Make sure the key is correct — the extension will validate it automatically.
- Open WhatsApp Web: https://web.whatsapp.com
- The assistant will automatically appear in the bottom-right corner when a new message arrives.
- Click one of the 3 AI-generated replies to insert it into the message input box.
🔍 What It Does
This extension detects new incoming messages on WhatsApp Web and instantly suggests 3 AI-generated, short and friendly replies.
It supports both Roman and native scripts for over 20 Indian and international languages, making your conversations quicker and more expressive — especially when chatting across languages.
✨ Key Features
- ✅ Real-time detection of new WhatsApp messages
- 🧠 Smart replies generated using OpenAI's GPT-4.1-mini
- 🌐 Multi-language support with auto-detection and transliteration
- 😊 Emoji toggle to include or exclude emotion
- 📌 “Force language” mode to always respond in your selected language/script
- 🧲 Draggable, floating UI that works directly inside WhatsApp Web
- 🧑 Optional name personalization: Set your name to make replies feel more human in greetings
- 🔐 OpenAI API key is securely stored and validated in your browser
💡 Use Cases
- ✅ Reply to friends, clients, or customers in their preferred language
- ✅ Speed up common replies like “Sure!”, “Coming now”, “On it”, “Call you later”
- ✅ Communicate more naturally in your local script or Romanized format
🌐 Language Support
This extension supports smart, multilingual replies in both Roman and native scripts. It automatically detects the input language and can respond accordingly, with an option to force replies in a preferred language/script.
🇮🇳 Indian Languages
বাংলা (Bengali)
हिन्दी (Hindi)
தமிழ் (Tamil)
తెలుగు (Telugu)
ಕನ್ನಡ (Kannada)
ગુજરાતી (Gujarati)
मराठी (Marathi)
ਪੰਜਾਬੀ (Punjabi)
മലയാളം (Malayalam)
ଓଡ଼ିଆ (Odia)
🌍 International Languages
English
Español (Spanish)
Deutsch (German)
Français (French)
Português (Portuguese)
Italiano (Italian)
العربية (Arabic)
Русский (Russian)
中文 (Chinese)
日本語 (Japanese)
한국어 (Korean)
Türkçe (Turkish)
Nederlands (Dutch)
🛠️ Tech Stack
- 💬 OpenAI ChatGPT (GPT-4.1-mini) for response generation
- 🌐 Chrome Extension APIs (`manifest v3`, `content scripts`, `storage`, `fetch`)
- ⚙️ Vanilla JavaScript, HTML5, and CSS3 — no frameworks required
🗒️ Planned Features / To-Do
🚀 Auto-send toggle
Automatically send selected replies without manual clicking.
🧠 GPT model selector (e.g. gpt-3.5, gpt-4-mini)
Choose your preferred model based on performance or cost.
⚙️ Dedicated extension settings page
Manage all preferences from a central place.
⛔ Disable floating assistant
Pause the UI and stop OpenAI API usage when not needed.
📊 Token usage tracker
Track how many tokens your replies use via OpenAI API.
🔒 Token cap limit
Optional safeguard to avoid accidental overuse.
📏 Chat depth control
Allow users to set how many past messages are included in the context.
☕ Support My Work
If you found this project helpful, consider buying me a coffee: