With the Agent002 Forms node
The community node n8n-nodes-agent002 adds an Agent002 Forms Trigger (a new response, with a form picker) and an Agent002 Forms node to read forms and responses.
- In n8n you host, open Settings → Community nodes → Install, and enter
n8n-nodes-agent002. - In Agent002, make a key under Connections → API keys (owners, on the paid Business plans).
- In a workflow, add Agent002 Forms Trigger, create a credential with the key, and pick the form.
- Activate the workflow. It appears under the form’s After sending; deactivating it removes it.
Each answer is at {{ $json.answers["Question label"] }} as text, or by key at {{ $json.submission.answers.your_key }}. On n8n Cloud, community nodes need n8n’s approval first: until then, use a Webhook node as below.
With a Webhook node
- In n8n, start a workflow with a Webhook node. Set HTTP Method to
POST. - Copy its Production URL. (The Test URL only works while n8n is listening in the editor.)
- In Agent002, open your form, go to After sending → Emails, PDFs and connections → Webhook, paste the address and choose Add.
- Activate the workflow in n8n, then use Send a test in Agent002. The execution appears in n8n.
Use the answers
- Each answer is at
{{ $json.body.submission.answers.your_key }}, by question key. $json.body.fieldslists every question with itslabeland a readabletext: handy for an email or a Slack message.- Tests have
eventset tosubmission.test. Add an If node to skip them if you like.
Check it came from Agent002 (recommended)
In the Webhook node, turn on Raw Body. Then compute an HMAC-SHA256 (Crypto node) of the X-Agent002-Timestamp header, a dot and the raw body, with your signing secret as the key, and compare it with the X-Agent002-Signature header (after sha256=). Details and code are in the webhooks guide.
Return a 2xx answer quickly (the default Immediately response is fine). If n8n is down, Agent002 retries for about 15 hours.