Hi,
I’m new to n8n, and trying to create a workflow such that:
- Every time a ticket is created in hubspot, n8n workflow gets triggered
- It looks through the contents of the ticket - subject and the content, and classifies into any one of 6 categories, and 30 sub-categories
- Once done, it returns two vlaues to hubspot
- Category Name
- SubCat Name
For now, I am stuck at the first part, where I am not able to get Hubspot to trigger the n8n workflow.
Hubspot details:
- I am using a developer test account
- Ive created a legacy app
- I’ve given is the scope ‘tickets’
- I’ve set up the n8n node, and takent he test URL and pasted into the hubspot legacy app
- I have also made sure that subscrpition - create ticket is active on the app
Hey @Prateek_Gupta !
The Test URL only works while the workflow is open in the editor and you’re actively “listening” (for webhooks/form triggers) or using the “Execute Workflow” / “Listen for test event” buttons. After that, or once you close the editor, it stops working.
For a trigger to work continuously, you must:
Switch the trigger to the Production URL.
Activate the workflow (toggle to ON).
Use that Production URL in HubSpot (your legacy app’s webhook/subscription).
Be sure as well to set the n8n WEBHOOK_URL env variable with your public n8n host address.
Cheers!
THanks for your response, @Parintele_Damaskin . I am not receiving the required response while I”m actively listening for the test event. (in the trial URL set up).
And the webhook_url is set to public only, I believe
Using the Test URL + “Listen for test event” together:
The “Listen for test event” button only works with the Test URL (the one containing -test).
After clicking Listen for test event, you have 120 seconds to send the request to the Test URL.
Test URL is temporary
The Test webhook is temporary and only active while you’re listening. If you send another request after it stops listening, you’ll get 404.
So either you set the teet url everywhere including hubspot, either use production and it will work in background (you can see after in the Execution tab the results).
WEBHOOK_URL just defines the public base URL
Setting WEBHOOK_URL to your public address is required when you’re behind a proxy, but it doesn’t change how the Test URL behaves it only affects where n8n tells external services to call.