PostBot is an AI-powered chat assistant that provides instant, accurate answers about India Post services, including Speed Post, savings schemes (like PPF, NSC, SCSS), insurance, and more.
This project is built with Next.js, Genkit (for AI), and Tailwind CSS.
- Conversational AI: Ask questions in natural language.
- Comprehensive Knowledge: Covers a wide range of India Post services, schemes, and facilities.
- Web Search: If the answer isn't in its knowledge base, PostBot can search the web to find real-time information.
- Document Analysis: Upload a document (image, text file) and ask questions about it.
- Modern UI: Clean, responsive, and easy-to-use chat interface.
Follow these steps to get the project running on your local machine.
Clone this repository to your local machine:
git clone https://github.com/your-username/postbot.git
cd postbotInstall the required npm packages:
npm installThis project uses the Google Gemini API to power its AI capabilities.
-
Get an API Key: Obtain your free Gemini API key from Google AI Studio.
-
Create an Environment File: In the root of the project, make a copy of the
.env.examplefile and name it.env.cp .env.example .env
-
Add Your Key: Open the newly created
.envfile and paste your Gemini API key into it.GEMINI_API_KEY=YOUR_API_KEY_HERE
You're all set! Start the Next.js development server:
npm run devThe application will now be running at http://localhost:9002. Open this URL in your browser to start chatting with PostBot.

