Welcome back.
In this lesson we are going to talk about webhooks, which is a way to receive data in real time and
trigger workflows automatically.
But before we dive in, let's quickly recap the key concepts once again.
So what is an API?
An API stands for Application Programming Interface, which allows different apps to talk to each other,
just like a waiter delivering orders between customers and the kitchen.
Next, what is an HTTP request?
It is a way to talk to other websites and services by sending or receiving data over the internet.
Now why do we need to use the HTTP request node in N810?
We need to use this node to make API calls like asking a service for data.
So in that case we use get method or sending new data to a service.
So we have to use a post method.
Now that we understand API requests.
Let's talk about webhooks, which work differently and are often called reverse APIs.
So in short, a webhook is a way for apps to send data to an A-10 automatically when something happens.
So without needing to check for updates, instead of constantly checking for updates like refreshing
your email inbox every few minutes.
Webhooks notify you automatically when an event happens.
Think of webhooks like a doorbell.
If you are expecting a delivery, you could go check the door every few minutes.
But instead, you could just wait for the doorbell to ring.
And when the delivery arrives, collect the parcel.
And this is called a webhook event.
Basically, webhooks work the same way in N810 because without a webhook, N810 would have to check
every ten minutes for new messages Is in a chat app like WhatsApp or telegram, but with a webhook.
As soon as new message is sent, it instantly triggers a workflow in the A-10.
So use webhooks when you need real time updates, and use API requests when you need to fetch data on
demand.
For example, instead of manually checking stripe for new payments, stripe can send an automatic webhook
to an A-10 whenever a payment is made, so this instantly starts a workflow without any delays.
All right, so now let's talk about how webhooks work in A-10 and why they make automation so much easier.
Webhooks start workflows instantly, which means instead of waiting or constantly checking for updates,
Enitan triggers your workflow the moment something happens.
Next, uses a webhook URL when you set up a webhook in N810.
It generates a unique URL.
This is where another app can send data whenever an event occurs.
Now no more manual checking with regular API calls.
N810 would have to keep asking a service if there is new data.
But with webhooks the data is pushed automatically.
So N810 doesn't need to check over and over again.
Now in N810 you can connect two workflows using webhooks.
Let's jump into N810 so I can demonstrate it to you.
Uh, this particular scenario.
This is the first workflow.
LinkedIn scraper.
So this workflow sends data using the HTTP request node.
So this is like passing information from one workflow to another.
So it sends a Post request to a webhook URL.
And this is the second workflow which receives the data using a webhook node.
So as soon as the webhook gets new data and then instantly starts the workflow and processes all the
data.
So usually the webhook starts the automation.
So if you want to connect two separate workflows into one bigger system, usually the HTTP request node
is the last node in your first workflow.
So in that case to trigger elite qualifier.
And the webhook node is the first node of the second workflow.
So in that case it receives all the data about a LinkedIn user.
Now if you want to set up a webhook in an A-10 from scratch, you just simply click on Add node button.
Search for webhook.
Then if your automation is production ready, you just need to copy this URL and paste it to the HTTP
request node of the of the first workflow.
But for test we copy this URL.
So let's go back to our first workflow.
So you need to copy the webhook URL generated by N810 and paste this URL into the service you are using,
like a stripe or slack.
Or if you want to connect two workflows.
Then you have to paste it into the HTTP request node right here.
Keep in mind that some applications like Stripe or Slack, let you create webhooks manually by pasting
the webhook URL into their settings, but others, like certain CRMs or custom built systems, may require
a bit of configuration.
So if N810 webhook note, you can receive and process this data easily by triggering any automation
you need.
All right, let's quickly recap what we covered in this lesson.
So instead of constantly checking apps, notify N810 the moment something happens thanks to webhooks.
The webhook node generates a URL so all the apps send data to this address whenever an event occurs.
Webhooks trigger workflows automatically, which means as soon as data arrives and it can start processing
it immediately.
And webhooks work with many apps.
Some, like Stripe or Slack, let you paste a webhook URL, but others, like CRMs, may need extra
setup.
I hope it was helpful and see you in the next one.