This repository contains a demonstration project for the KaibanJS framework, utilizing React and Next to create a dynamic AI-powered blogging platform. The application leverages AI agents to research the latest news on a specified topic and automatically generate a comprehensive blog post.
KaibanJS Resources:
To get this project up and running, follow these steps:
-
Clone the repository
git clone https://github.com/your-username/kaibanjs-next-example.git cd kaibanjs-next-example
-
Install dependencies
npm install
Create a .env
file in the project root and add your API keys for Tavily and OpenAI:
NEXT_PUBLIC_TRAVILY_API_KEY=your-tavily-api-key
NEXT_PUBLIC_OPENAI_API_KEY=your-openai-api-key
To start the application in development mode:
npm run dev
This will start the Vite server. You can view your application by navigating to http://localhost:3000/
in your web browser.
- AI Agent Setup: Configures AI agents using KaibanJS to perform tasks such as news research and content generation.
- Dynamic Blog Post Generation: Uses AI to research and generate blog posts based on user-input topics.
- Markdown Visualization: Enhances the display of generated blog posts using markdown formatting.
To build the application for production:
npm run build
This command generates a production-optimized build in the dist/
directory.
- Enter a topic in the input field.
- Click "Generate Blog Post" to see the AI agents in action as they research and compile a blog post on your specified topic.
Contributions to this project are welcome. Please feel free to fork the repository, make improvements, and submit pull requests.
If you encounter any issues or have suggestions for improvements, please open an issue in this repository.