-
Notifications
You must be signed in to change notification settings - Fork 5.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create webhook service? #15
Comments
Ah yes n8n can listen to GET or POST request it receives. Simply look under the "Trigger" nodes for "Webhook". It allows you to specify what to listen for exactly and when and how to respond. Here a simple example workflow which writes text on an image depending on what was given via the query parameter. Hope it helps. If not simply get back to me. Want to launch the website with more example workflows the next days. To test it simply press "Execute Workflow" and then visit the test URL which gets displayed in the node under "Webhook URLs". Make sure to save the workflow first as webhooks only work for saved workflows (as the workflow-id is part of the URL). Simply copy & paste the following in an empty n8n workflow:
|
Hi Jan Thanks for that. I pasted the code in and it seems to create a workflow. When I look at the Webhooks URL for test I get this URL: http://localhost:5678/webhook-test/2/webhook/test Via Postman I input this as the URL http://localhost:5678/webhook-test/2/webhook/test?name=Stuart Auth: None I then get this error on post: {"code":404,"message":"The requested webhook is not registred.","stack":"ReponseError: The requested webhook is not |
I finally got it to the point of waiting for the webhook-call..... How do I keep it in persistent listening mode? As soon as it runs once it stops the webhook trigger from listening. |
The test webhook does always just listens till it receives the first call and then displays that data in the editor UI as it is only for development and debugging. If you want that it keeps on listening, you have to activate the workflow (top right corner of the window). If you do that you have to make sure that you use the production webhook URL and not the test one (does not have the "-test" in the URL). |
Jan - thanks very much! it works. Do you know how to change the OnReceived response from 200 to 201? Do I have to configure it somewhere? I currently get 200 response with this message: { |
On success it always returns 200, changing it to 201 is currently not possible. I can look how complicated it would be to make that configurable for the next release. When you have "Response Mode" set to "On Received" it will always return just "Workflow got started". If you want to return something else you have to set it to "Last Node" and then make sure that the last node returns the data you want it to return. |
Thanks Jan - much appreciated. Any plans to connect with the Quickbooks Online API? |
You are welcome. Glad that it works now. Close the ticket for now as your problem seems to be solved. |
Just released a new version of n8n (0.18.1) which includes the functionality to set a custom response code on the Webhook-Node. |
Thanks Jan - I am going to test it |
hi, it's me again =(
am i missing any library for this specific node? |
That is possible as the problem is in "gm" which is http://www.graphicsmagick.org/ |
Sorry sadly can not really help there. Must be something graphicsmagick related in combination with MacOS. You can try some of their examples on the website via the commandline and see if they work. The docker-image has everything included and there everything will run for sure. Self installing is always more problematic especially on systems that run MacOS. Would be suprised if everything would run perfectly as I do not have a Mac and it is known to make problems. When n8n gets build it installs all the packages but not additional software and that is correct like that. Graphicsmagick is also just needed for that one node and that one is also more to show what can be done and playing around than something people are currently using for anything at all. But have to add somewhere that if people want to use that node they have to make sure that this package is installed. |
I have a webhooks URL which receives data from sources other than github etc.
Is it possible that N8N can listen for those incoming webhooks to run a workflow?
How would I go about implementing that?
The text was updated successfully, but these errors were encountered: