Step-by-Step: N8N Webhooks (From Beginner to Pro)
34:43

Step-by-Step: N8N Webhooks (From Beginner to Pro)

Nick Saraev 23.02.2025 114 905 просмотров 2 440 лайков

Machine-readable: Markdown · JSON API · Site index

Поделиться Telegram VK Бот
Транскрипт Скачать .md
Анализ с AI
Описание видео
Join Maker School & get automation customer #1 + all my templates ⤵️ https://www.skool.com/makerschool/about?ref=e525fc95e7c346999dcec8e0e870e55d Want to work with my team, automate your business, & scale? ⤵️ https://cal.com/team/leftclick/discovery?source=youtube Watch me build my $300K/mo business live with daily videos + strategy ⤵️ https://www.youtube.com/@nicksaraevdaily Summary ⤵️ Want to learn how N8N webhooks work? In this tutorial, I'll give you a detailed walkthrough of how the N8N webhook node functions, including a breakdown of what webhooks are, the two major N8N webhook nodes, how to send & receive webhook messages (including JSON & HTML) in N8N, and more. My software, tools, & deals (some give me kickbacks—thank you!) 🚀 Instantly: https://link.nicksaraev.com/instantly-short 📧 Anymailfinder: https://link.nicksaraev.com/amf-short 🤖 Apify: https://console.apify.com/sign-up (30% off with code NICK30) 🧑🏽💻 n8n: https://n8n.partnerlinks.io/h372ujv8cw80 📈 Rize: https://link.nicksaraev.com/rize-short (25% off with promo code NICK) Follow me on other platforms 😈 📸 Instagram: https://www.instagram.com/nick_saraev 🕊️ Twitter/X: https://twitter.com/nicksaraev 🤙 Blog: https://nicksaraev.com Why watch? If this is your first view—hi, I’m Nick! TLDR: I spent six years building automated businesses with Make.com (most notably 1SecondCopy, a content company that hit 7 figures). Today a lot of people talk about automation, but I’ve noticed that very few have practical, real world success making money with it. So this channel is me chiming in and showing you what *real* systems that make *real* revenue look like. Hopefully I can help you improve your business, and in doing so, the rest of your life 🙏 Like, subscribe, and leave me a comment if you have a specific request! Thanks. Chapters

Оглавление (7 сегментов)

Segment 1 (00:00 - 05:00)

