You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(webhooks): add headers, query params & body validation to webhook trigger
- Add webhookTrigger input type to Start node with HTTP method, content
type, and expected headers/query/body param configuration
- New /api/v1/webhook/:id route with method, content-type, header, body,
and query param validation (400/405/415 on mismatch)
- Namespace webhook payload as $webhook.body.*, $webhook.headers.*,
$webhook.query.* in the flow runtime
- Resolve $webhook.* variables in downstream nodes via buildAgentflow.ts
- Auto-unwrap form-encoded `payload` JSON strings (e.g. GitHub webhooks)
so $webhook.body.* paths work regardless of content type
- Expose webhook variable suggestions in the node variable picker
- Show copyable webhook URL in the Start node canvas UI
Copy file name to clipboardExpand all lines: packages/components/nodes/agentflow/Start/Start.ts
+79-1Lines changed: 79 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -131,16 +131,71 @@ class Start_Agentflow implements INode {
131
131
}
132
132
]
133
133
},
134
+
{
135
+
label: 'HTTP Method',
136
+
name: 'webhookMethod',
137
+
type: 'options',
138
+
options: [
139
+
{label: 'GET',name: 'GET'},
140
+
{label: 'POST',name: 'POST'},
141
+
{label: 'PUT',name: 'PUT'},
142
+
{label: 'PATCH',name: 'PATCH'},
143
+
{label: 'DELETE',name: 'DELETE'}
144
+
],
145
+
default: 'POST',
146
+
show: {
147
+
startInputType: 'webhookTrigger'
148
+
}
149
+
},
150
+
{
151
+
label: 'Content Type',
152
+
name: 'webhookContentType',
153
+
type: 'options',
154
+
description:
155
+
'Expected Content-Type of incoming requests. For application/x-www-form-urlencoded, if the entire payload is a JSON string in a "payload" field (e.g. GitHub webhooks), it is automatically parsed — use $webhook.body.* as normal.',
0 commit comments