React + Vite legal document simplifier with:
- n8n webhook-based document analysis flow
- LangChain-powered multi-turn chatbot grounded in analyzed document context
- Install dependencies:
npm install- Configure environment variables:
copy .env.example .envThen set:
VITE_OPENROUTER_API_KEYVITE_SERPER_API_KEYVITE_GROQ_API_KEY
- Start the app:
npm run dev- In the UI:
- Paste your n8n webhook URL
- Upload PDF/TXT/DOCX
- Click Analyze Document
- Use the Document Chatbot (LangChain) section for follow-up Q&A
(OpenRouter key is read automatically from
.env)