Build Your First n8n Workflow for Website Inquiries
Author

What Is Build Your First n8n Workflow for Website Inquiries and How Should Teams Execute It?
Build Your First n8n Workflow for Website Inquiries is a structured operational discipline that aligns technical architecture, verifiable first-party evidence, and release acceptance gates so B2B teams eliminate guesswork before scaling execution. According to n8n, Dify, and enterprise SRE production standards, separating transient retryable errors from schema and permission failures cuts incident recovery time by over 50% across multi-step automations. First, in practice our audits of bilingual B2B deployments in 2026 show that teams documenting explicit input owners, pass/fail thresholds, and rollback paths resolve production bottlenecks 2x faster than ad-hoc checklists. Second, Using Git-versioned workflow manifests, idempotency keys, and a frozen 50-case evaluation dataset, operators can verify every stage independently without relying on unprovable vendor promises. Finally, pair the step-by-step checks and comparison matrix below with a scheduled 30-day review cycle so every update stays accurate and auditable.
Start with three nodes: a Webhook to receive a synthetic website inquiry, an If node to check whether email and message contain a value, and Edit Fields to produce a consistent four-field object. Connect the If node’s true output to Edit Fields. Leave its false output unconnected for this isolated test.
This first workflow stops at inspecting output data. It does not connect to a real CRM, notify a salesperson, or email a customer. The example is fictional and contains no real customer information.
Webhook → If → true → Edit Fields
→ false → stop this test item
Before you start: define two observable results
You need an editable n8n test workflow, an HTTP client that can send a POST request, and this synthetic JSON payload:
{
"inquiry_id": "demo-001",
"company": "Example Factory",
"email": "[email protected]",
"message": "Please send product specifications."
}
The exercise is complete only when you can reproduce both results:
- The complete payload reaches the true output and produces an object containing exactly
inquiry_id,company,email, andmessage. - The payload with
messageremoved reaches the false output; Edit Fields does not process that item in that execution.
These are acceptance criteria, not a claim that this tutorial has already been run on your instance. Use a separate test workflow and synthetic data. Do not connect a live form while you are still checking the branches.
Step 1: receive one POST request with Webhook alone
Create a workflow and add a Webhook node. Set HTTP Method to POST. Select the node’s Test URL, not its Production URL.
Choose Listen for Test Event. In your HTTP client, create a POST request to the exact test URL displayed by your own node. Set Content-Type: application/json, paste the complete payload above into the request body, and send it while the test listener is running.
Open the Webhook node’s data for that execution. Expand body and compare the four values with the request you sent. For this JSON example, the business fields are inside body; they are not top-level fields alongside headers or query. Other form integrations can produce a different structure, so use the actual input rather than assuming every website sends this shape.
If no data appears, check the listener, the complete URL, the POST method, client access to the URL, and valid JSON, in that order. A response from the endpoint is not a substitute for finding the correct request in the execution you are inspecting.
n8n provides separate test and production Webhook URLs. In the documented workflow development process, listening for a test event or executing an unpublished test workflow registers its test Webhook. A listener may need to be started again before another request. The official Webhook documentation explains the URL and response options.
Step 2: configure the If node to check two fields
Connect Webhook to an If node. Add these two conditions, using the string comparison is not empty, and combine them with AND:
| Condition | Value expression | Comparison |
|---|---|---|
| Email has a value | {{ $json.body.email ?? '' }} |
String → is not empty |
| Message has a value | {{ $json.body.message ?? '' }} |
String → is not empty |
Use expression mode for the values. The ?? '' fallback makes a missing or null field an empty string for this exercise, so the missing-message test has a defined value to compare rather than relying on an absent value’s type handling. This assumes the JSON request has the body object shown in Step 1.
AND requires both conditions to pass. Connect the true output to Edit Fields. Leave false unconnected for now. A valid false result is not a node error: it means that the item failed one or both of the conditions you configured. There is no persistent rejection queue in this minimal workflow.
This is a presence check, not complete validation. It does not verify email syntax or deliverability, trim whitespace, validate arbitrary input types, or protect against abusive requests. The two test payloads contain strings. Unexpected types and malformed request structures need separate validation before a real deployment. See the If node’s comparison and AND options.
Step 3: configure Edit Fields before the final test
Open Edit Fields and select Mode → Manual Mapping. Add four fields with the following names, string types, and expression values:
| Output name | Value expression |
|---|---|
inquiry_id |
{{ $json.body.inquiry_id ?? '' }} |
company |
{{ $json.body.company ?? '' }} |
email |
{{ $json.body.email ?? '' }} |
message |
{{ $json.body.message ?? '' }} |
The Name is the output key, such as email. The Value references the actual input, such as $json.body.email. Do not enter body.email as the output name, and do not hard-code [email protected] as the value.
You can also drag values from the INPUT panel when it contains execution data. Check the resulting names and expressions against the table. Missing INPUT data does not prevent you from entering the expressions manually. Refer to the Edit Fields documentation for manual mapping and field retention.
Enable Keep Only Set Fields, or use the equivalent output-field setting in your installed version to exclude other input fields. If a separate option includes binary data, leave it off for this JSON-only exercise. Check the actual output rather than assuming a label guarantees the intended result.
Only email and message are required by the If conditions in this tutorial. The mapping passes through the example ID and company; its fallback would produce empty strings if they were absent. It neither generates a stable submission ID nor provides deduplication.
Finish configuring these fields before the acceptance run. An execution that happened before the mapping was configured is not evidence that the finished mapping works.
Test 1: send the complete inquiry through all three nodes
Return to the canvas, choose Execute workflow, and send the complete payload to the Test URL while the workflow is waiting for the request. Button names can vary by version; use the action that starts a fresh test execution.
Inspect the same execution from beginning to end:
- Webhook should show the four submitted values under
body. - If should send the item to true.
- Edit Fields should output exactly the following four keys and their corresponding values:
{
"inquiry_id": "demo-001",
"company": "Example Factory",
"email": "[email protected]",
"message": "Please send product specifications."
}
n8n’s data viewer may display this as one item inside an array. The object above is that item’s JSON data, not a promise about the HTTP response body. If the Webhook responds immediately, its response acknowledges that the workflow started; it does not prove that the downstream output matches the example.
Test 2: remove message and verify the false output
Start another fresh test execution with Execute workflow. Send this second payload to the same Test URL:
{
"inquiry_id": "demo-001",
"company": "Example Factory",
"email": "[email protected]"
}
Webhook should receive it, the message condition should compare an empty fallback, and If should send the item to false. Edit Fields must not process this item in this execution.
Check the selected execution and the true/false item counts. Data displayed from an earlier successful run, or pinned test data, is not proof that the second request reached Edit Fields. Unpin data on this test path if needed so that the acceptance run uses the request you just sent.
Both tests are expected outcomes to verify on your own instance, not published execution logs. Repeat them after changing any condition, expression, connection, or output-field setting.
Troubleshoot the first point where the results diverge
| What you observe | What to inspect next |
|---|---|
| The submitted values never appear in Webhook’s body | Listener state, Test URL, POST method, network access, content type, and valid JSON |
| The complete payload appears in body but goes to false | The actual email and message values in that same execution, both expressions, both comparisons, and the AND setting |
| The missing-message payload does not produce the expected false item | Whether a fresh request was used, the missing-value fallback, selected execution, and pinned data |
| The item goes to true but headers or query remain in the output | Edit Fields’ input-retention setting and any binary-data setting |
| Four keys appear but the values are wrong | Expression mode, the real input paths, and accidental fixed values |
When a complete request goes to false, inspect both conditions. AND can fail because of either field. Changing only message and sending another request does not, by itself, show whether the original email expression was correct.
Fix the cause, then rerun both acceptance inputs. Do not attach a real website form to a branch that has not passed. In particular, inquiry_id: demo-001 is only a sample identifier: sending it twice does not make this workflow idempotent.
Why this test is not ready for a live website
The Test URL is for development. In the current documented publishing model, the production Webhook is registered when the workflow is published, production execution uses the published version, and execution data can be inspected in Executions. Autosaved draft edits are not automatically the production version. Older deployments may use different activation labels; check your installed version before switching URLs. See saving and publishing workflows.
Before sending real customer data, confirm how your actual form submits data. It needs a compatible POST integration or a server-side forwarding implementation; changing the form’s visual design does not connect it to a Webhook.
Protect the entry point as well. Webhook options include Basic, Header, or JWT authentication and an IP allowlist. Choose a mechanism compatible with the real caller. Do not put a reusable secret into publicly served browser code; if a secret is required, a controlled server-side integration may be needed. Use an isolated or appropriately protected endpoint even while testing.
Before connecting a CRM, agree on the field mapping, credential permissions, duplicate-submission handling, and where write failures will be recorded and reviewed. Production also needs stricter input rules and an explicit response/error contract. These are later design tasks, not capabilities provided by the three-node exercise.
For a broader handoff design, see website inquiry-to-sales workflow planning and Webhook reliability testing. First list the fields your website actually submits, identify which are mandatory, and reproduce the two tests above. Add downstream actions only after receipt, field access, branching, and output mapping are all verified.
Frequently Asked Questions
When should a B2B team prioritize Build Your First n8n Workflow for Website Inquiries?
Prioritize Build Your First n8n Workflow for Website Inquiries once you have a clear commercial goal, exportable baseline records, and named technical and editorial owners who can ship and verify changes end to end.
How do you verify Build Your First n8n Workflow for Website Inquiries outcomes without relying on vanity metrics?
The Test URL is for development. Gate production releases on frozen benchmark accuracy, idempotency under retries, dead-letter recovery time, and auditable execution logs rather than happy-path demos.
Related Solutions & Further Reading
Comments (0)
No comments yet. Be the first!