{
  "name": "New Ticket Create on Hubspot",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "b5ac798c-03fd-416d-8b27-389d0ca290bd",
        "options": {}
      },
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        -120,
        180
      ],
      "id": "59a8a196-2cdf-4096-be0d-c24e9c961890",
      "name": "Hubspot Webhook",
      "webhookId": "b5ac798c-03fd-416d-8b27-389d0ca290bd"
    },
    {
      "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": "7c361e94-c1a3-42eb-aa30-2414ed0728a9",
      "name": "Get HubSpot Ticket",
      "credentials": {
        "hubspotAppToken": {
          "id": "c2ucZhKOCQNJ9iUN",
          "name": "HubSpot App Token account 2"
        }
      }
    },
    {
      "parameters": {
        "sendTo": "=sureshinfyom@gmail.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,\nInfyOm Team",
        "options": {
          "appendAttribution": false
        }
      },
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2.1,
      "position": [
        320,
        180
      ],
      "id": "1b566c23-0b12-4649-bd4b-7d462920ba49",
      "name": "Send Email Notification",
      "webhookId": "b3d5035f-b285-47e8-968a-73526066b217",
      "credentials": {
        "gmailOAuth2": {
          "id": "stjUuumoBlfUIL1N",
          "name": "Suresh.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": "b3580afe-be53-480b-8a0e-b818fe3afe26",
  "meta": {
    "templateCredsSetupCompleted": true,
    "instanceId": "fcb622cbd5234c565b9b78babeaf0ea2455df9d2aad0d1adff7c1ef99583e685"
  },
  "id": "nxUA8cZ2JVCpOKnc"
}