Skip to content

HarshaAppikatla/postal-solution

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

18 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ“ฎ SmartPost AI

AI-Powered Postal Grievance Analysis & Prioritization System

License Node.js React NLP Hackathon

SmartPost AI is an AI-powered grievance management system designed to help large-scale postal services like India Post automatically analyze, categorize, and prioritize customer complaints using rule-based NLP with sentiment analysis.

The system reduces manual effort, improves response time, and ensures that critical issues are addressed first.


๐Ÿšฉ Problem Statement

Postal departments receive thousands of complaints every day related to:

  • Delivery delays
  • Lost or damaged parcels
  • Staff-related issues
  • Urgent or sensitive cases

Manual classification and response handling often result in:

  • Delays in resolution
  • Poor prioritization
  • Operational inefficiencies

๐ŸŽฏ Objective

Build an AI-powered system that:

  • Automatically analyzes complaint text
  • Classifies complaints into predefined categories
  • Detects urgency and sentiment
  • Suggests appropriate automated responses
  • Helps administrators prioritize critical cases

๐Ÿ’ก Solution Overview

SmartPost AI acts as an intelligent middleware layer between citizens and postal authorities. It processes complaint text using rule-based NLP with sentiment analysis to generate structured, actionable insights.


โš™๏ธ Core Features

๐Ÿ” Intelligent Complaint Classification

  • Categorizes complaints into:
    • Lost Parcel
    • Delivery Delay
    • Damaged Item
    • Staff Behavior
  • Uses weighted keyword matching and contextual rules.

โšก Sentiment & Priority Detection

  • Sentiment scoring using AFINN-based logic
  • Automatically marks complaints as CRITICAL when negative sentiment combines with urgent keywords (e.g., medicine, passport, emergency)

๐Ÿค– Automated Response Assistance

  • Generates category-based, empathetic response templates
  • Reduces manual drafting effort for officers
  • Basic email notifications (OTP / alerts) are supported; advanced notification workflows are planned as future enhancements.

๐Ÿง  Feedback Learning (Prototype)

  • Admins can correct misclassified complaints
  • System stores corrections to improve future keyword matching logic

๐ŸŒ Application Modules

๐Ÿ‘ค Citizen Portal

  • Text-based complaint submission
  • Multilingual-friendly input support
  • Image upload for damaged parcels
  • Complaint tracking interface
  • Timeline-style visualization

๐Ÿ›ก๏ธ Admin Dashboard

  • Complaint analytics and category distribution
  • Smart priority queue (urgency-based sorting)
  • SLA breach indicators
  • Auto-response suggestions
  • Postman / task assignment (prototype logic)

๐Ÿ› ๏ธ Technology Stack

Frontend

  • React 19
  • Vite
  • Tailwind CSS
  • Lucide React

Backend

  • Node.js
  • Express.js

AI / NLP

  • Sentiment.js (AFINN-165)
  • Custom weighted keyword matching
  • Rule-based NLP pipeline

Data Layer

  • JSON-based local persistence (prototype)

๐Ÿ“ Project Structure

postal-solution/
โ”œโ”€โ”€ postal-backend/
โ”‚   โ”œโ”€โ”€ server.js
โ”‚   โ”œโ”€โ”€ server_v2.js
โ”‚   โ”œโ”€โ”€ data.json
โ”‚   โ”œโ”€โ”€ learned_keywords.json
โ”‚   โ””โ”€โ”€ test scripts
โ”‚
โ”œโ”€โ”€ postal-frontend/
โ”‚   โ”œโ”€โ”€ dist/
โ”‚   โ”œโ”€โ”€ assets/
โ”‚   โ””โ”€โ”€ index.html
โ”‚
โ”œโ”€โ”€ screenshots/
โ””โ”€โ”€ README.md

๐Ÿš€ Running the Project Locally

1๏ธโƒฃ Clone the repository

git clone https://github.com/HarshaAppikatla/postal-solution.git
cd postal-solution

2๏ธโƒฃ Start Backend

cd postal-backend
npm install
node server.js

Backend runs at: http://localhost:5000


3๏ธโƒฃ Start Frontend

cd postal-frontend
npm install
npm run dev

Frontend runs at: http://localhost:5173


๐ŸŒ Live Demo

Frontend deployed on GitHub Pages: ๐Ÿ‘‰ https://HarshaAppikatla.github.io/postal-solution

โš ๏ธ Backend APIs run locally for hackathon purposes. Some features operate in simulation mode when the backend is not connected.


๐Ÿงช Use Cases

  • Postal grievance redressal systems
  • Government service automation
  • Complaint triage platforms
  • Hackathon & academic demonstrations
  • Workflow prioritization systems

๐Ÿ”ฎ Future Enhancements

  • Persistent database integration (MongoDB / PostgreSQL)
  • JWT-based authentication & role management
  • Multilingual NLP models
  • ML-based classification (TF-IDF / BERT)
  • Advanced email & SMS notification workflows
  • Admin analytics dashboard
  • Cloud deployment (Render / AWS / Vercel)

๐Ÿ Hackathon Context

Developed for POSTA-THON 2025, focused on building intelligent, scalable grievance-redressal systems for public services.


๐Ÿ‘จโ€๐Ÿ’ป Author

Harsha Vardhan Appikatla Software Developer | Full-Stack & Backend Enthusiast

๐Ÿ”— GitHub: https://github.com/HarshaAppikatla

About

AI-powered postal grievance analysis and prioritization system built for POSTA-THON 2025, using NLP to automate complaint classification, urgency detection, and response workflows.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages