This is a Next.js project that integrates with Langflow for chat functionality.
-
Clone this repository
-
Install dependencies:
npm install # or yarn install # or pnpm install
-
Set up your environment variables:
- Create a
.env.localfile in the root of your project - Add the following variables:
LANGFLOW_API_URL=your_langflow_api_url_here LANGFLOW_API_TOKEN=your_langflow_api_token_here
- Create a
-
Run the development server:
npm run dev # or yarn dev # or pnpm dev
-
Open http://localhost:3000 with your browser to see the result.
To use this chat app, you need to set up a Langflow instance:
- Sign up for a Langflow account at Langflow Cloud
- Create a new flow or use an existing one
- Get your API URL and token from the Langflow dashboard
- Add these to your
.env.localfile as described in the setup instructions above
To learn more about Next.js and Langflow, check out the following resources:
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out the Next.js deployment documentation for more details.