web hooks in nadn can be extraordinarily powerful but a lot of people misunderstand how they work so in this video I'm going to run you through everything you need to know about the nadn web hook game to crush it let's get into it so I'm going to get into the NAD and canvas in a second but just before I do I want to talk a little bit about what web hooks even are because I feel like in n8n and a lot of no and low code tools in general there's a big misunderstanding so to make things extraordinarily simple all web hooks are okay is they are messages they're nicely formatted messages but they're messages so if you have two apps let's just call this app a and over here we'll call this app B all the web Hook is this just a message from maybe app a to app b or from App B to app a just a text you know a very specifically formatted text it's like if you are going to the grocery store and you see your friend's ex-girlfriend or something and you're like hey I just saw Stacy at the store right that is the web hook it's just we're formatting in a very particular way so to make this a little more practical since we're using a no and lo code tool presumably for the of business let me just cover a set examples but let me just do one so we can actually jump into building uh let's say this app a here is I don't know it's like an email client okay so this is your email client I don't know it's your Gmail your outlook or whatever um and basically what happens is when I get a new email right what I'll do is I'll send a web hook this is a very common flow a lot of businesses do exactly this I'll send a web hook over to let's say appb as your C CRM you know when I get a new email what I want to do is I want to add some data to my CRM I do that using a web hook so um this is your new email you go to your email client you configure some web hook then you send it over to your CRM and what you do is you add a new record maybe with like the email address which is encapsulated in the web hook data um I don't know the first name right last name all sorts of stuff I can tell my writing is kind of getting doctor scrawly so I'll stop there but essentially that's web books are they're just little packets of data that we send to and from apps now the reason why uh they've become so prevalent in the 2020s and Beyond is because we are we're kind of getting in the habit of integrating things right and the purpose of a no or low code tool kind of in its core is to glue a bunch of different platforms together so naturally web hooks are a core part of how you get really good with these things so you know whether you're using make. com or zapier or Hell any no or loow code platform you're going to be you're going to have web hooks uh naden exposes web hook functionality to us in a couple of simple ways the first is we have the ability to catch a web hook that's what it is called when you receive one of these messages using the web hook node and we also have the ability this is sort of um Advanced I'm going to show you it right now anyway we also have the ability to send data from nadn to the source that sent us the web hook to begin with so basically respond to an incoming web hook now we're going to cover how this works in a moment um but essentially these two pieces of functionality nowadays are like a core part of how the internet operates and they're one of the reasons why inid in's great because they allow you to very quickly and easily slot into any app whether or not it has like a built-in integration if we click on this little button and we search for actions yeah don't get me wrong there are quite a few actions here maybe a few hundred but there are many more apps than this out there on the internet and if you want to be able to integrate all of those apps together well you can't just go down this list because the vast majority of them don't exist what you need to do is you need to find some sort of custom way to do so web hooks are that custom way and that's what we're going to be covering all right so now that we're done with that brief little intro let's talk about how web hooks actually work in NAD so to make a long story short we use this web hook node okay and essentially if I just Escape out of that let me organize this as naden course essentially all a web hook node in naden does is it exposes a custom URL for us I'm using nit in Cloud which is why my URL looks like this Nix r. a. ncloud you may be using a self-hosted version of nnn so yours will look a little bit different and if yours says a local host we'll chat about it at the end of the video how to route requests to Local Host specifically for self-hosted setups usually they use like Docker or whatever but essentially all we've done by creating This na uh web hook node is we just exposed the URL we now have a URL basically that you can send or receive data to with in order to trigger something or glue we've created a little Lego block almost right and I just want you guys to think about that we've created a Lego block that you can uh use to connect to other Lego blocks and further your build so a bunch of fields here the first is test URL versus production URL a lot of people misunderstand this um essentially test URL is just what you should use before you've made your workflow live before it's in production before uh you know you're actually implementing into a business your business or somebody else's okay this test URL is always going to have a web hook- test somewhere in it if we move over to produ you'll

Segment 2 (05:00 - 10:00)

