{"id":27111923,"url":"https://github.com/codesaadumair/faq-bot-cli","last_synced_at":"2026-04-30T14:36:21.922Z","repository":{"id":286421051,"uuid":"961356802","full_name":"CodeSaadUmair/faq-bot-cli","owner":"CodeSaadUmair","description":"A conversational CLI FAQ bot built with LangGraph and fuzzy matching. Answers common questions based on a JSON dataset.","archived":false,"fork":false,"pushed_at":"2025-04-06T10:52:37.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-06T11:29:18.389Z","etag":null,"topics":["chatbot","faq-bot","fuzzy-matching","fuzzywuzzy","json","langgraph","python"],"latest_commit_sha":null,"homepage":"","language":"Python","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/CodeSaadUmair.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":"2025-04-06T10:50:04.000Z","updated_at":"2025-04-06T10:55:35.000Z","dependencies_parsed_at":"2025-04-06T11:41:24.844Z","dependency_job_id":null,"html_url":"https://github.com/CodeSaadUmair/faq-bot-cli","commit_stats":null,"previous_names":["codesaadumair/faq-bot-cli"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeSaadUmair%2Ffaq-bot-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeSaadUmair%2Ffaq-bot-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeSaadUmair%2Ffaq-bot-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeSaadUmair%2Ffaq-bot-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodeSaadUmair","download_url":"https://codeload.github.com/CodeSaadUmair/faq-bot-cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247575664,"owners_count":20960815,"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":["chatbot","faq-bot","fuzzy-matching","fuzzywuzzy","json","langgraph","python"],"created_at":"2025-04-07T01:25:20.834Z","updated_at":"2026-04-30T14:36:21.849Z","avatar_url":"https://github.com/CodeSaadUmair.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📝 FAQ Bot (CLI) with LangGraph \u0026 Fuzzy Matching\n\nA simple command-line FAQ bot built using LangGraph and fuzzy matching. It allows users to interact with a predefined set of FAQs in a conversational manner. The bot uses fuzzy logic to match user input even with slight spelling variations or case mismatches.\n\n---\n\n## 🚀 Features\n\n- Conversational CLI interaction 🤖  \n- Fuzzy matching of questions 🔍  \n- Loads questions from an editable JSON file 📁  \n- Custom bot name using environment variables 🔐  \n- Lightweight, fast, and offline-capable 🏃‍♂️  \n\n---\n\n## 🛠️ Tech Stack\n\n- **Python**\n- **LangGraph**\n- **FuzzyWuzzy**\n- **python-dotenv**\n- **json**\n\n---\n\n## 📁 FAQ Data Format\n\nFAQs are stored in a separate JSON file (`faq_data.json`) like this:\n\n```json\n[\n  {\n    \"question\": \"What is LangGraph?\",\n    \"answer\": \"LangGraph is a framework for building stateful AI agents using graphs.\"\n  },\n  {\n    \"question\": \"How do I run this bot?\",\n    \"answer\": \"Just activate your virtual environment and run python faq_bot.py.\"\n  }\n]\n```\n\n---\n\n## 🔐 Environment Setup\n\nStore your database credentials in a `.env` file:\n\n```env\nBOT_NAME=LangFAQBot\n```\n\n\u003e **Important:** The `.env` file is excluded via `.gitignore` to keep credentials secure.\n\n## 📦 Installation\n\n### Clone this repository\n\n```bash\ngit clone https://github.com/CodeSaadUmair/faq-bot-cli.git\ncd faq-bot-cli\n```\n\n### Create virtual environment\n```bash\npython -m venv envo\nsource envo/bin/activate  \n```\n###### or on Windows\n```\npython -m venv envo\nenvo\\Scripts\\activate \n```\n\n### Install dependencies\n```\npip install -r requirements.txt\n```\n\n### Run the app\n```\npython faq_bot.py\n```\n\n## 📌 Sample Questions\n- how do I update my profile information?\n- update my profil\n- do you ship internationally?\n- how can I reset my password?\n- reset my password\n\n\n## ✅ To-Do / Future Improvements\n- Add persistent logging of user queries 📜\n- Integrate OpenAI for fallback answers 🤯\n- Add a web UI using Flask or Streamlit 🌐\n- FAQ categories or topic filters 🗂️\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodesaadumair%2Ffaq-bot-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodesaadumair%2Ffaq-bot-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodesaadumair%2Ffaq-bot-cli/lists"}