Тёмный

Using webhooks in n8n (parameters, responses and triggers) 

Oskar
Подписаться 3,9 тыс.
Просмотров 10 тыс.
50% 1

Опубликовано:

 

10 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 12   
@ElvisMorales
@ElvisMorales 4 месяца назад
Hi Oskar, What should I do if I have a workflow that takes around 8 minutes to complete? When I initiate the API GET request in a new browser tab, it times out after about 2 minutes. However, the workflow continues to run and eventually completes in n8n, as I can see in the execution list. I'm expecting to receive a JSON response from the final "Respond to Webhook" node, but the request in the browser times out after 2 minutes, which prevents this from happening. How do you handle situations like this?
@workfloows
@workfloows 4 месяца назад
Hello, thank you for your comment. I suspect it’s the matter of default timeout value for your browser (as the workflow executes correctly, the only reason for this could be ~2 min timeout in browser). You can try to make request form other browser or even from terminal to verify this issue. I’m not sure what is the goal of your automation, but you can also consider rebuilding it to make it asynchronous (instead of standard synchronous request-response). For long-execution workflows it’s usually more convenient way to run communication.
@WaldirBorbaJunior
@WaldirBorbaJunior 3 месяца назад
Nice tips... Now I'm search for a way to access data from previous workflow. Do you have any example ?
@FoLDx
@FoLDx Год назад
Hey Oskar. Thanks for video. I have a question. Before start to fully work in n8n i would like to know about backups, do you find solution for yourself how automaticaly do backups of all your workflows? i'm using command docker exec -u node -it root-n8n-1 n8n export:workflow --all --output=backups/latest/ But each time i have error message that it si impossible to create execute mkdir and create folder for export Folder must be created inside container or in my VPS machine
@workfloows
@workfloows Год назад
Hello, I think the easiest way would be to make a simple API call to your n8n instance to retrieve all workflows. You can do it by selecting „n8n” from nodes library, choosing resource „Workflow” and operation „Get many” (or „Get” if you want to retrieve the specific workflow). As an output you should get your workflows in JSON format, so you can further process them (for example export to GitHub). Link to the endpoint in n8n docs in case you need it: docs.n8n.io/api/api-reference/#tag/Workflow/paths/~1workflows/get I personally haven’t made my auto-backup workflow yet, since all important ones I always export manually. But this method should work to automate the process. Let me know whether it is something that you were looking for. Cheers!
@sbessot
@sbessot 6 месяцев назад
hello, how you configure you webhook response to send back html and not json ?
@workfloows
@workfloows 6 месяцев назад
Hello, thank you for your comment. In "Respond to Webhook" node switch value of "Respond With" field to "Text", and in field below ("Response Body") paste your HTML code. It should return HTML page after triggering the webhook.
@sbessot
@sbessot 6 месяцев назад
Thanks it works ! @@workfloows
@mathiasschrooten903
@mathiasschrooten903 Год назад
Fucking legend, loved the beginning. Hit me up, we could perhaps do some work together 😄
@workfloows
@workfloows Год назад
Thanks a lot! Sure, if you have some cool ideas, feel free to drop me an email (workfloows@gmail.com) and I’ll do my best to respond asap 😃 Cheers!
@mathiasschrooten903
@mathiasschrooten903 Год назад
@@workfloows you bet I do! I’ll mail you rn
@2mechanic
@2mechanic 3 месяца назад
Братан, спасибо тебе, очень помог
Далее
Autonomous AI crawler
10:20
Просмотров 7 тыс.
Make AI work for you! n8n + LangChain = Powerful Combo
13:30
To mahh too🫰🍅 #abirzkitchen #tomato
01:00
Просмотров 1,2 млн
Bike vs Super Bike Fast Challenge
00:30
Просмотров 21 млн
This Open Source Scraper CHANGES the Game!!!
20:36
Просмотров 58 тыс.
The Biggest Mistake Beginners Make When Web Scraping
10:21
Web Scraping with ChatGPT is mind blowing 🤯
8:03
Просмотров 47 тыс.
The Secret Science of Perfect Spacing
9:40
Просмотров 417 тыс.