see that the web hook- test is replaced with just web hook but you'll notice that there's kind of a pattern here right sure web hook do uh- test went to just web hook but basically everything else stayed the same the reason why if we just scroll past this HTP method yet is because we've set a path here and the path Remains the Same regardless of whether it's test URL or production URL the really cool thing about the path is you can actually make this whatever you want so I could call this my super cool web hook listener for instance right you have total control over what you want that path to be any who let's get back to this test URL let's just leave this as some super big long totally custom not at all um you know I mean maybe it's not super randomized I bet you the incidents of the F A and S and D characters are probably much higher than all the other characters on here just because that's where my fingers are but hey what are you going to do um next we get to the HTTP method field if we scroll through here you'll see that there are a variety of what are called Methods using HTTP being a protocol called the hypertext transfer protocol which is just a an agreement that a bunch of people had you know 20 or 30 or maybe even 40 years ago now I have to double check on just how two uh computers might interact and so there are a bunch of these agreed upon mechanisms there's delete there's get head patch post or put in practice the two that you're probably going to be using the most often are get and post and basically every time that you send a request in on the internet using http you'll have some sort of method attached to it and what we can do here is we can just say hey I only want you to respond or proceed if you receive a request that is formatted using one of these methods AK the method I specify so in our case you know we're responding to only the get method so if you try and send a request using uh I don't know patch or put or post or delete in then end you're actually not going to trigger the flow and I'll show you what that looks like in just a minute okay then we get our path field which I've already talked about next we get our authentication field now the authentication field is common misunderstood first of all you know because NAD defaults to authentication you see when I created this it immediately went to hetero modern people think you need authentication for web Hooks and if you don't it's necessarily bad practice or whatever it's not actually bad practice I don't use authentication in a lot of my web hooks um I don't use it here I might have some filter or something like that just like does not allow requests to come in uh but typically when you're testing you know I typically test with no authentication that's what I'm going to build the flow out here with and then I'll show you how authentication actually works better but basically if you think about it because you're exposing this URL to the internet ni. appcloud webhook test if you think about it anybody can access that URL and anybody can send a receive a request to it so authentication is just a way that you say Hey you know I don't want everybody to be able to do this I'm going to make a secret little password and if you don't have the secret little password then my web hook listener is not going to actually trigger the flow sounds pretty simple right variety of ways to do this there's basic off header off uh you know Json web token off there are a variety of different ways to do this um these specific ones here aren't super important I just want you to think about it as like a password example when you knock on a door once the secret password if you don't have it we don't do anything then the last parameter or field here is how you want to respond there are three different ways to respond on Ed end there's immediately which means the second that we receive the request we respond there's when the last node finishes so if in our workflow we build out a massive you know list of I don't know 30 or 40 or 50 noes we'll actually wait until that last one's ready and then using the respond to web hook node which is that node that I just showed you which is really what the bulk of this video is going to be about it's going to be how to respond to web hook events with presumably whatever data we want um how to do something and then send things back so I'm going to be covering all three of these in a moment last but not least we have some options I'm not going to cover all of these because in practice they're not super important but I usually recommend turning on ignore Bots there's also uh I don't know raw body Response Code you could tell the server that sent the request how you want to handle it if you want to say hey this succeeded hey I've created the request but haven't done anything with it hey there's no content the request was processed but nothing happened hey this is a redirect 300 series bad request it's unauthorized it's forbidden you have the power to basically control how your little endpoint responds to incoming requests now for the most part presumably you're going to want your responses to be 200o 100 you're going to want them to do something I'll show you what this looks like okay so knowing that we have this web hook now that is set up okay how do we actually go ahead and Trigger that web hook well here's one thing that the vast majority of people don't know right because this is a URL right just like a just like Google you can actually access this just by like navigating to it in your browser it's by far the simplest way to do so and when you navigate to something in your browser you just send it a get request so let me show you what this looks like you see I'm just going to click to copy this Web book URL I'm going to listen for a test event move over here and I'm actually just going to open up a new tab and enter and notice

Segment 3 (10:00 - 15:00)

what we got back we got in the standard format ad Json JavaScript object notation that says message workflow was started now if I go back to this tab what you'll see is we now have a ton of output if I change this to schema just it's a little bit easier to see you can see that we've received a number of um objects we received a headers object this is all of the data from my browser while it was visiting this resource we're sending in what kind of computer I'm using the various user agent Fields the browser that I was using um you know what sort of data I accept all the stuff is obviously defaulted by my browser what sort of encodings right there's a cookie there's um an IP address that tells me what country I'm in for Christ's sake it's really cool right we get all of that data from the browser but we also have a few other objects here there's one called pams which is empty but this is a way that I could send or receive data to this web hook just using my browser which I'll show you guys in a second now there's query and then there's body and then we also return back the web hook URL and then we also have an execution mode which we can use to test whether or not something is in production or you know whether or not it's uh live basically okay so I just want to cover a couple of these output objects because these are really valuable when you're building your own um web hook flows in particular these do pams and then query I'm going to start with query but essentially all query is if I test this workflow again all query is at the end of my URL I see up here at the top of the page if I just put a question mark and then I put a variable name then an equal sign then some value if I press enter what I've done is I've actually sent a data packet that contains the key name of first name and then the value of Nick to this web hook we can actually see this if I close this out scroll down a query notice how we now have a variable basically inside of our web hook so we've essentially used our browser to almost act like you know a server or some sort of client or whatever and then we've actually used that to send our web hook this perfectly packeted nicely formatted data so the query object is one way we can do this with web hooks you can also do it another way and I don't really use this way but to be clear these are both basically equivalent there's very little of a difference in practice um what you do is use what are called Dynamic paths so let's say my web hook Ur is the same okay but um what you can do is you can have it listen for a parameter that is put in if I have my path Here I Go slash then I have uh actually let me do this if I have I don't know static path okay if I have um this right over here this little colon what I can do is I can essentially add another variable in called in my case static path okay so I have the power to put a variable in that when the browser accesses the thing uh using like I'll show you actually uses this format and then puts something in here a name or a variable whatever I can actually get that returned as static path in my case why don't I go first name that seems like it' probably be a little cooler then we'll go last name like this okay if you don't fully understand this then just watch that test event let me paste this in just instead of first name let's go Nick instead of last name let's go my last name saraf so now we just sent data again to this web hook if I open this up we go down to headers what you see is now under pams we have first name Nick and then last name Sur so all we're doing here is we're actually just being a little bit more restrictive with the values that you can send we're basically saying hey you can only put those values in the first kind of backs slash or first slash section of the URL and then um that has to be your first name and then the second slash section has to be your last name so in practice I personally don't really do this what I do instead is I just do uh I'm just going to put this in here so I have some sort of param but I almost always just use the query parameters so I will actually just type in the name of the variable like this question mark first name equals Nick and then I'll just send and receive data that way very quick and easy way to communicate with uh a web hook but there are a variety of others okay so this is our browser accessing a website which sends a get request there's also a couple of other ones to make a long story short what you can do is you could use your terminal or you could use some web service and you could just send a curl request is just a way to send a get or a post very easily and quickly and simply so if I want to communicate using a different mechanism let's say my terminal instead what I can do is I could curl I could feed in the URL that I want got a question mark first name equals let's do Nick and last name equals Sur if you want to do more than one variable what you need to do is you just need to replace it with a little Amper sand so I'm going to click listen for test event press that button and now you'll see if I go back to my web hook I've actually sent a first name and a last name and I've done it in an alternative

