🎬 Pyragogy AI-driven handbook generator with multi-agent orchestration

⚡ 2,634 views · 🎬 Content Creation & Video

💡 Pro Tip — If you need GitHub data beyond what the REST API gives you, ScraperNode has a repository scraper that extracts metadata at scale without token rate limits.

View All Scrapers

Description

AI-Driven Handbook Generator with Multi-Agent Orchestration (Pyragogy AI Village)

This n8n workflow is a modular, multi-agent AI orchestration system designed for the collaborative generation of Markdown-based handbooks. Inspired by peer learning and open publishing workflows, it simulates a content pipeline where specialized AI agents act in defined roles, enabling true AI–human co-creation and iterative refinement.

This project is a core component of Pyragogy, an open framework dedicated to ethical cognitive co-creation, peer AI–human learning, and human-in-the-loop automation for open knowledge systems. It implements the master orchestration architecture for the Pyragogy AI Village, managing a complex sequence of AI agents to process input, perform review, synthesis, and archiving, with a crucial human oversight step for final approval.

How It Works: A Deep Dive into the Workflow’s Architecture

The workflow orchestrates a sophisticated content generation and review process, ideal for creating AI-driven knowledge bases or handbooks with human oversight.

Observe the dynamic loop: orchestrate → assign → generate → review (AI/human) → store

Included AI Agents

This workflow leverages a suite of specialized AI agents, each with a distinct role in the content pipeline:

Setup Steps & Prerequisites

To get this powerful workflow up and running, follow these steps:

  1. Import the Workflow: Import the pyragogy_master_workflow.json (or generate-collaborative-handbooks-with-gpt4o-multi-agent-orchestration-human-review.json) into your n8n instance.

  2. Connect Credentials:

    • Postgres: Set up a Postgres Pyragogy DB credential (ID: pyragogy-postgres).

    • OpenAI: Configure an OpenAI Pyragogy credential (ID: pyragogy-openai) for all OpenAI agents. GPT-4o is highly suggested for optimal performance.

    • Email Send: Set up a configured email credential (e.g., for sending human review requests).

  3. Define Environment Variables: Define essential environment variables (an .env.template is included in the repository). These include:

    • API base for OpenAI.

    • Database connection details.

    • (Optional) GitHub: For content persistence and versioning, configure GITHUB_ACCESS_TOKEN, GITHUB_REPOSITORY_OWNER, and GITHUB_REPOSITORY_NAME.

    • (Optional) Slack: For notifications, configure SLACK_WEBHOOK_URL.

Send a sample payload to your webhook URL (/webhook/pyragogy/process):

{ “title”: “History of Peer Learning”, “text”: “Peer learning is an educational approach where students learn from and with each other…”, “tags”: [“education”, “pedagogy”], “requireHitl”: true }

Ideal For

This workflow is perfectly suited for:

Documentation & Contributions: An Open Source and Collaborative Project

This workflow is an open-source project and community-driven. Its development is transparent and open to everyone.

We warmly invite you to:

Every contribution is welcome and valued! All relevant information for verification, improvement, and collaboration can be found in the official repository:

🔗 GitHub – pyragogy-handbook-n8n-workflow

đź”— Nodes Used

Send Email, Function, GitHub, Postgres, Slack, Start

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup