Best way to webhook data in to n8n.io

Hi All, I am really happy with knack and currently use integromat to parse data into other software I use: for example Mautic.

I also like using n8n.io but there is not yet a trigger node to collect data from knack.

I have this code to achieve this but I wanted to check with the community that it is the best solutions.

What do you think please?

// Change view_1 to the form view you want to listen to
$(document).on('knack-form-submit.view_1', async function(event, view, data) {


await $.ajax(
{
url:"https://yourwebhook-end-point",
type:'POST',
data: {json: JSON.stringify(data)},
dataType: 'json'

}
)

});

Hi Paul,
Not sure if you have see elsewhere on the forums but we have developed a node for n8n which should be available now to the community. I think you’ll probably still have to have a webhook node in front of it as a trigger node, but it might be helpful for working with Knack data once you have started your workflow.
Nikky