{
  "name": "HubSpot Ticket Auto-Acknowledgement",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "3ad098e1-e39e-4015-92ea-c7add755df78",
        "options": {}
      },
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        -120,
        180
      ],
      "id": "e8bb8fe7-a41d-43fd-9ab2-7942e349be95",
      "name": "Hubspot Webhook",
      "webhookId": "3ad098e1-e39e-4015-92ea-c7add755df78"
    },
    {
      "parameters": {
        "authentication": "appToken",
        "resource": "ticket",
        "pipelineId": "0",
        "stageId": "1",
        "ticketName": "={{ $json.body.ticket_name }}",
        "additionalFields": {
          "createDate": "=2025-04-30T15:27:55",
          "description": "={{ $json.body.ticket_description }}",
          "priority": "HIGH",
          "ticketOwnerId": 79296585
        }
      },
      "type": "n8n-nodes-base.hubspot",
      "typeVersion": 2.1,
      "position": [
        100,
        180
      ],
      "id": "3b1108d4-f17d-43ac-a40f-ee1a7bb15fe9",
      "name": "Get HubSpot Ticket",
      "credentials": {
        "hubspotAppToken": {
          "id": "J4UhmYt66lbuyRkm",
          "name": "HubSpot account"
        }
      }
    },
    {
      "parameters": {
        "sendTo": "=team@forgentsystems.com",
        "subject": "=New Ticket Created.",
        "emailType": "text",
        "message": "=Hello {{ $('Hubspot Webhook').item.json.body.name }},\n\nThank you for reaching out!\n\nWe’ve successfully created your a new ticket. Our team is reviewing it and will get back to you shortly.\n\nYour Ticket Details:\nTicket ID: {{ $json.properties.hs_ticket_id.versions[0].value }}\n\nThanks from,\nForgent Systems Team",
        "options": {
          "appendAttribution": false
        }
      },
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2.1,
      "position": [
        320,
        180
      ],
      "id": "0c02100c-5044-49b4-8734-514874420670",
      "name": "Send Email Notification",
      "webhookId": "ee04a73f-80ff-4a91-b30b-168cae5a5d25",
      "credentials": {
        "gmailOAuth2": {
          "id": "uDat96OaUczrGBW5",
          "name": "Gmail account"
        }
      }
    }
  ],
  "pinData": {},
  "connections": {
    "Hubspot Webhook": {
      "main": [
        [
          {
            "node": "Get HubSpot Ticket",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get HubSpot Ticket": {
      "main": [
        [
          {
            "node": "Send Email Notification",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "64ae09cb-c387-4bdf-b01a-9e4168d765fd",
  "meta": {
    "templateCredsSetupCompleted": true,
    "instanceId": "f1c26778ec36097a9722a22c47c5e9c01f00b8862dadd0121ec118026a370fa6"
  },
  "id": "Yk63DiYbPkNhTok2"
}