InsightExpress is a Next.js application that generates AI-powered research reports based on user-provided topics and emails them to users. The application leverages Langflow for its AI capabilities and features a modern, responsive UI built using NextJS.
InsightExpressIntro.mp4
Before running the application, ensure you have the following installed:
- Node.js (version 14 or later)
- npm (Node package manager)
- Python (version 3.9 or later) - for running Langflow
- pip (Python package manager)
First, you'll need to set up Langflow locally:
# Install Langflow using pip
pip install langflow
# Start Langflow server
langflow run
Once Langflow is running:
- Access the Langflow UI at
http://localhost:7860
- Create a new flow for research generation
- Note down the following details:
- Your Langflow URL (typically
http://localhost:7860
) - Your Flow ID (found in the flow's URL)
- Your API token (found in Settings > API Keys), in case auth enabled in the api settings
- Your Langflow URL (typically
# Clone the repository
git clone https://github.com/misbahsy/InsightExpress.git
cd insightexpress
# Install dependencies
npm install
Create a .env.local
file in the root directory:
LANGFLOW_URL=http://localhost:7860
FLOW_ID=your_flow_id_here
LANGFLOW_TOKEN=your_langflow_api_token_here
Replace the values with your actual Langflow configuration.
# Start the development server
npm run dev
The application will be available at http://localhost:3000
- Access the application in your browser
- Enter a research topic in the provided field
- Enter your email address
- Click "Generate Research Report"
- Wait for the AI to generate your report
- The report will be displayed on screen and sent to your email
insightexpress/
├── app/ # Next.js app directory
│ ├── api/ # API routes
│ ├── page.tsx # Main page component
│ └── layout.tsx # Root layout
├── components/ # React components
│ ├── ui/ # UI components
│ └── LoadingSteps.tsx # Loading indicator
├── lib/ # Utility functions
├── public/ # Static assets
└── styles/ # Global styles
- 🎨 Modern, responsive UI with dark mode support
- 🤖 AI-powered research generation
- 📧 Email delivery of reports
- ⚡ Real-time loading indicators
- 🎯 Error handling and notifications
-
Langflow Connection Error
- Ensure Langflow is running locally
- Verify your environment variables are correct
- Check if your Flow ID is valid
-
Email Delivery Issues
- Verify the email address format
- Check your Langflow flow configuration esp. Composio connection
-
Build Errors
- Run
npm clean-install
to refresh dependencies - Ensure all required dependencies are installed
- Run
This project is licensed under the MIT License. See the LICENSE file for details.
For support, please open an issue in the GitHub repository or contact the maintainers.