Mindket

Prompt file fetched from GitHub and filled with your values

Newversion 1 · updated

Overview

An n8n workflow you start by hand: it reads a Markdown prompt from a GitHub repo and fills its double brace placeholders with values you set. An AI agent on Ollama then runs the finished prompt.

Prompt file fetched from GitHub and filled with your values is an n8n workflow in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page or copy its JSON, then import it into an n8n canvas. Nothing runs until you activate it in n8n.

At a glance

Runs in
  • n8n Cloud: import the file into a new workflow there, with an Ollama address it can reach
  • Your own n8n server: the same file and steps, with Ollama on the same machine
  • GitHub: a repo that holds your prompt files, one file for each prompt
  • Other triggers: replace the manual start with a form, a schedule or a webhook, and set the values from there

Platform

Connects 2 apps

How it works

Trigger

Manual run

It starts when you press Execute workflow, with eight values set in the setVars node:

  • The GitHub account and repo that hold the prompt
  • The prompt file’s folder and name
  • The values for the prompt: company, product, features and sector

Actions

  1. The prompt file is fetched from the repo with the GitHub node and read as text
  2. Every placeholder in it is listed and checked against the fields of setVars
  3. A missing one stops the run with an error that names it
  4. A Code node fills each placeholder with its value
  5. An AI agent on Ollama runs the finished prompt
  6. The model’s answer is returned as promptResponse

Result

The model’s reply to your prompt, filled in with your values, or an error that lists the placeholders you forgot to set

Integrations

What you need before you start.

GitHub

Prompt storage

Fetches the prompt file from a repo with the GitHub node’s file get step.

NeedsA GitHub credential that can read the repo

Ollama

Language model

Runs the filled prompt through an AI agent on a model you have pulled, llama3.2 unless you pick another.

NeedsAn Ollama server, with its base URL in an Ollama credential

Workflow check

Checked by Mindket on 13 Nov 2026

Steps
12 steps, starting by hand
AI
1 step calls an AI model: AI Agent
Sign-ins
Signs in to: GitHub and Ollama
API keys
No API key is left in the file
Step types
Mindket’s checker reads all 8 of its step types

Read from the workflow’s file, not from a run.

About

What it is

This n8n workflow keeps prompts in a GitHub repo and fills them in at run time. A manual trigger starts it, and a Set node holds the repo, the file’s folder and name, and the values for the prompt, such as company, product, features and sector. The GitHub node fetches the file and Extract From File reads it as text. A check lists any placeholder with no value, a Code node fills in the rest, and an AI agent on Ollama runs the result. Thirteen nodes do the work, beside four sticky notes.

Who it suits

Marketers and prompt writers who keep prompts as Markdown files in a repo and want to reuse each one with new values. Skip it if you have no prompt repo yet. As imported, the file name SEO/keyword_research.md points to a file you must write yourself.

Who uses it, and how
IndustryWho uses itHow they use itExample
SEOContent marketersKeep a keyword research prompt in a repo and fill the product and sector for each clientA marketer runs one prompt for a clinic and then for a gym by changing two values.
AgenciesPrompt writersVersion prompts in Git and reuse them across clientsA writer reviews a prompt change as a pull request before the workflow uses it.
Product teamsDevelopersKeep prompts out of the workflow, so an edit needs no new importA developer edits a Markdown file and the next run uses the new text.
OperationsAutomation buildersStop the run when a prompt asks for a value nobody setA builder sees which placeholder is missing before any model call is made.

You need a little n8n: import a file, add a GitHub credential and an Ollama credential, and write one prompt file with placeholders in it.

Where to use it

Any n8n that can reach GitHub and your Ollama server will run it. A private repo works when the credential can read it.

  • n8n Cloud: import the file into a new workflow there, with an Ollama address it can reach
  • Your own n8n server: the same file and steps, with Ollama on the same machine
  • GitHub: a repo that holds your prompt files, one file for each prompt
  • Other triggers: replace the manual start with a form, a schedule or a webhook, and set the values from there

Setup

Download saves a zip with workflow.json and Mindket’s setup notes in your downloads folder. A GitHub credential and an Ollama address are all it needs.

