PraisonAI is a production-ready Multi AI Agents framework for Node.js, designed to create AI Agents to automate and solve problems ranging from simple tasks to complex challenges. It provides a low-code solution to streamline the building and management of multi-agent LLM systems, emphasising simplicity, customisation, and effective human-agent collaboration.

1

Install Package

npm install praisonai
2

Set API Key

export OPENAI_API_KEY=xxxxxxxxxxxxxxxxxxxxxx
3

Create File

Create app.js file

Code Example

const { Agent } = require('praisonai');
const agent = new Agent({ instructions: 'You are a helpful AI assistant' });
agent.start('Write a movie script about a robot in Mars');
4

Run Script

node app.js

Usage Examples

Running the Examples

1

Set Environment Variables

export OPENAI_API_KEY='your-api-key'
2

Create Example File

Create a new TypeScript file (e.g., app.ts) with any of the above examples.

3

Run the Example

npx ts-node app.ts