{
  "schemaVersion": "flowdrome.workflow.v1",
  "id": "",
  "name": "AI · 01 — Chat (ask a local model)",
  "version": "0",
  "status": "draft",
  "nodes": [
    {
      "id": "seed",
      "type": "input.inject",
      "label": "Question",
      "category": "trigger",
      "config": {
        "contentType": "application/json",
        "payload": {
          "question": "In one sentence: why do rivers meander?"
        }
      },
      "position": {
        "x": 0,
        "y": 0
      }
    },
    {
      "id": "ask",
      "type": "ai.prompt",
      "label": "Ask the model",
      "category": "ai",
      "config": {
        "provider": "ollama",
        "baseUrl": "",
        "apiKey": "",
        "model": "qwen2.5:1.5b",
        "systemPrompt": "Answer in one short, clear sentence.",
        "promptMode": "field",
        "promptField": "question",
        "temperature": "0.2",
        "maxTokens": 200,
        "jsonMode": false,
        "timeoutMs": 120000
      },
      "position": {
        "x": 530,
        "y": 0
      },
      "attachments": {
        "model": "llm"
      }
    },
    {
      "id": "llm",
      "type": "ai.model",
      "label": "Ollama (local)",
      "category": "ai",
      "config": {
        "provider": "ollama",
        "baseUrl": "",
        "apiKey": "",
        "model": "qwen2.5:1.5b",
        "models": [],
        "temperature": 0.2,
        "maxTokens": 512
      },
      "position": {
        "x": 530,
        "y": 222
      }
    },
    {
      "id": "out",
      "type": "utility.console",
      "label": "Answer",
      "category": "utility",
      "config": {
        "message": "{{ $json.reply }}"
      },
      "position": {
        "x": 1060,
        "y": 0
      }
    }
  ],
  "edges": [
    {
      "id": "e0",
      "sourceNodeId": "seed",
      "sourcePort": "output",
      "targetNodeId": "ask",
      "targetPort": "input"
    },
    {
      "id": "e1",
      "sourceNodeId": "ask",
      "sourcePort": "output",
      "targetNodeId": "out",
      "targetPort": "input"
    }
  ],
  "triggers": [
    {
      "id": "t0",
      "nodeId": "seed"
    }
  ],
  "meta": {
    "snippets": [],
    "source": "template-gallery",
    "description": "The simplest AI workflow: a question goes to a wired ◈ Model (local Ollama) and the answer lands in the Console. Change the question on the Inject node, or swap the model by editing the carrier — nothing is hidden inside the Chat node."
  }
}