What you need first
NeedDetail
n8nOn n8n Cloud or on a server of your own
GitHubA repo with a Markdown prompt file, and a GitHub credential that can read it, such as a personal access token
OllamaInstalled and running, with a model pulled. The agent uses the node’s default model, llama3.2, unless you pick another
A prompt fileText with placeholders between double braces, such as {{ setVars.product }}
  1. In n8n, create a workflow, open its menu, choose Import from File and pick workflow.json.
  2. Add a GitHub credential and select it in GitHub.
  3. Add an Ollama credential with your server’s base URL and select it in Ollama Chat Model. Pick the model you have pulled.
  4. Open setVars. Replace <YOUR_GITHUB_ACCOUNT>, <YOUR_PROMPT_REPO> and <YOUR_COMPANY> with your own values. Set path to the folder of your prompt file, ending in a slash, and prompt to its name.
  5. Write that prompt file in the repo, with placeholders such as {{ setVars.product }}. The word after the last dot must be a field of setVars.
  6. Press Execute workflow. The model’s answer is in promptResponse, in Prompt Output.

How to use it

Put the values in setVars and press Execute workflow. The workflow fetches the file, finds every placeholder and checks that setVars has a field for each. If one is missing, the run stops with an error that names it. Otherwise the filled prompt goes to the agent.

What to change for a different result
To changeWhere
The prompt filepath and prompt in setVars
The repoAccount and repo in setVars
The valuescompany, product, features and sector in setVars, or a new field of yours
The modelmodel in Ollama Chat Model
What the agent doesAI Agent, whose text is the filled prompt

Example

A repo holds SEO/keyword_research.md, a prompt that uses {{ setVars.product }} and {{ setVars.sector }}.

With product set to Manual Therapy and sector to physical therapy, the workflow swaps each placeholder for those words. AI Agent receives the finished prompt, and Prompt Output returns the model’s answer. A placeholder with no matching field, such as {{ setVars.budget }}, stops the run and names budget.

For newcomers and experts

If you are new. n8n draws a workflow as boxes joined by lines, and each box, a node, does one job. This one is plumbing around a single idea: the prompt lives in Git, not in n8n. Run it once with a placeholder missing on purpose to see the stop message.

For experts. Placeholders are matched by their last word, so {{ setVars.product }} and {{ product }} both read the product field.

Where to look closer
NodeWhat it doesWhat to know
GitHubFile, Get, with the owner, repo and path taken from setVarsThe file comes back as a binary field named data
Extract from FileReads that file as textThe text lands in data, and SetPrompt keeps it
Check All Prompt Vars PresentA Code node that lists the placeholders and the fields setVars lacksIf stops the run when any is missing
replace variablesA Code node that swaps each placeholderIt reads every field of setVars and leaves an unknown placeholder as it is
AI AgentAgent 1.7 with the filled prompt as its textNo tools are connected, so it works as a plain prompt runner

Good to know

The original copy held its author’s account and repo, and the values it filled in did not match its own check.

  • Repairs: the original copy named its author’s GitHub account, a repo and a business, which Mindket’s copy replaces with <YOUR_GITHUB_ACCOUNT>, <YOUR_PROMPT_REPO> and <YOUR_COMPANY>. Its replace step also had features and a keyword written into the code, so the values in setVars were checked but not used. Mindket’s copy reads every field from setVars
  • Prompt file: SEO/keyword_research.md is a file of the original copy’s repo. Write your own file or point path and prompt at one you have
  • Model: Ollama Chat Model sets none, so the node uses its default, llama3.2. Pull it or pick another
  • Missing values: the run stops with an error that lists each placeholder with no field
  • Fresh text: the file is fetched on every run, so an edit in the repo takes effect at once
  • Your data: the prompt and your values go to your Ollama server, and GitHub sees only the file request
  • Credentials: the JSON holds none

README and files

README

Prompt file fetched from GitHub and filled with your values

An n8n workflow you start by hand. It reads a Markdown prompt from a GitHub repo, replaces the placeholders written
between double braces with values you set, and sends the finished prompt to an AI agent that runs on Ollama. A missing
value stops the run before any model call.

What is inside

  • workflow.json: the workflow as n8n exports it, 17 nodes. 13 do the work and four are sticky notes that label the
    steps. It holds no credential.
  • README.md: these notes.

What we changed from the original copy

  • setVars held its author's GitHub account, the name of their prompt repo and a business name. Mindket's copy writes
    <YOUR_GITHUB_ACCOUNT>, <YOUR_PROMPT_REPO> and <YOUR_COMPANY> there. The other values, product, features,
    sector, path and prompt, stay as sample text.
  • In replace variables, the code held its own object of values, with features and a keyword written into the code.
    The check in front of it reads setVars, so a value set there was checked but never used. Mindket's copy reads every
    field from setVars, so one list drives both steps.
  • The GitHub and Ollama Chat Model nodes were linked to credentials in their author's n8n. The links are gone, so
    select your own.
  • One sticky note said the author's repo was public for testing. It now says to point the workflow at a repo of yours.
  • Nothing else. The check, the stop message and the agent are the file's own.

