{
  "nodes": [
    {
      "parameters": {
        "requestMethod": "POST",
        "url": "http://localhost:11434/api/generate",
        "jsonParameters": true,
        "options": {},
        "bodyParametersJson": "{\n  \"model\": \"gemma\",\n  \"prompt\": \"What is the capital of France?\",\n  \"stream\": false\n}"
      },
      "id": "Ollama HTTP Request",
      "name": "Ask Ollama (Gemma)",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 2,
      "position": [
        450,
        300
      ]
    },
    {
      "parameters": {
        "functionCode": "const response = JSON.parse(items[0].json.body);\nreturn [{ json: { reply: response.response } }];"
      },
      "id": "Function",
      "name": "Extract Reply",
      "type": "n8n-nodes-base.function",
      "typeVersion": 1,
      "position": [
        650,
        300
      ]
    }
  ],
  "connections": {
    "Ask Ollama (Gemma)": {
      "main": [
        [
          {
            "node": "Extract Reply",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "name": "Ollama (Gemma) Basic Query",
  "active": false,
  "settings": {},
  "version": 1
}

