Node2Agents is a web application that allows users to visually design agent-based systems using a node-based interface. The designed agents and behaviors are then converted into executable code using SPADE, a multi-agent system framework.
- Drag-and-Drop Interface: Create and connect agents and behaviors easily.
- Automatic Code Generation: Convert visual models into executable Python SPADE code.
- Customizable Behaviors: Define different types of behaviors, such as one-shot, cyclic, and periodic.
- Frontend: React, React Flow
- Backend: Flask, SPADE
- Node.js (for the frontend)
- Python 3.x (for the backend)
- Git (optional, for cloning the repository)
git clone https://github.com/aaquerrmon/Node2Agents.git
cd Node2Agents- Create a virtual environment (optional but recommended):
python -m venv venv
source venv/bin/activate- Install dependencies:
pip install -r requirements.txt- Run the backend server:
python3 ./src/backend.py- Install dependencies:
npm install- Start the React development server:
HOST=localhost
npm start- Open http://localhost:3000/ in your browser.
- Drag and drop agents and behaviors onto the canvas.
- Connect behaviors to agents using edges.
- Click the Generate Code button to send the data to the backend.
- The backend processes the request and returns the generated Python SPADE code.
- Copy the generated code and run it to execute the agent system.
