{
  "name": "SynapsAI — Sheet → contacts → lead outreach",
  "flow": [
    {
      "id": 1,
      "module": "google-sheets:watchRows",
      "version": 2,
      "parameters": {
        "__IMTCONN__": null,
        "spreadsheetId": "",
        "sheetId": "Leads",
        "includesHeaders": true,
        "limit": 10
      },
      "mapper": {},
      "metadata": {
        "designer": {
          "x": 0,
          "y": 0
        }
      }
    },
    {
      "id": 2,
      "module": "synapsai:upsertContact",
      "version": 1,
      "parameters": {
        "__IMTCONN__": null
      },
      "mapper": {
        "phone": "{{1.phone}}",
        "email": "{{1.email}}",
        "name": "{{1.name}}",
        "externalUserId": "sheet-{{1.`__ROW_NUMBER__`}}",
        "mode": "fill"
      },
      "metadata": {
        "designer": {
          "x": 300,
          "y": 0
        }
      }
    },
    {
      "id": 3,
      "module": "synapsai:askAgent",
      "version": 1,
      "parameters": {
        "__IMTCONN__": null
      },
      "mapper": {
        "agentKey": "",
        "externalUserId": "sheet-{{1.`__ROW_NUMBER__`}}",
        "text": "New lead from the sheet: {{1.name}}. Interest: {{1.interest}}",
        "contactId": "{{2.contactId}}",
        "idempotencyKey": "sheet-row-{{1.`__ROW_NUMBER__`}}",
        "metadata": [
          {
            "key": "source",
            "value": "sheet"
          }
        ]
      },
      "metadata": {
        "designer": {
          "x": 600,
          "y": 0
        }
      }
    }
  ],
  "metadata": {
    "version": 1,
    "instant": false,
    "scenario": {
      "roundtrips": 1,
      "maxErrors": 3,
      "autoCommit": true,
      "sequential": false,
      "confidential": false,
      "dataloss": false,
      "dlq": false
    },
    "designer": {
      "orphans": []
    },
    "requires": "SynapsAI Make app (synapsai) >= 1.0.0; SynapsAI GROWTH+"
  }
}