This is a simple FAQ Chatbot built using the Gemini API.
It is designed to answer frequently asked questions automatically by leveraging AI. The bot processes user input, matches it with a predefined FAQ knowledge base, and provides accurate responses.
- Handles user queries with real-time responses.
- Uses a FAQ knowledge base for predefined questions and answers.
- Includes a decision logic/escalation system for unrecognized queries.
- Easy to extend by adding new questions or modifying existing ones.
main.py: Contains the main chatbot code and execution loop.faq_list.py: Stores the FAQ questions and answers.requirements.txt: Lists all dependencies required to run the bot..gitignore: Ignores unnecessary files like virtual environments.
- Clone the repository:
git clone https://github.com/Namrahawan/FAQ-Chatbot.git
- Project folder created
- Initial files created
- Virtual environment set up
- Installed Python version 3.14
- Installed Google Cloud SDK for API access
- Created project folder in VS Code
- Created initial files for the project
-
Open terminal (CMD) in project folder
-
Create virtual environment:
python -m venv venv
- .\venv\Scripts\Activate.ps1
- if this Error occur "Running script is not allowed" then Run this command Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned
- Then again run .\venv\Scripts\Activate.ps1 this command.
- pip install python-dotenv