This repository contains a demonstration project for the KaibanJS framework, utilizing NodeJS 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/kaiban-ai/kaibanjs-node-demo cd kaibanjs-node-demo
-
Install dependencies
npm install
Create a .env
file in the project root and add your API keys for Tavily and OpenAI:
TAVILY_API_KEY=your-tavily-api-key
OPENAI_API_KEY=your-openai-api-key
To start the application:
node app.js
This will start the application in your terminal. Follow the prompts to interact with the AI blogging team.
- 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.
- Command-Line Interface: Provides an interactive console-based interface for easy interaction with the AI agents.
- Performance Metrics: Displays statistics about token usage, processing time, and estimated costs for each generated blog post.
- When prompted, enter a topic you'd like a blog post about.
- The AI agents will research the topic and generate a blog post, which will be displayed in the console.
- After each blog post, you'll be prompted to enter another topic or quit the application.
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.