Templates / Fetch dynamic prompts from GitHub and auto-populate n8n expressions in prompt

Fetch dynamic prompts from GitHub and auto-populate n8n expressions in prompt

Needs changes

by RealSimple Solutions ✓ · 3,644 views · created 2025-02-12 · Engineering, Multimodal AI

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 13 nodes and runs manually, when you click “Execute workflow”. Along the way it connects GitHub and Ollama Chat Model.

How it runs

Trigger: Manually, when you click “Execute workflow”.

  1. setVars (Edit Fields (Set)): sets 8 fields: Account, repo, path…
  2. GitHub: get (file)
  3. Extract from File: extracts data from a file (text)
  4. SetPrompt (Edit Fields (Set)): sets 1 field: data
  5. Check All Prompt Vars Present (Code): runs custom JavaScript code
  6. If: checks a condition and branches into true / false
  7. replace variables (Code): runs custom JavaScript code
  8. Stop and Error: stops the run with an error
  9. Set Completed Prompt (Edit Fields (Set)): sets 1 field: Prompt
  10. AI Agent: runs an AI agent, with model: Ollama Chat Model

…plus 1 more step. See the full node list below.

Services it uses

GitHubOllama Chat Model

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • AI Agent v1 (old agent modes) in AI Agent (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Published 2025 — 19% of 2025 templates need changes for 3.0. See how template age affects 3.0 readiness →

Removed in 3.0Replace with
AI Agent v1 (old agent modes)
AI Agent (v1.7)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (9)

From the author

Who Is This For? This workflow is designed for AI engineers, automation specialists, and content creators who need a scalable system to dynamically manage prompts stored in GitHub. It eliminates manual updates, enforces required variable checks, and ensures…

Excerpt from RealSimple Solutions's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.