whatsapp-ai-bot

whatsapp-ai-bot

支持多种AI模型的WhatsApp聊天机器人

这是一个开源的WhatsApp聊天机器人项目,集成了多种AI模型API。支持Gemini、Gemini-Vision、ChatGPT、DALL-E和Stability AI等AI模型,并允许创建自定义模型。项目提供详细文档和教程,便于AI爱好者和开发者快速部署使用。

WhatsApp AI BotAI模型聊天机器人API集成开源项目Github
<div align="center"> <h1> <img src="https://github.com/Zain-ul-din/whatsapp-ai-bot/assets/78583049/d31339cf-b4ae-450e-95b9-53d21e4641a0" width="35" height="35"/> WhatsApp AI Bot 🚀</h1> </div>

The WhatsApp AI Bot is a chatbot that uses AI models APIs to generate responses to user input. The bot supports several AI models, including Gemini, Gemini-Vision, CHAT-GPT, DALL-E, and Stability AI, and users can also create their own models to customize the bot's behavior.

<table align="center"> <thead> <tr> <th>♥ Sponsor</th> <th>💎 Bounty</th> <th>🚀 Deployment</th> </tr> </thead> <tbody> <tr> <td align="center"> <a href="https://buymeacoffee.com/zainuldin"> link </a> </td> <td align="center"> <a href="https://wa-ai-seven.vercel.app/feat-req"> link </a> </td> <td align="center"> <a href="https://wa-ai-seven.vercel.app/"> link </a> </td> </tr> </tbody> </table>

Table of Content

Demo

Gemini

Screenshot (1186)

Stability AI + Chat-GPT

image

Dalle + Custom Model

image

Usage

1. Download Source Code

git clone https://github.com/Zain-ul-din/WhatsApp-Ai-bot.git cd WhatsApp-Ai-bot

OR

2. Get API Keys

3. Add API Keys

  • create .env in the root of the project.

  • set following fields in .env file

 OPENAI_API_KEY=YOUR_OPEN_AI_API_KEY
 DREAMSTUDIO_API_KEY=YOUR_STABILITY_AI_API_KEY
 GEMINI_API_KEY=YOUR_GEMINI_API_KEY

4. Run the code

  • run setup.sh to start the bot.

  • Scan QR code.

Default Prefix

  • !gemini use gemini.
  • !gemini-vision use gemini-pro-vision model for images
  • !chatgpt use chat-gpt.
  • !dalle use Dalle.
  • !stable use Stability AI.
  • !bot use custom model.

Note! open src/whatsapp-ai.config.ts to edit config.

Docs Link

Tutorials

FQA

Disclaimer

This bot utilizes Puppeteer to operate an actual instance of Whatsapp Web to prevent blocking. However, it is essential to note that these operations come at a cost charged by OpenAI and Stability AI for every request made. Please be aware that WhatsApp does not support bots or unofficial clients on its platform, so using this method is not entirely secure and could lead to getting blocked.

Contributors

<a href="https://github.com/Zain-ul-din/WhatsApp-Ai-bot/graphs/contributors"> <img src="https://contrib.rocks/image?repo=Zain-ul-din/WhatsApp-Ai-bot" /> </a>

<!-- about -->

Sponsors

A big thank you to these people for supporting this project.

<table> <thead> <tr> <th> <img src="https://avatars.githubusercontent.com/u/47256157?v=4" width="150" height="150"/> </th> <th> <img src="https://avatars.githubusercontent.com/u/0?v=4" width="150" height="150"/> </th> </tr> </thead> <tbody> <tr> <td align="center"> <a target="_blank" href="https://github.com/levitco">Levitco</a> 💎 </td> <td align="center"> <a target="_blank" href="https://www.buymeacoffee.com/zainuldin">YOU?</a> </td> </tr> </tbody> </table>

About Us

<div align="center"> <h4 font-weight="bold">This repository is maintained by <a href="https://github.com/Zain-ul-din">Zain-Ul-Din</a></h4> <p> Show some ❤️ by starring this awesome repository! </p> </div> <div align="center"> <a href="https://www.buymeacoffee.com/zainuldin" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png" alt="Buy Me A Coffee" style="height: 41px !important;width: 174px !important;box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;" ></a> </div>

编辑推荐精选

SimilarWeb流量提升

SimilarWeb流量提升

稳定高效的流量提升解决方案,助力品牌曝光

稳定高效的流量提升解决方案,助力品牌曝光

Sora2视频免费生成

Sora2视频免费生成

最新版Sora2模型免费使用,一键生成无水印视频

最新版Sora2模型免费使用,一键生成无水印视频

Transly

Transly

实时语音翻译/同声传译工具

Transly是一个多场景的AI大语言模型驱动的同声传译、专业翻译助手,它拥有超精准的音频识别翻译能力,几乎零延迟的使用体验和支持多国语言可以让你带它走遍全球,无论你是留学生、商务人士、韩剧美剧爱好者,还是出国游玩、多国会议、跨国追星等等,都可以满足你所有需要同传的场景需求,线上线下通用,扫除语言障碍,让全世界的语言交流不再有国界。

讯飞绘文

讯飞绘文

选题、配图、成文,一站式创作,让内容运营更高效

讯飞绘文,一个AI集成平台,支持写作、选题、配图、排版和发布。高效生成适用于各类媒体的定制内容,加速品牌传播,提升内容营销效果。

AI助手热门AI工具AI创作AI辅助写作讯飞绘文内容运营个性化文章多平台分发
TRAE编程

TRAE编程

AI辅助编程,代码自动修复

Trae是一种自适应的集成开发环境(IDE),通过自动化和多元协作改变开发流程。利用Trae,团队能够更快速、精确地编写和部署代码,从而提高编程效率和项目交付速度。Trae具备上下文感知和代码自动完成功能,是提升开发效率的理想工具。

热门AI工具生产力协作转型TraeAI IDE
商汤小浣熊

商汤小浣熊

最强AI数据分析助手

小浣熊家族Raccoon,您的AI智能助手,致力于通过先进的人工智能技术,为用户提供高效、便捷的智能服务。无论是日常咨询还是专业问题解答,小浣熊都能以快速、准确的响应满足您的需求,让您的生活更加智能便捷。

imini AI

imini AI

像人一样思考的AI智能体

imini 是一款超级AI智能体,能根据人类指令,自主思考、自主完成、并且交付结果的AI智能体。

Keevx

Keevx

AI数字人视频创作平台

Keevx 一款开箱即用的AI数字人视频创作平台,广泛适用于电商广告、企业培训与社媒宣传,让全球企业与个人创作者无需拍摄剪辑,就能快速生成多语言、高质量的专业视频。

即梦AI

即梦AI

一站式AI创作平台

提供 AI 驱动的图片、视频生成及数字人等功能,助力创意创作

扣子-AI办公

扣子-AI办公

AI办公助手,复杂任务高效处理

AI办公助手,复杂任务高效处理。办公效率低?扣子空间AI助手支持播客生成、PPT制作、网页开发及报告写作,覆盖科研、商业、舆情等领域的专家Agent 7x24小时响应,生活工作无缝切换,提升50%效率!

下拉加载更多