Segment 4 (15:00 - 20:00)

mechanism to just the browser okay that's not the only way to do so you can do a variety of other ways to send and receive data probably the coolest one and the one I'll wrap this sort of more academic section up with is you can actually use n8n to send a request over to another Ann workflow so if I open up another workflow here I just call this sending web hook workflow then I'll just tag this as n in course what I can do is I can do an H HTTP request okay and see here I can Define the method well I can actually just take this URL that I just had a moment ago actually stick that right in here I can go first name equals Julio okay and if I listen for a test event on this end then I test it over here what you'll see is I've now sent the exact same thing that I was doing before through a browser and through a curl request using my terminal or whatever simp code you want um it's just I've done so using another n and n work so I bring this up because one of the cool use cases of naden web hooks is you can just use it to listen to other naden workflows so you could actually create this beautiful architecture in naden or any real no or low code tool and just connect a bunch of these workflows together so maybe you don't like muck up one workflow with a million billion things or maybe you have things that run in parallel where while the main thread executes you know you also send multiple other requests to web hooks that resolve and then send things back this is how you get like really cool um you know infrastructure and like these beautiful orchestrations and workflows and stuff but if you think about it every time so far that we've sent or received some data all we've gotten this message workflow was started right so obviously we can send data unidirectionally and that's great and if you know how to send data unidirectionally you're already at like 50% of all web hook use cases you're done you can connect more or less anything on planet Earth together but how about if we wanted to send data back the other way and there are many use cases in which this is actually necessary required or valuable How about if instead of just sending the data out we also wanted on the receiving end or sorry on the sending end How about if instead of just receiving data into do some of it if when we sent the data out we also got something back okay the value here is basically building an API for instance an application programming interface or it's serving static HTML or uh it's basically running your own little server that does something cool and I don't think a lot of people realize but this enables a whole other world of web hook use cases and and possibility so I know I've been yapping your ear off with these possibilities what do they actually look like well let me show you so if I connect to this a web hook response node I respond to web hook node what you'll see is there a bunch of options here in order to turn this on you need to head back to that first one and then click using web hook to sorry respond to web hook node here what we're doing is we're basically tying a request together so when we receive the web hook we don't just send back that um you know message uh sent or message received or whatever um uh little piece of Json what we're actually going to do is we're going to Define our own Json to send back so I'm going to go to respond to web hook and I have sort of I don't know five or six options here I can respond with all incoming items the binary file the first incoming item Json JavaScript or Json web token no data redirect or text now I use text most often but let me run you through the rest of these as well so the first and simplest way to do this is let's say your testing out this web hook and you want to make sure this web hook works you can actually just respond with all incoming items so let me show you what this would look like if I test this workflow okay then I grab the same URL which I think was back over here let me get rid of this it's back over here okay and then I feed in first name equals neck press enter what happens now is we don't just receive that message received or whatever what we actually get is we get all of the data that we are sending to the web hook immediately returned back to us this is one of the easiest and simplest ways to test your web hook and make sure it's working and then also just go through and then ensure that you are sending and receiving all the data you think you are so for instance we have all these ugly headers over here right but if you scroll down you can actually see this query we're actually sending over first name equal Nick we're actually doing that right over here okay if I were to change this I go and last name equals surve if I were go back to my end webbook test this workflow again send it and then I prettyprint it notice how now we're actually sending two things first name Nick last name surf so we're actually visualizing this really easily okay so that's that first one all incoming items but to be honest I really only use this while I'm testing now uh there's binary file which is you can respond with incoming file binary data so this is very rarely used essentially when you send or receive a request you have the ability to do so in a bunch of different formats right now we've been keeping it really simple it's just text right you can actually upload a file or send a file using binary is just like uh a representation of a whole

