{
  "name": "Private customer reply (Secure AI)",
  "nodes": [
    {
      "parameters": {
        "content": "## Private customer reply, with Secure AI\n\nDrafts a reply to a customer email. Names, phone numbers, emails, card and account numbers are swapped for stand-ins before the AI sees them, and put back in the reply.\n\n**Setup (2 minutes)**\n1. Get a free key: secureai.one/app?settings=developer\n2. Open **Secure AI** below \u2192 create an **OpenAI** credential:\n   - Base URL: `https://secureai.one/v1/proxy`\n   - API Key: `sai_...:<your OpenAI or Claude key>`\n3. Pick your model, then click **Test workflow**.\n\nSwap the sample email for a Gmail or Outlook trigger when it works.",
        "height": 460,
        "width": 420,
        "color": 4
      },
      "id": "a1f0c6c2-0000-4a8e-9d10-000000000000",
      "name": "How to set it up",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -520,
        -140
      ]
    },
    {
      "parameters": {},
      "id": "a1f0c6c2-0000-4a8e-9d10-000000000001",
      "name": "When clicking 'Test workflow'",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        0,
        0
      ]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "b7e1",
              "name": "customer_email",
              "value": "Hi, this is Maria Gonzalez from Gonzalez Landscaping. Our last invoice (INV-4471) charged the card ending 4417 twice. Can you refund the duplicate to the same card? You can reach me on (512) 555-0148 or maria@gonzalezlandscaping.com. Our account number is 00893312. Thanks!",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "id": "a1f0c6c2-0000-4a8e-9d10-000000000002",
      "name": "Sample customer email",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        220,
        0
      ]
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "=You work in customer service for a small business. Write a short, friendly reply to this customer email. Confirm what they asked for and what happens next.\n\nCustomer email:\n{{ $json.customer_email }}"
      },
      "id": "a1f0c6c2-0000-4a8e-9d10-000000000003",
      "name": "Draft the reply",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "typeVersion": 1.4,
      "position": [
        460,
        0
      ]
    },
    {
      "parameters": {
        "model": "gpt-6-luna",
        "options": {}
      },
      "id": "a1f0c6c2-0000-4a8e-9d10-000000000004",
      "name": "Secure AI",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "typeVersion": 1,
      "position": [
        480,
        220
      ],
      "credentials": {
        "openAiApi": {
          "id": "",
          "name": "Secure AI"
        }
      }
    }
  ],
  "connections": {
    "When clicking 'Test workflow'": {
      "main": [
        [
          {
            "node": "Sample customer email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Sample customer email": {
      "main": [
        [
          {
            "node": "Draft the reply",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Secure AI": {
      "ai_languageModel": [
        [
          {
            "node": "Draft the reply",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  },
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "meta": {
    "templateCredsSetupCompleted": false
  }
}