{
  "name": "Automate WordPress contact form (CF7) responses and classification with Gemini",
  "nodes": [
    {
      "id": "789a4732-c652-45b5-9019-4aa082cd3a29",
      "name": "From Wordpress",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -500,
        -120
      ]
    },
    {
      "id": "958507a3-d9ac-430f-8d3d-701544e995a0",
      "name": "Set Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        -240,
        -120
      ]
    },
    {
      "id": "00b0653e-34a1-434e-abb5-ed3d4995ae58",
      "name": "Google Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        -40,
        80
      ]
    },
    {
      "id": "55e80a8c-7c44-4324-bd79-024ab494177e",
      "name": "Message Classifier",
      "type": "@n8n/n8n-nodes-langchain.textClassifier",
      "position": [
        -20,
        -120
      ]
    },
    {
      "id": "44c87bc8-7b6d-4d0b-8f34-b3ab1150e5e1",
      "name": "Google Gemini Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        520,
        420
      ]
    },
    {
      "id": "a66b653e-7df1-4f69-b37e-71a064d975be",
      "name": "Email draft - Other info",
      "type": "n8n-nodes-base.gmail",
      "position": [
        980,
        220
      ]
    },
    {
      "id": "adc0baaa-f265-4912-9a2a-0f5c6f5a15db",
      "name": "Email writer (Others)",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        540,
        220
      ]
    },
    {
      "id": "a700a2c9-0d12-48fb-92f0-c060ae656010",
      "name": "Google Gemini Chat Model2",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        520,
        40
      ]
    },
    {
      "id": "19887247-2d04-4f25-8610-c57dd5a6d0b7",
      "name": "Google Gemini Chat Model3",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        540,
        -300
      ]
    },
    {
      "id": "92a70faa-673d-4354-9146-4a533e096969",
      "name": "Email writer (Order info)",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        540,
        -120
      ]
    },
    {
      "id": "1def4974-d267-4b6d-9256-412a6d02d6ba",
      "name": "Email writer (Product info)",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        540,
        -480
      ]
    },
    {
      "id": "16be317a-c0ef-4603-913d-8bc5ad141d29",
      "name": "Email draft - Product info",
      "type": "n8n-nodes-base.gmail",
      "position": [
        980,
        -480
      ]
    },
    {
      "id": "9cc28565-e0e6-49ca-80f0-98f6eafe15e3",
      "name": "Email draft - Order info",
      "type": "n8n-nodes-base.gmail",
      "position": [
        980,
        -120
      ]
    },
    {
      "id": "098f2af1-8596-43e0-84cf-8271da85d63f",
      "name": "Save on Sheet (product)",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1220,
        -480
      ]
    },
    {
      "id": "545afc6a-b6b1-445f-856a-cde7d8a0f2f6",
      "name": "Save on Sheet (order)",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1220,
        -120
      ]
    },
    {
      "id": "6a8fb3a0-f31a-4177-98cb-de607e412772",
      "name": "Save on Sheet (other)",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1220,
        220
      ]
    },
    {
      "id": "bec108fe-4a5c-4d75-b589-1d74245f4bb9",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -520,
        -360
      ],
      "parameters": {
        "width": 800,
        "height": 140,
        "content": "## PRELIMINARY STEP\n- Download the Wordpress Plugin [CF7 to Webhook](https://wordpress.org/plugins/cf7-to-zapier/) and install it\n- Go to webhook tab on Wordpress and set the url of the n8n Webhook tr"
      }
    },
    {
      "id": "e82d4a99-0839-4ef3-a89f-25c1fdcfd636",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -80,
        -180
      ],
      "parameters": {
        "width": 360,
        "height": 200,
        "content": "Set your own classification categories"
      }
    },
    {
      "id": "6e9967e0-21ca-4307-9fbc-e846e63e03ac",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        520,
        -600
      ],
      "parameters": {
        "width": 320,
        "height": 1140,
        "content": "Create the draft of the reply email by dividing it into subject and text ready to be sent"
      }
    },
    {
      "id": "7390f9c8-d243-4d15-b887-ab8c61c32948",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        940,
        -600
      ],
      "parameters": {
        "width": 180,
        "height": 1140,
        "content": "send the draft to the correct department's company email"
      }
    },
    {
      "id": "002e8fc9-92f2-4453-bc16-58068f372bf4",
      "name": "Subject and Text",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        720,
        -300
      ]
    },
    {
      "id": "c5b3690c-47c2-4faa-90fd-84556658f4a5",
      "name": "Subject and Text 2",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        720,
        20
      ]
    },
    {
      "id": "d1498232-9ecd-4abd-ae84-f8936bcbb2b8",
      "name": "Subject and Text 3",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        740,
        420
      ]
    },
    {
      "id": "05fa4b16-4328-49f0-bb31-6b2a0f4b1df4",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -520,
        -680
      ],
      "parameters": {
        "width": 800,
        "height": 280,
        "content": "# WordPress Contact Form (CF7) Responses and Classification \n\nThis workflow optimizes the management of inquiries received through a contact form on a WordPress site, automating the process of classif"
      }
    }
  ],
  "connections": {
    "Set Fields": {
      "main": [
        [
          {
            "node": "Message Classifier",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "From Wordpress": {
      "main": [
        [
          {
            "node": "Set Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Subject and Text": {
      "ai_outputParser": [
        [
          {
            "node": "Email writer (Product info)",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Message Classifier": {
      "main": [
        [
          {
            "node": "Email writer (Product info)",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Email writer (Order info)",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Email writer (Others)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Subject and Text 2": {
      "ai_outputParser": [
        [
          {
            "node": "Email writer (Order info)",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Subject and Text 3": {
      "ai_outputParser": [
        [
          {
            "node": "Email writer (Others)",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Email writer (Others)": {
      "main": [
        [
          {
            "node": "Email draft - Other info",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Email draft - Order info": {
      "main": [
        [
          {
            "node": "Save on Sheet (order)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Email draft - Other info": {
      "main": [
        [
          {
            "node": "Save on Sheet (other)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Message Classifier",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Email writer (Order info)": {
      "main": [
        [
          {
            "node": "Email draft - Order info",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Email writer (Others)",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model2": {
      "ai_languageModel": [
        [
          {
            "node": "Email writer (Order info)",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model3": {
      "ai_languageModel": [
        [
          {
            "node": "Email writer (Product info)",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Email draft - Product info": {
      "main": [
        [
          {
            "node": "Save on Sheet (product)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Email writer (Product info)": {
      "main": [
        [
          {
            "node": "Email draft - Product info",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}