{"id":17780188,"url":"https://github.com/malvads/whatsapp-gpt-bot","last_synced_at":"2026-05-06T06:38:35.055Z","repository":{"id":259514916,"uuid":"873784066","full_name":"malvads/whatsapp-gpt-bot","owner":"malvads","description":"WhatsApp GPT bot for doing weird stuff","archived":false,"fork":false,"pushed_at":"2024-10-29T18:49:00.000Z","size":372,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-14T12:13:25.119Z","etag":null,"topics":["bot","gpt","llama","node","nodejs","whatsapp","whatsapp-web"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/malvads.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-16T17:58:45.000Z","updated_at":"2024-10-29T18:49:05.000Z","dependencies_parsed_at":"2024-10-26T05:46:39.653Z","dependency_job_id":"161b9dc3-33cd-4690-ab22-ddb7bbcc3fb5","html_url":"https://github.com/malvads/whatsapp-gpt-bot","commit_stats":{"total_commits":13,"total_committers":3,"mean_commits":4.333333333333333,"dds":0.6153846153846154,"last_synced_commit":"ffdefebaa184f93104178e99cc06da5d6568a3cb"},"previous_names":["malvads/whatsapp-gpt-bot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malvads%2Fwhatsapp-gpt-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malvads%2Fwhatsapp-gpt-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malvads%2Fwhatsapp-gpt-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malvads%2Fwhatsapp-gpt-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/malvads","download_url":"https://codeload.github.com/malvads/whatsapp-gpt-bot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230785844,"owners_count":18279935,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bot","gpt","llama","node","nodejs","whatsapp","whatsapp-web"],"created_at":"2024-10-27T03:00:24.380Z","updated_at":"2025-10-30T07:34:25.027Z","avatar_url":"https://github.com/malvads.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WhatsApp GPT Bot\n\nRandom crap I decided to create instead of living life. This bot integrates GPT functionality with WhatsApp, allowing for various features.\n\n## Features\n\n- **Admin Panel**: Access the admin panel at `http://localhost:your_port` for real-time configuration.\n- **GPT Integration**: Uses Groq to provide GPT functionality and models remotely.\n- **Text-to-Speech (TTS)**: The bot can generate audio by preprocessing text using GPT, then converts it to speech to send voice messages back to users.\n- **Image generation**: The bot can generate images, it uses bing for it.\n\n## Admin Panel\n\n![Admin panel picture](assets/admin.png)\n\n## How to Use\n\n1. Open the admin panel and scan the QR code.\n2. You can find available commands in the `config.json` file.\n3. Ask any friend to send you a message using the bot name as prefix, for normal gpt response only name is required but for other actions words in config.json are required.\n\n## Installation\n\nFollow these steps to get project up and running:\n\n1. Clone the repository:\n\n```bash\ngit clone https://github.com/malvads/whatsapp-gpt-bot.git\n```\n\n2. Install node modules\n\n```bash\ncd whatsapp-gpt-bot \u0026\u0026 npm i\n```\n\n### Installation troubleshooting\n\nTo ensure proper installation, make sure you have the latest Visual C++ Build Tools installed. You can refer to the Node.js [node-gyp documentation](https://github.com/nodejs/node-gyp) for detailed instructions on installing the required tools.\n\n## Configuration\n\nBefore running the application, create an `.env` file in the same folder as the `start.sh` file with your API keys:\n\n```env\n# .env\nGROQ_API_KEY=\"API_KEY\"\nBING_COOKIE=\"API_KEY\"\n```\n\n1. **GROQ_API_KEY**: Replace this with your actual API key for the GROQ service.\n2. **BING_COOKIE**: Replace this with the `_U` cookie value from Bing. To obtain the `_U` cookie:\n\n- Open your browser (preferably Microsoft Edge).\n- Go to [Bing](https://www.bing.com/) and sign in with your Microsoft account.\n- Open Developer Tools (`F12` or `Ctrl + Shift + I`), and navigate to the \"Application\" or \"Storage\" tab.\n- Under \"Cookies,\" select `https://www.bing.com` and locate the `_U` cookie.\n- Copy the `_U` cookie value and use it as your BING_COOKIE.\n\n3. **chrome_path**: Specify the path to the Chrome executable on your system. Here’s how to find it:\n\n- **On Windows**: The default path is usually:\n\n```bash\nC:\\Program Files\\Google\\Chrome\\Application\\chrome.exe\n```\n\nIf you are using a 32-bit version of Chrome on a 64-bit system, it may be:\n\n```bash\nC:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe\n```\n\n- **On macOS**: The path is typically:\n\n```bash\n/Applications/Google Chrome.app/Contents/MacOS/Google Chrome\n```\n\n- **On Linux**: Common paths include:\n\n```bash\n/usr/bin/google-chrome\n```\n\n## Running the Application\n\nAfter configuring the keys, you can start the application with the following commands:\n\n1. Make the `start.sh` script executable:\n\n```bash\nchmod +x start.sh\n```\n\n2. Run the `start.sh` script:\n\n```bash\n./start.sh\nsh start.sh # on windows\n```\n\n## Cleaning the Application\n\nYou can clean temporary files, cache, and other unnecessary content using the `clean.sh` script.\n\n### Usage\n\n1. Ensure Execution Permissions: Before running the script, ensure it has the necessary permissions. Run the following command to make the script executable:\n\n```bash\nchmod +x clean.sh\n```\n\n2. Execute the Script: Run the script from the terminal:\n\n```bash\n./clean.sh\nsh clean.sh # on windows\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalvads%2Fwhatsapp-gpt-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmalvads%2Fwhatsapp-gpt-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalvads%2Fwhatsapp-gpt-bot/lists"}