{
  "nodes": [
    {
      "id": "40216649-af2c-44df-83c6-75afe75dcdaf",
      "name": "On new event",
      "type": "n8n-nodes-base.calendlyTrigger",
      "position": [
        400,
        240
      ],
      "parameters": {
        "events": [
          "invitee.created"
        ]
      },
      "credentials": {
        "calendlyApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "46914a34-984e-4736-b2a3-6e97555b73c7",
      "name": "Create/update contact",
      "type": "n8n-nodes-base.mautic",
      "position": [
        620,
        240
      ],
      "parameters": {
        "email": "={{$node[\"On new event\"].json[\"payload\"][\"email\"]}}",
        "options": {},
        "firstName": "={{$json[\"payload\"][\"name\"]}}",
        "additionalFields": {}
      },
      "credentials": {
        "mauticApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "df809a8d-7b05-4ecc-a022-7bb12842b4bc",
      "name": "Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -20,
        180
      ],
      "parameters": {
        "width": 313,
        "height": 229,
        "content": "### Create/update Mautic contact on a new Calendly event\n1. `On new event` triggers on new Calendly events.\n2. `Create/update contact` will create a contact in Mautic or update the contact's first name. If the contact's email is already in Mautic, then the first name will be overwritten to the new first name."
      },
      "typeVersion": 1
    }
  ],
  "connections": {
    "On new event": {
      "main": [
        [
          {
            "node": "Create/update contact",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}