# What Is a Webhook? Explained in Simple Words (With Example)

> A webhook is a way for one app to tell another app something just happened. Explained in simple words, with a form-to-n8n example and which URL to use.

Source: https://learn.ynteractive.com/content/blog/what-is-a-webhook · Updated 2026-10-17 · Free from Stepthrough (https://learn.ynteractive.com)

Quick answer

In simple words, a [webhook](https://learn.ynteractive.com/content/glossary#webhook) is a web address that waits for data: when something happens in one app, such as a form being submitted, that app sends the details to the address, and the app behind it starts working right away. This guide is for small-business owners and office staff who keep seeing the word in tools like n8n, and you can see one work in the free [What a Webhook Is, in Plain Words lesson](https://learn.ynteractive.com/content/what-is-a-webhook), then build one in the [Lovable + n8n lesson](https://learn.ynteractive.com/content/lovable-n8n-web-app-ai-backend), which connects a [contact form](https://learn.ynteractive.com/content/glossary/web-form) to an [AI agent](https://learn.ynteractive.com/content/glossary/ai-agent).

Last updated October 17, 2026

[Take the free module →](https://learn.ynteractive.com/courses/ai-at-work/13)Module 13 of the free [AI at Work: Start Here](https://learn.ynteractive.com/courses/ai-at-work) course, about 6 minutes. No account needed.

By [Robert Breen](https://learn.ynteractive.com/content/about/robert-breen) · Published October 2, 2026 · Updated October 17, 2026 · 7 min read

Webhooks · n8n · Lovable

## Watch: the idea in 0:53

### What is a webhook?

Explainer · 0:53 · with captions

What is a webhook? A URL that waits for data. See how a website form sends JSON to an n8n webhook, which URL to use, and where webhooks fit in a business.

**Transcript**

You keep seeing the word webhook in tools like n8n. Here's what it means, in plain words. A webhook is a web address that waits for data. Think of it as a mail slot. Your website form drops the details through the slot. n8n picks them up and starts working right away. The form sends a POST request. The answers are packed as JSON, with labels like name, email, question and feedback. At Ridgeline Supply, a made-up warehouse company, a test request says dock door 3 won't open. The agent marks it Urgent for Facilities, saves it to a sheet, and emails a confirmation. One tip. Every webhook in n8n has two addresses. The Test URL only works while you test. A live form needs the Production URL, and that only works after you click Publish. Build one free in the Lovable plus n8n lesson.

You don't need to write code to use a webhook. You need to know what it receives, which of its two addresses to use, and what it sends back.

## What is a webhook in simple words?

In simple words, a webhook is a way for one app to tell another app that something just happened, by sending the details to a web address. It is a URL that sits and waits until another app sends it data. The lesson puts it in one line: "A webhook is just a URL that waits for incoming data."

Think of it as a mail slot. Your website form knows the slot's address. When a visitor clicks **Send Message**, the form drops the details through the slot, and n8n, sitting behind the slot, picks them up and starts the workflow. Nobody has to check anything or press a button.

The other common way for two apps to talk is checking on a schedule. The Gmail trigger in the [AI Email Responder](https://learn.ynteractive.com/content/ai-email-responder-gmail-drafts-n8n) lesson works that way: it checks the inbox **Every Minute** for new mail. A webhook doesn't check. It gets told, the moment the data exists.

## What does a form actually send to a webhook?

A form sends a POST request with the answers packed as JSON: a short list of labels (keys) and values. The Lovable prompt in the lesson spells it out: "send the data as a POST request to the n8n webhook URL. The data should be sent as JSON with keys: name, email, question, feedback."

A submission from that contact form looks roughly like this:

```text
{
  "name": "Sarah",
  "email": "sarah@example.com",
  "question": "Do you offer lead generation services?",
  "feedback": ""
}
```

POST simply means "here is some data for you," as opposed to asking for a page. JSON is a plain-text format that both apps can read. The keys matter: n8n finds each answer by its key, so the form and the workflow must use the same names.

## How do you create a webhook in n8n?

In n8n, a webhook is a trigger: you start a workflow with **On webhook call**, and n8n gives you the URL. The lesson's steps:

1. Click **Create workflow**, then **Add first step…**.
2. Click **On webhook call**.
3. Open the **Respond** dropdown and pick **Using 'Respond to Webhook' Node** (more on that below).
4. Add the next step, such as an **AI Agent**, by clicking the **+** on the right edge of the webhook node.

Inside the workflow, each field arrives inside the request **body**. That's why the AI Agent's prompt template in the lesson reads `Name: {{ $json.body.name }}` and `Email: {{ $json.body.email }}`. [n8n Expressions for Beginners](https://learn.ynteractive.com/content/blog/n8n-expressions-for-beginners) explains the curly braces.

The same pattern works for an internal form. In the [maintenance and IT request form lesson](https://learn.ynteractive.com/content/ai-maintenance-it-request-form-lovable-n8n), a made-up warehouse company, Ridgeline Supply Co., sends the keys name, email, request and location. When the test request reports that dock door 3 won't open with trucks waiting, the agent marks it Urgent for the Facilities team, saves it to a **Requests** sheet and emails a confirmation.

## What are the test URL and the production URL?

Every n8n webhook has two addresses: a Test URL that only works while you're testing in the editor, and a Production URL that your published workflow uses. A real form should always point at the Production URL, and that URL only works after you click **Publish**.

In the lessons, you click **Publish**, double-click the webhook, click the **Production URL** tab and click the URL to copy it. The example address has the shape `https://your-instance.app.n8n.cloud/webhook/` followed by a long ID. If your form works while you test and then goes quiet, read [n8n Webhook Test URL vs Production URL, Explained](https://learn.ynteractive.com/content/blog/n8n-webhook-test-vs-production-url).

## What does a webhook send back?

A webhook can answer the app that called it, and that answer is what makes a form say "Thanks!" or "Something went wrong." By default, the n8n webhook answers immediately, before the AI agent has even run.

The lesson changes that. Setting **Respond** to **Using 'Respond to Webhook' Node** tells n8n to wait, and a **Respond to Webhook** node at the end of the workflow sends the answer once the agent has saved the row and sent the email. In the lesson's words, the Respond to Webhook node sends a success response back to the form "so the user sees a confirmation message instead of an error." There's nothing to configure inside it.

The Lovable form in the lesson has three states that depend on that answer: the button changes to "Sending...", success shows "Thanks! Your message has been received.", and a failure shows "Something went wrong. Please try again."

## Try it free, step by step

**How to Build in Lovable: A Web App with an n8n AI Backend**. Build a contact form in Lovable and connect it to an n8n workflow — webhook trigger, AI Agent, Google Sheets, Gmail, and a Respond node that ties it all together. You do every step yourself in a practice copy of Lovable and n8n, it checks your work as you go, and “Do it for me” finishes any step you get stuck on. Free, and nothing touches your real accounts.

[Start the free lesson](https://learn.ynteractive.com/modules/lovable-n8n)

[Or read the full step-by-step guide](https://learn.ynteractive.com/content/lovable-n8n-web-app-ai-backend)

## Where should a webhook URL be kept?

Keep the webhook URL in a setting, not in the page code. The lesson's Lovable prompt says "Do not hard-code any webhook URL" and points the form at a secret named **N8N_WEBHOOK_URL** instead.

To add the secret, click **More** in the Lovable toolbar, paste **N8N_WEBHOOK_URL** as the name, paste the Production URL as the value and click **Save**. If the URL ever changes, you update one value and leave the form alone. A webhook URL accepts data from anyone who has it, so treat it like a private address and don't post it publicly.

## Where would a small business use a webhook?

Use a webhook wherever one app needs to hand something to another the moment it happens. Common examples:

- **Website forms:** contact, quote, service and demo requests. The Stepthrough lessons build forms like these for an HVAC company, a plumber, an electrician, a sales team, a coffee brand and a bookkeeping firm, all made up.
- **Internal forms:** maintenance requests, IT tickets and expense reimbursements.
- **Other apps:** many online tools, such as payment, scheduling and survey apps, can send a webhook when something happens. Check each tool's own documentation for what it sends and how to set it up.

A webhook is only the doorway. What happens next is up to the workflow: log the request in Google Sheets, sort it, email a confirmation or alert a person. [Connect a Lovable Form to n8n with a Webhook](https://learn.ynteractive.com/content/blog/lovable-form-n8n-webhook) walks through the full build.

## What does it cost to use webhooks?

The Stepthrough lessons are free and run in practice copies, so nothing is published, sent or billed. A real build needs n8n (n8n Cloud is a paid service after a free trial, or you can self-host n8n), and Lovable has free and paid plans. If the workflow uses an AI agent, the OpenAI API is pay-as-you-go and billed separately from ChatGPT plans; the lessons suggest about $10 of credit to start. More lessons are on the [n8n tool page](https://learn.ynteractive.com/content/tool/n8n).

## Key takeaways

- A webhook is a URL that waits for another app to send it data, so the workflow starts the moment something happens.
- A website form sends each submission to a webhook as a POST request with JSON keys like name, email, question and feedback.
- In n8n, a webhook is the On webhook call trigger, and form fields are read with expressions like `{{ $json.body.name }}`.
- A live form must use the n8n Production URL, which only works after the workflow is published.
- Setting Respond to "Using 'Respond to Webhook' Node" makes the form wait for the real result before showing success.

## Frequently asked questions

**What is a webhook in simple words?**

It's an address one app sends details to the moment something happens, like a form being submitted. The app at that address starts working right away, instead of checking for news on a timer.

**Is a webhook the same as an API?**

Not quite. An API is a set of addresses you call to ask an app for something. A webhook works the other way around: you give an app your address, and it calls you when something happens.

**Do I need to code to use a webhook?**

No. In the lesson, Lovable writes the form from a prompt and n8n creates the webhook when you click On webhook call. You copy one URL between them.

**Why does my form work in testing but not live?**

The form is usually still pointing at the n8n Test URL, or the workflow isn't published. Publish the workflow and use the Production URL.

**Is Ridgeline Supply Co. a real company?**

No. Ridgeline Supply Co. and its dock door request are made-up examples used in the lesson.

## Build it yourself, free

**What Is a Webhook? Send a Test and Watch the Data Arrive**. Point a plumber's website contact form at a free webhook tester, send a test and a real message, and watch the data arrive the moment it's sent. You do every step yourself in a practice copy of Webhook.site, it checks your work as you go, and “Do it for me” finishes any step you get stuck on. Free, and nothing touches your real accounts.

[Start the free lesson](https://learn.ynteractive.com/modules/what-is-a-webhook)

[Or read the full step-by-step guide](https://learn.ynteractive.com/content/what-is-a-webhook)

## Free lessons in this post

- [What Is a Webhook? Send a Test and Watch the Data Arrive](https://learn.ynteractive.com/content/what-is-a-webhook): Point a plumber's website contact form at a free webhook tester, send a test and a real message, and watch the data arrive the moment it's sent.
- [How to Build in Lovable: A Web App with an n8n AI Backend](https://learn.ynteractive.com/content/lovable-n8n-web-app-ai-backend): Build a contact form in Lovable and connect it to an n8n workflow — webhook trigger, AI Agent, Google Sheets, Gmail, and a Respond node that ties it all together.
- [Build an AI Maintenance and IT Request Form](https://learn.ynteractive.com/content/ai-maintenance-it-request-form-lovable-n8n): Build an internal maintenance and IT request form in Lovable for Ridgeline Supply Co. and connect it to n8n — the AI agent sets the priority, assigns a team, saves the…

## Watch it in a free lesson: How to Build in Lovable: A Web App with an n8n AI Backend

### Build a Web App with an AI Backend: video walkthrough

Full walkthrough · 9:03 · with captions

Build a contact form in Lovable and connect it to an n8n workflow — webhook trigger, AI Agent, Google Sheets, Gmail, and a Respond node that ties it all together. The whole lesson narrated step by step, recorded in Stepthrough’s simulated practice environment.

[Watch it with chapters and the full transcript](https://learn.ynteractive.com/content/lovable-n8n-web-app-ai-backend#watch)

From the free lesson [How to Build in Lovable: A Web App with an n8n AI Backend](https://learn.ynteractive.com/content/lovable-n8n-web-app-ai-backend)

## Related terms

Plain-English definitions, each with an example from a free lesson.

[Webhook](https://learn.ynteractive.com/content/glossary#webhook) · [Web form](https://learn.ynteractive.com/content/glossary/web-form) · [AI agent](https://learn.ynteractive.com/content/glossary/ai-agent) · [Change management](https://learn.ynteractive.com/content/glossary) · [Deployment (publishing a web app)](https://learn.ynteractive.com/content/glossary/web-app-deployment) · [Employee offboarding](https://learn.ynteractive.com/content/glossary) · Event-driven automation · [Integration](https://learn.ynteractive.com/content/glossary)

[The full AI glossary](https://learn.ynteractive.com/content/glossary)

## Related prompts

- [IT and maintenance request reply prompt](https://learn.ynteractive.com/content/ai-maintenance-it-request-form-lovable-n8n): Update a coworker on their IT or maintenance request: where it stands, a workaround, when they'll hear next, and no fix time…
- [Maintenance request triage prompt](https://learn.ynteractive.com/content/ai-maintenance-it-request-form-lovable-n8n): Sort a pile of maintenance and IT requests by priority and team, with the words that drove each call quoted and vague requests…

[All free prompt templates](https://learn.ynteractive.com/content/prompts)

## Visual guides

The same ideas as quick visual guides: swipe through the slides, or read each one as text.

- [Build a web form with an AI backend, no code](https://learn.ynteractive.com/content/visual/lovable-n8n-form): Most website forms just land in an inbox and wait. This one does the work. You describe the form in Lovable, and it builds it.

[All visual guides](https://learn.ynteractive.com/content/visual)

## Keep reading

- [IT and Maintenance Request Form with AI Priority](https://learn.ynteractive.com/content/blog/it-help-desk-request-form-ai): An internal request form where AI sets the priority and team, logs it to Google Sheets and emails a confirmation. What to ask, the rules, and the build.
- [n8n Webhook Test URL vs Production URL, Explained](https://learn.ynteractive.com/content/blog/n8n-webhook-test-vs-production-url): n8n webhook test URL vs production URL: why a form works while you test, then stops live, and the fixes for Publish, Respond and $json.body.
- [Connect a Lovable Form to n8n with a Webhook](https://learn.ynteractive.com/content/blog/lovable-form-n8n-webhook): Lovable n8n webhook setup, step by step: send each form submission to an n8n AI agent that logs it in Google Sheets and replies by Gmail.

[All blog posts](https://learn.ynteractive.com/content/blog) · [All free tutorials](https://learn.ynteractive.com/content)
