MIT License

技术解读

以下内容由 GitRead 中文社区 编辑团队基于项目 README 与官方资料整理, 结合中文开发者的常见使用场景补充技术选型建议。具体以项目官方文档为准。

项目背景与痛点

个人助理聊天机器人 roshan9419/PersonalAssistantChatbot 是一款集合了个人助理功能的聊天机器人。它不仅能够完成许多与 Google Assistant 相同的任务,还加入了更多的个性化功能。这类工具的核心问题是用户希望获得无缝的人机交互体验,而现有工具往往在智能性和实用性方面存在局限。这款聊天机器人意在提供更智能、更个性化的交互体验,让用户能够轻松完成日常任务,提高工作效率和生活质量。

核心技术揭秘

该项目通过几个关键技术栈和设计模式,实现了灵活且高效的功能模块。下面我们将深入分析其技术架构,并展示一个数据流图来帮助理解其内部工作原理。

技术栈与设计模式

该项目采用了基于 Python 的开发环境,包括 Flask 作为核心 Web 框架来构建 HTTP 服务器,并利用 Flask-Restful 提供 API 接口。前端则使用了 WebSockets 进行实时通信,确保用户与机器人之间能够流畅互动。此外,NLP(自然语言处理)模块借助了 spaCy 库,以增强对用户输入信息的理解和解析能力。

数据流

graph TD A[用户请求] --> B{"参数校验"} B -->|"通过"| C[NLP 分析] C --> D[执行业务逻辑] D --> E[返回结果] B -->|"失败"| F[错误处理] F --> G[返回错误信息] E --> H[返回信息]

数据流从用户发起请求开始。这些请求首先经过参数校验,合格的数据进入 NLP 分析环节。NLP 分析结果用于指导后续业务逻辑的执行,最终处理结果和错误信息都会反馈给用户。

功能亮点与差异

该项目的亮点在于全面覆盖日常助手功能与高度集成的个性化设置。例如,它能够处理常见的人工智能助手功能,包括提醒、日程管理、天气查询等,同时提供了独特的个人化内容推送,如用户的饮食记录、常去地点的交通状况推送等。这些功能不仅提升用户体验,还增强了其在竞品中的竞争优势。

应用场景与落地建议

此种工具适用于多家企业环境,比如需要高效协调日常工作、持续跟踪数据并提供个性化服务的场景。在生产环境下部署时,开发者应关注数据安全与隐私保护,确保 NLP 模块能够妥善处理敏感信息。此外,要考虑公有云环境与私有部署的实施策略,以满足不同组织的架设需求。

综合评价

个人助理聊天机器人 roshan9419/PersonalAssistantChatbot 在功能多样性、智能化程度和个性化设计方面表现优秀。它不仅提供传统助手功能,还加入了不少创新点。然而,其数据处理能力和云部署成本是未来可以优化的地方。这使得它有望成为市场上的一款强力个人助手工具。

关于

GitHub 原始描述(英文)

It is a personal assistant chatbot, capable to perform many tasks same as Google Assistant plus more extra features...

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
225
价值分
92
活跃状态
活跃

语言占比

Python

Release

贡献者

README

PersonalAssistant

Made By Made With Love Awesome Open Source Love Stars Top Language Issues PR

It is an Personal Assistant, capable to perform many tasks with some unique features, that you haven’e seen yet…

alt text

Features / Tasks it can perform:

  1. Game (eg, Rock Paper Scissor with GUI)
  2. Search anything from wikipedia, google maps, etc
  3. Play video from YouTube
  4. Email Sender
  5. WhatsApp Message Sender
  6. COVID Tracker
  7. Weather
  8. Jokes
  9. News
  10. High Security (Face Unlock)
  11. Capture Photo
  12. Math Calculations
  13. Timer
  14. In-built search image display
  15. Smart Dictionary Search
  16. OS Info, Battery Info
  17. Window, Tab Operations
  18. Opening Websites
  19. File Operations (Creating Files)
  20. Web Automation (HTML Project)
  21. Coin Toss, Roll Dice
  22. Translator
  23. ToDo List
  24. Directions on Map
  25. Screenshots
  26. Volume Control

Modules Requirements and Installation:

pip install SpeechRecognition
pip install pyttsx3
pip install playsound
pip install Pillow
pip install pyscreenshot
pip install pynput
pip install psutil
pip install opencv-contrib-python
pip install opencv
pip install wikipedia
pip install webbrowser [Available with installer]
pip install bs4
pip install smtplib [Available with installer]
pip install youtube_search
pip install wmi
pip install geopy
pip install googletrans==3.1.0a0

