{
  "name": "flowsulting · Wird Ihre Firma von ChatGPT empfohlen?",
  "nodes": [
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "cronExpression",
              "expression": "0 6 * * 1"
            }
          ]
        }
      },
      "id": "sichtbarkeit-t1",
      "name": "Wöchentlich",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [
        0,
        0
      ]
    },
    {
      "parameters": {
        "url": "https://api.openai.com/v1/responses",
        "method": "POST",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ JSON.stringify({ model: \"gpt-4.1\", input: $json.frage }) }}",
        "options": {
          "timeout": 15000
        }
      },
      "id": "sichtbarkeit-a1",
      "name": "KI-Systeme befragen",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        280,
        0
      ],
      "retryOnFail": true,
      "maxTries": 3,
      "waitBetweenTries": 2000
    },
    {
      "parameters": {
        "text": "={{ $json.text || $json.body }}",
        "attributes": {
          "attributes": [
            {
              "name": "genannt",
              "description": "Wird die Firma in der Antwort genannt (ja/nein)",
              "required": true
            },
            {
              "name": "position",
              "description": "An welcher Stelle",
              "required": true
            },
            {
              "name": "quelle",
              "description": "Auf welche Quelle beruft sich die Antwort",
              "required": true
            },
            {
              "name": "wettbewerber",
              "description": "Welche Wettbewerber werden genannt",
              "required": true
            }
          ]
        }
      },
      "id": "sichtbarkeit-a2",
      "name": "Werden wir genannt?",
      "type": "@n8n/n8n-nodes-langchain.informationExtractor",
      "typeVersion": 1,
      "position": [
        560,
        0
      ]
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "version": 2
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "c1",
              "operator": {
                "type": "string",
                "operation": "gte"
              },
              "leftValue": "={{ $json.quote }}",
              "rightValue": "={{ $json.quote_vorwoche }}"
            }
          ]
        },
        "options": {}
      },
      "id": "sichtbarkeit-b1",
      "name": "Besser oder schlechter?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [
        840,
        0
      ]
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "Nenne die eine Maßnahme, die die Sichtbarkeit in KI-Antworten am stärksten erhöht. Konkret: welche Seite, welcher Inhalt, welches Schema. Begründe in zwei Sätzen.\n\n{{ JSON.stringify($json) }}",
        "messages": {}
      },
      "id": "sichtbarkeit-c1",
      "name": "Maßnahme vorschlagen",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "typeVersion": 1.5,
      "position": [
        1120,
        0
      ]
    },
    {
      "parameters": {
        "fromEmail": "info@flowsulting.de",
        "toEmail": "inhaber@kunde.de",
        "subject": "Ihre KI-Sichtbarkeit diese Woche",
        "emailFormat": "html",
        "html": "={{ $json.html }}",
        "options": {}
      },
      "id": "sichtbarkeit-e1",
      "name": "Bericht an Kunde",
      "type": "n8n-nodes-base.emailSend",
      "typeVersion": 2.1,
      "position": [
        1400,
        0
      ],
      "retryOnFail": true,
      "maxTries": 3,
      "waitBetweenTries": 2000
    },
    {
      "parameters": {
        "model": {
          "__rl": true,
          "value": "gpt-4.1-mini",
          "mode": "list"
        },
        "options": {
          "temperature": 0.2
        }
      },
      "id": "sichtbarkeit-llm",
      "name": "KI-Modell",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "typeVersion": 1.1,
      "position": [
        560,
        260
      ]
    }
  ],
  "connections": {
    "Wöchentlich": {
      "main": [
        [
          {
            "node": "KI-Systeme befragen",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "KI-Systeme befragen": {
      "main": [
        [
          {
            "node": "Werden wir genannt?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Werden wir genannt?": {
      "main": [
        [
          {
            "node": "Besser oder schlechter?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Besser oder schlechter?": {
      "main": [
        [
          {
            "node": "Maßnahme vorschlagen",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Maßnahme vorschlagen": {
      "main": [
        [
          {
            "node": "Bericht an Kunde",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "KI-Modell": {
      "ai_languageModel": [
        [
          {
            "node": "Werden wir genannt?",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Maßnahme vorschlagen",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "pinData": {},
  "meta": {
    "templateCredsSetupCompleted": false
  },
  "tags": [
    {
      "name": "flowsulting"
    },
    {
      "name": "KI-Sichtbarkeit (GEO)"
    }
  ]
}