Before you start

  • An n8n instance, on n8n Cloud or your own server, that can reach your Ollama server.
  • A GitHub repo with a Markdown prompt file, and a GitHub credential that can read it, such as a personal access token.
  • Ollama installed and running, with a model pulled. Ollama Chat Model sets none in the file, so the node uses its
    default, llama3.2.

Set it up

  1. In n8n, create a workflow, open its menu and choose Import from File. Pick workflow.json.
  2. Add a GitHub credential and select it in GitHub.
  3. Add an Ollama credential with your server's base URL and select it in Ollama Chat Model. Pick the model you have
    pulled, or run ollama pull llama3.2.
  4. Open setVars. Replace <YOUR_GITHUB_ACCOUNT>, <YOUR_PROMPT_REPO> and <YOUR_COMPANY> with your own values. Set
    path to the folder of your prompt file, ending in a slash, and prompt to its name.
  5. Write that prompt file in the repo. Put placeholders in it, such as {{ setVars.product }}. The word after the last
    dot must be a field of setVars.
  6. Press Execute workflow. The model's answer is in promptResponse in Prompt Output.

How a run goes

  1. The manual trigger starts the run.
  2. setVars (Set 3.4) holds eight fields: Account, repo, path, prompt, company, product, features and
    sector.
  3. GitHub (GitHub 1, File, Get) fetches the file at path plus prompt from the repo. Extract from File reads it
    as text, and SetPrompt keeps the text in a field called data.
  4. Check All Prompt Vars Present (Code) lists every placeholder in the text and the fields setVars lacks.
    If sends the run on when none is missing, and to Stop and Error, which names the missing ones, when any is.
  5. replace variables (Code) swaps each placeholder for its value. It matches the word after the last dot, so
    {{ setVars.product }} and {{ product }} both read product, and it leaves an unknown placeholder as it is.
  6. Set Completed Prompt keeps the filled text. AI Agent (1.7, prompt type Define) runs it on Ollama Chat Model, and
    Prompt Output returns the model's reply as promptResponse.

Change the look

  • Which prompt: path and prompt in setVars. Which repo: Account and repo.
  • The values: change a field in setVars, or add one and use its name in a placeholder.
  • Model: Ollama Chat Model. The agent has no tools connected, so it works as a plain prompt runner.
  • How it starts: replace the manual trigger with a form, a schedule or a webhook, and set the fields from it.
  • Where the answer goes: add a node after Prompt Output.

Good to know

  • The default path and prompt, SEO/keyword_research.md, name a file of the original copy's repo. Write your own
    file or point both fields at one you have.
  • A placeholder with no matching field stops the run with an error that lists its name.
  • The file is fetched on every run, so an edit to the prompt in the repo takes effect at once.
  • The prompt text and the values go to your Ollama server. GitHub sees only the file request.
  • The file holds no credential and no key.
Files
NOTICE.md  678 B
README.md  5 KB
workflow.json  12 KB

3 files, 18 KB, downloaded as a zip.

What’s new

  • Version 1 · 2026-11-12

Reviews

No ratings yet

Write a review

No reviews yet.

More from Mindket

See all from Mindket

Huashu Design

alchaincyf · Skill

Turns a one-line request in your AI agent into a finished design: a launch animation, a clickable app prototype, an editable slide deck, an infographic or a se…

New29.4k

Guizang PPT Skill

op7418 · Skill

Skill that makes single-file HTML slide decks, slide illustrations and platform covers in two visual styles, with a presenter mode for rehearsal. For speakers…

New29.8k

Claude Code Skills & Plugins

alirezarezvani · Skill

Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…

New29.8k

Similar in Developer

See all in Developer

buzz

block · Kit

Self-hostable workspace where people and AI agents share the same rooms, built on a Nostr relay that logs every action as a signed event. For teams that want t…

New37.3k

plannotator

backnotprop · Kit

Opens your AI coding agent's plans, specs and code changes in a browser so you can annotate or comment on them and send the feedback straight back to the agent.

New10.5k

open-code-review

alibaba · Kit

Reviews Git changes with an AI agent that reads files and searches the codebase, then writes comments tied to exact lines. It suits developers who want automat…

New50.7k