Segment 5 (20:00 - 25:00)

file in zeros and ones it's sort of how a computer views a file when you view an image you can convert that image to Binary and then you have the whole thing basically out is a big long scary uh alpha numeric string or whatever um so you can respond with variety of means I don't really ever use binary file and I don't I make a ton of money with this stuff so I don't really think it makes sense for me to talk about it but there a variety of other things you can do too a first incoming item is just when you have uh a lot of requests coming in or request with a number of items sort of bundled inside of it instead of responding with uh you know all of them you can just respond with only the first one so if I press test workflow now and do the same thing in my case um it's going to be the exact same thing because I'm only sending one item at a time but you sort of have the option to you know if you want to send like a multiple bundles or not bundles sorry multiple items or an array of items or something like that this always just going to grab the first one for you then I have Json so right over here we can actually Define what we want to send let's say instead of message your message is sent I'll say what's up loser my web Hook is kind of an okay look so um now we're sending back this message what's up loser how cool is that I'm going to make my web hook notes nice instead of mean it's all about that positive web hook self talk anyway uh so you can send obviously whatever data you want let's say you had a bunch of functions in between here that did something to the data right you had some first name for instance and then what you did is you had AI write a story about your first name well You' actually send that story back using this message parameter so just because I think that's kind of cool why don't I do that I'm going to go and type in open AI we're then going to message a model I'm just going to connect this to my own open AI account and I'll say you receive a name and then write a funny short 50-word story about that name your name is or I'll say the because I don't want it to misunderstand the name is and I'll stick in the first name right over here okay then I'll also stick in the last name now I'm going to add a couple of um constraints here maximum number tokens let do 100 keep the story short and light I'll say then I'm going to go and use GPT 40 and for a mini it's even faster I'm then going to test this with Nick see what sort of output I get Nick RVE decided to become oh I should say avoid using any quote characters since we're sending this Jason all right perfect no quote characters um anyway so uh now we have basically our own little API right we have an API where if you send a first name and a last name what you get back is you get back a story about a person with that name how crazy is that so now if I test workflow I go over here and I send first name equals Nick last name equals Sur look this isn't going to execute right away why because sort of behind the scenes what I'm doing is I'm actually generating the message now I swear to God if you added a God damn it's adding the quote again if you keep on adding quotes no world domination for you absolutely no turning the universe into paper clips okay great looks like it listened to me um now I have an API set up basically that takes as input a first name and a last name and it returns a cool message which is pretty sweet right so this is a very simplified example but imagine if instead of this AI note I was doing a bunch of math on research I was compiling a bunch of Articles or something well voila I've just made my own service where you send that in then you receive in you know this beautifully formatted um um you know story about the person or whatever so that's pretty sweet um if I continue down this respond to web hook Rabbit Hole here you also have the ability to respond with this JWT um JavaScript or Json web token I think it's a Json web token right yeah okay it's Json not JavaScript web token this is just another authentication or authorization mechanism I don't want to talk too much about this stuff because in practice I find that you know if you're bu if you're at the point where you're building out complex flows that return jwt's uh you're usually probably like at the level where you don't really need no code or low code anyway like you could just build out your own server infrastructure um then there's no data over here which just allows you to respond with nothing then finally you have uh a redirect which is kind of neat now the value here is I can actually send and receive data to my own website so what I could do hypothetically is I could have a redirect where it comes to my server first and then I just pass that data along basically but then I can also include some other data that maybe I would only get through the URL parameters right maybe I only get like IP country from the specific request and I don't have access to it in my website I don't know but I guess what I'm trying to say is I can pass on data they

