{"id":26475347,"url":"https://github.com/coderkun12/langchain-review-response-bot","last_synced_at":"2026-04-17T19:03:18.808Z","repository":{"id":281985187,"uuid":"947101442","full_name":"coderkun12/LangChain-Review-Response-Bot","owner":"coderkun12","description":"This project was aimed at understanding how chaining works in LangChain. For the same a program was designed where LLM first understands the sentiment of review and based on that generates appropriate response for the customer.","archived":false,"fork":false,"pushed_at":"2025-05-27T09:15:24.000Z","size":138,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-27T10:28:18.180Z","etag":null,"topics":["ai","api","automated-response","chainin","chatbots-framework","flask","frontend","langchain","llm","sentiment-analysis"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/coderkun12.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2025-03-12T06:43:10.000Z","updated_at":"2025-05-27T09:15:28.000Z","dependencies_parsed_at":"2025-05-27T10:22:26.210Z","dependency_job_id":"c4c9e57d-b7ec-4e2f-b986-c1aca1202aab","html_url":"https://github.com/coderkun12/LangChain-Review-Response-Bot","commit_stats":null,"previous_names":["coderkun12/langchain-review-response-bot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/coderkun12/LangChain-Review-Response-Bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderkun12%2FLangChain-Review-Response-Bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderkun12%2FLangChain-Review-Response-Bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderkun12%2FLangChain-Review-Response-Bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderkun12%2FLangChain-Review-Response-Bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coderkun12","download_url":"https://codeload.github.com/coderkun12/LangChain-Review-Response-Bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderkun12%2FLangChain-Review-Response-Bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31941845,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T17:29:20.459Z","status":"ssl_error","status_checked_at":"2026-04-17T17:28:47.801Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","api","automated-response","chainin","chatbots-framework","flask","frontend","langchain","llm","sentiment-analysis"],"created_at":"2025-03-19T23:16:50.573Z","updated_at":"2026-04-17T19:03:18.800Z","avatar_url":"https://github.com/coderkun12.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sentiment-Based Customer Review Response System\n\n## Overview\nThis project is a Flask-based web application that processes customer reviews, determines their sentiment, and generates appropriate responses using an AI model powered by LangChain and Groq's Llama3.\n\n## Features\n- Accepts customer reviews as input.\n- Analyzes the sentiment of the review (positive, negative, or neutral).\n- Generates an appropriate response based on sentiment.\n- Uses LangChain's structured output capabilities.\n- Implements a state graph with LangGraph for workflow automation.\n- Flask web interface to submit reviews and display AI-generated responses.\n\n## Technologies Used\n- **Python**: Core programming language\n- **Flask**: Web framework for handling requests and rendering templates\n- **LangChain**: AI framework for LLM-based applications\n- **LangGraph**: Workflow state management for AI processing\n- **Groq**: Model provider for Llama3\n- **HTML**: Frontend for displaying responses\n\n## Installation and Setup\n### Prerequisites\nEnsure you have Python installed (recommended version: 3.8+). Install required dependencies using:\n```bash\npip install flask langchain-core langchain chat_models langgraph\n```\n\n### Set Environment Variables\nSet up the Groq API key before running the application:\n```bash\nexport GROQ_API_KEY='your_groq_api_key'\n```\n(Replace `your_groq_api_key` with your actual API key.)\n\n### Running the Application\n1. Clone this repository:\n```bash\ngit clone \u003crepository_url\u003e\ncd \u003cproject_directory\u003e\n```\n2. Run the Flask application:\n```bash\npython app.py\n```\n3. Open your browser and navigate to:\n```\nhttp://127.0.0.1:5000/\n```\n\n## Project Structure\n```\n|-- app.py               # Main Flask application and AI workflow\n|-- templates/\n    |-- home.html       # Review submission page\n    |-- response.html   # Display AI-generated response\n```\n\n## How It Works\n1. **User submits a review** via the home page.\n2. **Sentiment analysis** determines if the review is positive, negative, or neutral.\n3. **Response generation** selects an appropriate AI response template.\n4. **Response is displayed** on the response page.\n\n## Future Enhancements\n- Improve sentiment classification with fine-tuned models.\n- Store reviews and responses in a database.\n- Add a frontend using ReactJS for a better user experience.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderkun12%2Flangchain-review-response-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoderkun12%2Flangchain-review-response-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderkun12%2Flangchain-review-response-bot/lists"}