{"id":27253673,"url":"https://github.com/pragati-chaturvedi/libbot","last_synced_at":"2026-07-10T05:31:46.419Z","repository":{"id":284249503,"uuid":"899290168","full_name":"pragati-chaturvedi/LibBot","owner":"pragati-chaturvedi","description":"A Python-based project integrating OpenAI's ChatGPT API with Google Sheets for dynamic data handling and manipulation. Features a context-aware chatbot built using Flask that allows natural language interactions to manage library inventory data in real time.","archived":false,"fork":false,"pushed_at":"2025-03-24T22:55:29.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-27T07:02:47.407Z","etag":null,"topics":["ai-chatbots","chatgpt","flask-application","google-sheets-api","large-language-models","natural-language-processing","openai-api","openai-function-calling"],"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/pragati-chaturvedi.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":"2024-12-06T01:06:31.000Z","updated_at":"2025-07-23T16:42:29.000Z","dependencies_parsed_at":"2025-03-24T23:39:35.347Z","dependency_job_id":null,"html_url":"https://github.com/pragati-chaturvedi/LibBot","commit_stats":null,"previous_names":["pragati-chaturvedi/libbot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pragati-chaturvedi/LibBot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pragati-chaturvedi%2FLibBot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pragati-chaturvedi%2FLibBot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pragati-chaturvedi%2FLibBot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pragati-chaturvedi%2FLibBot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pragati-chaturvedi","download_url":"https://codeload.github.com/pragati-chaturvedi/LibBot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pragati-chaturvedi%2FLibBot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35322488,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-10T02:00:06.465Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["ai-chatbots","chatgpt","flask-application","google-sheets-api","large-language-models","natural-language-processing","openai-api","openai-function-calling"],"created_at":"2025-04-11T02:00:37.844Z","updated_at":"2026-07-10T05:31:46.390Z","avatar_url":"https://github.com/pragati-chaturvedi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ChatGPT Google Sheets Integration Bot\n\nThis repository contains a Python-based chatbot that integrates OpenAI's ChatGPT API with Google Sheets for dynamic data handling and manipulation. The bot enables natural language commands to manage a library inventory system, including listing, searching, updating, and managing books in real-time. It leverages **function-calling** to interact with Google Sheets and perform specific tasks like adding a book, checking availability, and updating book status.\n\n## Features\n- **Natural Language Interaction**: Users can interact with the bot to perform various tasks using plain language.\n- **Google Sheets Integration**: Real-time updates and data management directly in Google Sheets.\n- **Context-Aware Conversations**: Maintains context for smooth and intuitive interactions.\n- **Function Calling**: The chatbot dynamically calls specific functions such as adding a book, searching for books, updating inventory, etc., based on the user's requests.\n- **Modular Codebase**: Clean, extensible Python architecture using Flask and OpenAI API for better scalability.\n\n## Tech Stack\n- **Python**: Backend logic and data manipulation.\n- **Flask**: Web framework for the chatbot interface.\n- **OpenAI API**: Conversational AI for natural language understanding.\n- **Google Sheets API**: For seamless data integration and updates.\n- **gspread**: Python library for interacting with Google Sheets.\n- **HTML/CSS/JavaScript**: Frontend for the chat interface.\n\n## How It Works\n1. **User Interaction**: The user interacts with the bot through a web-based interface. They input commands such as \"Add a new book\" or \"Check availability of Harry Potter.\"\n2. **AI-Powered Response with Function Calls**: The bot uses the OpenAI API to process user requests and decide which function to call (such as `list_books`, `add_book`, or `search_books`) based on the conversation context.\n3. **Real-Time Data Management**: The bot interacts with Google Sheets to update, retrieve, and manipulate the library's inventory in real-time based on the user input.\n4. **Dynamic Function Calling**: The chatbot calls specific functions like `add_book`, `search_books`, or `remove_book` to interact with Google Sheets directly.\n\n## Features Explained\n- **List Books**: Display all the books in the library categorized by genre.\n- **Search Books**: Search for books by title, author, or category.\n- **Add Book**: Add a new book to the inventory by specifying the title, author, category, and availability status.\n- **Update Book**: Update the status, category, or other fields of an existing book.\n- **Check Availability**: Check if a specific book is available or issued.\n- **Remove Book**: Remove a book from the library inventory by its title.\n- **Get Issued Books**: Retrieve a list of books that are currently issued.\n- **Get Available Books**: Retrieve a list of books that are currently available.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpragati-chaturvedi%2Flibbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpragati-chaturvedi%2Flibbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpragati-chaturvedi%2Flibbot/lists"}