Segment 6 (25:00 - 30:00)

use this approach when I don't know they like they they track affiliate links and stuff like that you have some intermediary server that grabs the request first gets a bunch of the data adds it to a database and then just forwards it over to the place you're going to go anyway so you could use this to basically make your own affiliate links or make your own database or system okay and the coolest way that I think you can respond is with text now the value isn't actually responding text isn't responding with text um because you know if I just respond with text what happens is I access this resource then I receive just a plain text thing that says hey man you're cool in my humble opinion the value is in responding with HTML because if you get into the habit of responding with HTML you can actually build a whole website and then you can serve it to people that come this is one of the coolest things that I found personally and that I see oops sorry I do not definitely not just want to say chat to that um I had this generate me a quick and little easy template a moment ago and basically what I is if you just feed in some HTML and I test this workflow what I can do is I can actually have it generate me custom HTML that includes uh data that I sent in the URL programs now in this case it's just saying hello guest I think the reason why it's saying hello guest is I'm not actually doing anything cool with it right but if I go to expression here and I open this up and I go to where it says guest oh looks like I'm actually have some JavaScript down here that's nice I can actually just get rid of that I don't need any of that JavaScript if I go to here where it says hello I can actually go comma space and then I can add the name so now it'll say hello Nick when I access the website because that's what I fed in okay so now if I test this workflow and I enter this again notice how the code now says hello Nick what I've done is I've literally created my own server that responds to incoming requests with a full HTML page that I can insert Dynamic data into right this I think is really cool because it opens up a variety of like customer Centric applications like let's hypothetically say that you get some data from some CRM or some service or some email or whatever you can actually route that data in and then you could style it on this page and you could tell people like your client hey your data is right over here they click the link they get to this page it says hello first name here's your data or here here's the email or here's the CRM record entry you know what do you want to manipulate you basically have the ability to create your own applications with an and web hooks which is obviously insanely powerful you can do a lot with it so um that that's the real main value here obviously there are a few other kind of gotas um but that's how you use web hooks or I suppose that's a little nugget of how you can use web hooks to turn more or less any static flow into a dynamic one um connect any two apps and just do a bunch of really cool things in Ed end that you might not have considered um possible before okay the last thing I'm going to cover is I'm just going to do some authentication and then I'm going to talk a little bit about how uh you can do uh like Local Host redirects if you're running this on Docker or you know you're kind of self-hosting um with a mechanism that you may not fully understand how to send and receive requests with so first we'll just cover some authentication over here you see how it says oth I was doing none before right so my web Hook was basically open for visitors anybody that pinged this would get the thing that I was returning so in my case you know I didn't actually um I didn't do the whole workflow here I only did the test of event so I was basically just trying to see if I could receive data and I could but if instead I add authentication I say basic o and I say username and the password is just password well now unless you try and connect with username and password it says unnamed because it didn't add name to it but unless you try and connect with username and password you can't actually get the data or rather you can't proceed It'll ask you for your username and your password so in order to proceed past this page I actually need to type in user then I need uh username and then password that's the only way that I actually make it let me make this flow around the entirety of it just to show you guys okay so I mean um I've now saved this in I've basically saved my password I believe it's cash the request or something and so I'm just sending um the data and then I'm receiving it just I didn't have a first name here there you go let's run this one more time but that first time I had to access it with a username and password right so there variety of other authentication mechanisms as well so that's basic o if I go to header o basically the way that header o works is you'll put an API key in the header or you'll be forced to so API uncore key okay and then this is a password but I don't know I'm just going to type the word password over here okay so now unless I add a an API key header with the value of password to