Math Calculations

  • What is the binary of 142?
  • 2 + 4 - 3 x 9
  • Right shift 4
  • What is the value of factorial 10?
  • What is the value of Sin 90?
  • 9 power 5
  • what is the log of 1000

Files Creation

  • Create a empty file
  • Create a Python file
  • Create a Java file
  • Create a PowerPoint file

Web Automation (HTML Project)

  • Create a HTML project -> Project Name
    (It will create Empty Project for you with HTML, CSS and JavaScript file with some important codes)

Google Maps Directions

  • Give me directions -> Starting Location -> Destination Location

Email Sender

  • Send an email -> Receiver Email -> Subject -> Message

WhatsApp Sender

  • Send a whatsapp message -> Receiver Phone No -> Message

COVID Tracker

  • What is the covid statistics?
  • What are the total covid cases in Inida?
  • What are the total deaths due to coronavirus?
  • What are the symptoms of covid-19?
  • What precautions can we take from coronavirus?

Translator

  • Translate a sentence -> “Hello, how are you?” -> Hindi

Smart Dictionary

  • What is the definition of Machine Learning?
  • What is the meaning of Natural Language Processing?

Timer

  • Set a timer for 10 seconds
  • Set a timer for 2 minutes
  • Set a timer for 1 minute 10 seconds

ToDo List

  • Add an item to my list -> “This is my first Item in my list”
  • Show my list

OS Info

  • Give my System Information
  • What’s my battery life

Selfie / Photo Clicker

  • Take a Selfie
  • Click a Photo

Volume Control

  • Increase the Volume
  • Decrease the Volume
  • Mute the Volume
  • Full Volume

YouTube

  • Play Captain America Trailer on YouTube
  • Google I/O on YouTube

Image Result

  • Show the images of Robot
  • Show the images of Samosa

Wikipedia Result

  • Who is Sundar Pichai?
  • Who is Satya Nadella?
  • Artifical Intelligence on Wikipedia
  • Search for new technologies
  • Search for data structures and algorithms

Google Maps

  • India on Google Maps
  • Washington DC on Google Maps

Joke Teller

  • Tell me a joke
  • Tell me a funny joke

News

  • Give me some news
  • Get the latest news

Weather

  • What is the weather?

ScreenShot

  • Take a ScreenShot

Window Operations

  • Open Window
  • Close Window
  • Switch Window
  • Maximize/Minimize Window

Tab Operations

  • Create new tab
  • Switch Tab
  • Close tab

System Apps

  • Open Paint
  • Open Notepad
  • Open Calculator

Automatic Typer

  • Open Notepad -> Say type " I’m currently not typing the text which I’m saying right now "
  • Select All
  • Delete/Backspace
  • Save that
  • Press enter

Coin / Dice

  • Toss a coin
  • Roll a dice

Time / Date

  • What is the time?
  • What is the date today?

Voice Changer

  • Change your voice
  • Change your voice to Male/Female voice

Website Opener

  • Open GeekForGeeks
  • Open GitHub
  • Open CodeChef

Game

  • Let’s play a game
    • Rock Paper Scissor
    • Online Games

Smart Reply

  • How are you?
  • Who are you?
  • Tell me something
  • When is your birthday?
  • You’re so funny
  • Thank You
  • I’m sorry

To get started, run SECURITY.py file to register your face and to use it…

Watch the demo here 👇👇👇

https://www.youtube.com/watch?v=tbw7VyBGSw0

Common Installation Issues

pyaudio not installing  
  1. Download the pyaudio wheel version from https://www.lfd.uci.edu/~gohlke/pythonlibs/ (eg, if you have python version 3.7, download the file containing cp37)
  2. Install it using (eg, pip install PyAudio‑0.2.11‑cp37‑cp37m‑win_amd64.whl)

(USE PYTHON <= 3.8 WHICH SUPPORTS ALL THE LIBRARIES) Raise an Issue ticket if you have any other problems


Only Chatbot

If you want only Chatbot and no face recognition then, download it from here:
https://drive.google.com/file/d/1h-v6Ub5E2BMy6LTgl398lmoTlhr0KWvj/view?usp=sharing

Let’s contribute together and make this chatbot to be more advanced AI Chatbot 🧐

Authors

roshan9419

See also the list of contributors who have participated in this project.

License

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

评论

暂无评论