{
  "name": "Enrich new accounts in Pipedrive using Datagma API",
  "nodes": [
    {
      "id": null,
      "name": "list people",
      "type": "n8n-nodes-base.itemLists",
      "position": [
        820,
        240
      ]
    },
    {
      "id": null,
      "name": "Pipedrive - Enrich Organization",
      "type": "n8n-nodes-base.pipedrive",
      "position": [
        1060,
        740
      ]
    },
    {
      "id": null,
      "name": "Pipedrive - Add Person",
      "type": "n8n-nodes-base.pipedrive",
      "position": [
        1840,
        660
      ]
    },
    {
      "id": null,
      "name": "Datagma - Enrich Company",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        580,
        520
      ]
    },
    {
      "id": null,
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        1640,
        660
      ]
    },
    {
      "id": null,
      "name": "If lead is Ideal Buyer",
      "type": "n8n-nodes-base.if",
      "position": [
        1100,
        240
      ]
    },
    {
      "id": null,
      "name": "Datagma - Find Emails",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1320,
        220
      ]
    },
    {
      "id": null,
      "name": "Prepare Data Before Merge",
      "type": "n8n-nodes-base.set",
      "position": [
        1520,
        220
      ]
    },
    {
      "id": null,
      "name": "Pipedrive Trigger - New Company Created",
      "type": "n8n-nodes-base.pipedriveTrigger",
      "position": [
        320,
        520
      ]
    },
    {
      "id": null,
      "name": "Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        500,
        340
      ],
      "parameters": {
        "width": null,
        "height": 400,
        "content": "### Find a different ideal buyer:\nIn \"Datagma - Enrich Company\" node - change \"employeeTitle\" value with the keywords of your ideal buyer (-> Head of Marketing)"
      }
    },
    {
      "id": null,
      "name": "Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1020,
        60
      ],
      "parameters": {
        "width": null,
        "height": 380,
        "content": "### Refine lead results\nHere I am refining lead results to make sure they match my search.\nIf you have a different ICP, make sure to change the first value."
      }
    }
  ],
  "connections": {
    "Merge": {
      "main": [
        [
          {
            "node": "Pipedrive - Add Person",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "list people": {
      "main": [
        [
          {
            "node": "If lead is Ideal Buyer",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Datagma - Find Emails": {
      "main": [
        [
          {
            "node": "Prepare Data Before Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If lead is Ideal Buyer": {
      "main": [
        [
          {
            "node": "Datagma - Find Emails",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Datagma - Enrich Company": {
      "main": [
        [
          {
            "node": "list people",
            "type": "main",
            "index": 0
          },
          {
            "node": "Pipedrive - Enrich Organization",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Data Before Merge": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Pipedrive Trigger - New Company Created": {
      "main": [
        [
          {
            "node": "Datagma - Enrich Company",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}