Skip to content

Namrahawan/FAQ-Chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FAQ Chatbot Using Gemini API

Overview

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.

Features

  • 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.

Project Structure

  • 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.

How to Run

  1. Clone the repository:
    git clone https://github.com/Namrahawan/FAQ-Chatbot.git

FAQ Bot Project - Initial Setup

Project Status

  • Project folder created
  • Initial files created
  • Virtual environment set up

Step-by-Step Setup

Step 1: Python Installation

  • Installed Python version 3.14

Step 2: Google Cloud SDK

  • Installed Google Cloud SDK for API access

Step 3: Project Folder & Files

  • Created project folder in VS Code
  • Created initial files for the project

Step 4: Virtual Environment Setup

  1. Open terminal (CMD) in project folder

  2. Create virtual environment:

    python -m venv venv

Step 4: Virtual Environment Activation

  1. .\venv\Scripts\Activate.ps1
  2. if this Error occur "Running script is not allowed" then Run this command Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned
  3. Then again run .\venv\Scripts\Activate.ps1 this command.

python-dotenv package installed for env file

  1. pip install python-dotenv

About

FAQ Chatbot using Gemini API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages