{
  "openruna_format": "flow-graph-v1",
  "title": "Load Prompts from Github Repo and auto populate n8n expressions",
  "slug": "load-prompts-from-github-repo-and-auto-populate-n8n-expressions",
  "source_filename": "1453_Stopanderror_Code_Import_Triggered.json",
  "nodes": [
    {
      "id": "When clicking ‘Test workflow’",
      "name": "When clicking ‘Test workflow’",
      "integration": "manual",
      "kind": "trigger"
    },
    {
      "id": "GitHub",
      "name": "GitHub",
      "integration": "github",
      "kind": "action"
    },
    {
      "id": "Extract from File",
      "name": "Extract from File",
      "integration": "extractFromFile",
      "kind": "action"
    },
    {
      "id": "setVars",
      "name": "setVars",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "replace variables",
      "name": "replace variables",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "If",
      "name": "If",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Check All Prompt Vars Present",
      "name": "Check All Prompt Vars Present",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "SetPrompt",
      "name": "SetPrompt",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Stop and Error",
      "name": "Stop and Error",
      "integration": "stopAndError",
      "kind": "action"
    },
    {
      "id": "Set Completed Prompt",
      "name": "Set Completed Prompt",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "AI Agent",
      "name": "AI Agent",
      "integration": "@n8n/n8n-nodes-langchain.agent",
      "kind": "action"
    },
    {
      "id": "Prompt Output",
      "name": "Prompt Output",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Ollama Chat Model",
      "name": "Ollama Chat Model",
      "integration": "@n8n/n8n-nodes-langchain.lmChatOllama",
      "kind": "action"
    }
  ],
  "edges": [
    {
      "from": "If",
      "to": "replace variables"
    },
    {
      "from": "If",
      "to": "Stop and Error"
    },
    {
      "from": "GitHub",
      "to": "Extract from File"
    },
    {
      "from": "setVars",
      "to": "GitHub"
    },
    {
      "from": "AI Agent",
      "to": "Prompt Output"
    },
    {
      "from": "SetPrompt",
      "to": "Check All Prompt Vars Present"
    },
    {
      "from": "Extract from File",
      "to": "SetPrompt"
    },
    {
      "from": "replace variables",
      "to": "Set Completed Prompt"
    },
    {
      "from": "Set Completed Prompt",
      "to": "AI Agent"
    },
    {
      "from": "Check All Prompt Vars Present",
      "to": "If"
    },
    {
      "from": "When clicking ‘Test workflow’",
      "to": "setVars"
    }
  ]
}