{
  "name": "Cogniz starter 4 · Sort enquiries with Make AI",
  "flow": [
    {
      "id": 1,
      "module": "google-sheets:watchRows",
      "version": 2,
      "parameters": {
        "mode": "map",
        "spreadsheetId": "PASTE-YOUR-SPREADSHEET-ID",
        "sheetId": "Prospects",
        "includesHeaders": true,
        "tableFirstRow": "A1:E1",
        "limit": 10
      },
      "mapper": {},
      "metadata": {
        "designer": {
          "x": 0,
          "y": 0
        }
      }
    },
    {
      "id": 2,
      "module": "ai-tools:Categorize",
      "version": 1,
      "parameters": {},
      "mapper": {
        "input": "{{1.`4`}}",
        "categories": [
          {
            " ": "Repair booking request"
          },
          {
            " ": "Quote request"
          },
          {
            " ": "Complaint"
          },
          {
            " ": "Other"
          }
        ],
        "shouldGenerateDescription": true
      },
      "metadata": {
        "designer": {
          "x": 300,
          "y": 0
        }
      }
    },
    {
      "id": 3,
      "module": "email:ActionSendMeEmail",
      "version": 7,
      "parameters": {},
      "mapper": {
        "to": "",
        "subject": "{{if(contains(2.categories; \"Other\"); \"Check by hand: \"; \"\")}}[{{join(2.categories; \", \")}}] New enquiry from {{1.`0`}} {{1.`1`}}",
        "html": "{{if(contains(2.categories; \"Other\"); \"<p><b>Check this one by hand: the AI wasn’t sure what it is.</b></p>\"; \"\")}}<p><b>Category:</b> {{join(2.categories; \", \")}}<br><b>Why:</b> {{2.reason}}</p><p><b>From:</b> {{1.`0`}} {{1.`1`}} ({{1.`2`}})<br><b>Message:</b> {{1.`4`}}</p><p>Check the category before you reply. The AI suggests; you decide.</p>"
      },
      "metadata": {
        "designer": {
          "x": 600,
          "y": 0
        }
      }
    }
  ],
  "metadata": {
    "instant": false,
    "version": 1,
    "scenario": {
      "roundtrips": 1,
      "maxErrors": 3,
      "autoCommit": true,
      "autoCommitTriggerLast": true,
      "sequential": false,
      "confidential": false,
      "dataloss": false,
      "dlq": false,
      "freshVariables": false
    },
    "designer": {
      "orphans": []
    },
    "zone": "eu1.make.com"
  }
}