Segment 7 (30:00 - 34:00)

my request I can't actually get the data back I can't actually see any sort of result from this okay so if I were to just try using my browser which is obviously the simplest and easiest way to access any web hook if I just type this in what you'll see is authorization data is wrong okay let's jump over to another an nlow and let's try and get the HTML the page what you'll see is we can't unless we had that API key header so now if instead of doing it in my browser I try and send a request through HTTP okay I'm just going to grab this URL again feed it in here even if I test it this way what you see is it says forbidden check credentials but if I send headers and I have an apore key parameter with the password with the value password and then I go back here and I wait then I test what you'll see is I've actually gotten back this HTML um that I was looking for right we've actually allowed this to proceed with the flow because we put in the header off credentials so these are the two most commonly used ones I'm not going to touch on JavaScript or J JWT o just because this a little bit more involved and you have to add like a pass phrase and a secret you have to Hash stuff with algorithms I'm not going to worry about that but I guess the point that I'm making is this is like your password this is the knock give me the secret code and I'll let you in um of the web hook world and if you guys want more uh more learnings or knowledge or own authentication um just check out NN JWT and then web hooks and there'll be a variety of community articles that talk specifically about how to do JWT stuff um but I mean in practice you know I've me um well over guess like a million $2 million well over $2 million now with no code tools I don't really sweat like JWT auth or anything like that just kind of puts the cart before the horse you know if you're at the point where you're like building all the super complex offlow stuff in my humble opinion you're better off like actually developing the thing you know not doing it in some no code or low code Builder like aniden or make. com or zappier but what do I know um okay so uh yeah that's that another common thing that you'll see a lot of the time is you know if you use a service I'm going to use a service called seconds or something this is more or less what it's going to look like if you haven't done that so as we see it says Local Host colon uh 5678 I think it's just the default one that n and defaults too um SL web hook- test and then I have like some other ID I just had to switch instances so uh you know just make sure that first of all if you're self-hosting using render you always have a capital web hook URL equals to um whatever the root is of the render instance you get the root just by going up here so just copy that puppy over and then paste it in using some other hosting mechanism I just want you to know that they're basically all the same you have the option to put environment variables somewhere you just have to point it at the right URL there also some situations in which you may not actually have a URL um so in a situation where you don't have a URL uh or maybe domain I should say like this what you need to do is you actually need to go and you need to add it to um the configuration options for the specific host so in my case in render if you go to settings and then you go I think domains right down here what you can do is you can point a custom domain to the service if you don't have that what you have to do is you have to set up what's called a reverse proxy um n Jinx I believe is the way that they say it this is probably the simplest way to do it with Docker so what you do is you have to essentially set in set up like an ninx uh configuration file and then you have to add that to your NAD install if you go naden Docker then ninx you'll see a variety of community help articles that show you how to do so um I'm not like a big server guy and devops guy so I typically like to stay away from this whenever possible and just focus more on cloud hosted but just so you know if you are using a self-hosted offering you basically opted into doing a little bit more of the tech work in order to get more uh presumably cost savings and stuff like that so that's just something that you need to know I hope you guys appreciated the video had a lot of fun putting it together for you as per usual if you have any questions about this feel free to drop them below if you have any suggestions or ideas for future content I'd love to hear about it I get most of my ideas from my audience at this point so this video was because somebody asked me a bunch of questions about n andn web hooks so one of my comments a while back um yeah it' be nice if you subscribed liked did all that fun YouTube stuff to bump me up to the top of the algo as well obviously but I won't uh force you to and you know if you subscribe you can always just unsubscribe later who knows anyway uh thanks so much looking forward to next time I record cheers

Другие видео автора — Nick Saraev

Ctrl+V

Экстракт Знаний в Telegram

Экстракты и дистилляты из лучших YouTube-каналов — сразу после публикации.

Подписаться

Дайджест Экстрактов

Лучшие методички за неделю — каждый понедельник