Automation library · Chat assistants

Pyragogy AI-driven handbook generator with OpenAI and GitHub

Started by another system calling it, and works across Email, GitHub, Postgres and Slack. It hands the judgement calls to OpenAI. 35 steps, 6 branches, 1 loop or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAI

35 stepsLarge: read it before trusting it with anything live
6Branches: places the flow splits
1Loop or waits
4Services it connects to

The flow

Starts it 2Model 7Logic 19Service 7

The steps in the order they run, from what starts it.

  1. 1StartStartService
  2. 2Webhook TriggerWebhookStarts it
  3. 3Synthesizer AgentOpen AiModel
  4. 4Peer Reviewer AgentOpen AiModel
  5. 5Onboarding/Explainer AgentOpen AiModel
  6. 6Add Handbook MetadataFunctionLogic
  7. 7Check DB ConnectionPostgresService
  8. 8Process Agent OutputFunctionLogic
  9. 9Sensemaking AgentOpen AiModel
  10. 10Generate Content for ReviewFunctionLogic
  11. 11Meta-OrchestratorOpen AiModel
  12. 12More Agents to Run?IfLogic
  13. 13Prompt Engineer AgentOpen AiModel
  14. 14Generate Review IDFunctionLogic
  15. 15Parse Orchestration PlanFunctionLogic
  16. 16Prepare Agent InputFunctionLogic
  17. 17Slack Enabled?IfLogic
  18. 18Evaluate Board ConsensusFunctionLogic
  19. 19Send Review Request EmailEmail SendService
  20. 20Route Agents with SwitchSwitchLogic
  21. 21Notify SlackSlackService
  22. 22Final ResponseRespond To WebhookStarts it
  23. 23Check Redraft NeededIfLogic
  24. 24Wait for Human ApprovalWaitLogic
  25. 25Summarizer AgentOpen AiModel
  26. 26Handle RedraftFunctionLogic
  27. 27Human Decision SplitIfLogic
  28. 28Save to handbook_entriesPostgresService
  29. 29Log Human RejectionFunctionLogic
  30. 30Prepare Approved Contribution DataFunctionLogic
  31. 31Merge Archivist PathsMergeLogic
  32. 32Save Agent Contribution (Approved)PostgresService
  33. 33Generate GitHub File PathFunctionLogic
  34. 34GitHub Enabled?IfLogic
  35. 35Commit to GitHub (Approved)GithubService

How it's built

Starts on
Another system calling it
Steps
35, with 6 branches, 1 loop or waits
Size
Large: read it before trusting it with anything live
Connects to
Email, GitHub, Postgres, Slack
Model
OpenAI

Questions

What does it need to run?

An n8n account, plus your own Email, GitHub, Postgres and Slack accounts, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on another system calling it.

Does it use AI?

Yes. It calls OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 35 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 35 steps before you point it at anything that matters.