Files
nexus/wiki/concepts/Webhook.md
2026-04-17 19:17:27 +08:00

25 lines
681 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "Webhook"
type: concept
tags: [n8n, trigger, http]
date: 2026-04-17
---
## Definition
n8n 接收外部 HTTP POST 请求的触发器,使工作流能够响应来自外部系统的请求。
## How It Works
1. 在 n8n 工作流中添加 Webhook 触发器节点
2. 配置唯一的工作流路径(如 `webhook/my-workflow`
3. 外部系统通过 `POST http://n8n:5678/webhook/my-workflow` 发起请求
4. n8n 接收 JSON payload 并执行工作流
## Use Cases
- AI Agent 调用外部 API通过 webhook 代理)
- 接收 GitHub/GitLab Webhook 通知
- 接收表单提交
- 接收 Twilio/SendGrid 等服务的回调
## Aliases
- Webhook Trigger
- Incoming Webhook