Free workflow
Reply to every enquiry in seconds.
An n8n workflow that checks each new enquiry, has Claude write a short reply that mentions what the person asked, emails it, logs it in a Google Sheet and alerts you so a real person can follow up.
The zip holds the workflow and the guide. Or take them one at a time: workflow (.json) and guide (.md)
Set-up guide
What you need
- An n8n account: n8n Cloud, or your own server
- An Anthropic API key (console.anthropic.com)
- A Google account for the log sheet
- An email account you can send from, with its SMTP details
- A form or tool that can send a webhook (WPForms, Tally, Typeform, Zapier and similar)
Import the workflow
In n8n, open Workflows, click the three-dot menu at the top right, choose Import from file, and pick
instant-reply-workflow.json.You will see the nodes in a row: New enquiry, Clean enquiry, Valid enquiry?, Draft reply, Build reply, Send reply to lead, Log to sheet, Alert owner.
Add your business details
Open the Clean enquiry node. Near the bottom of its code, change these three lines to your own values:
Clean enquiry nodebusiness_name: 'Your Business Name', booking_link: 'https://your-booking-link', // leave '' if you have none owner_email: 'you@yourbusiness.com',The AI uses business_name and booking_link in the reply. owner_email is where your alerts go.
Connect your accounts
Each of these nodes shows a red credential warning until you pick or create a credential:
- AI model: add your Anthropic API key. The workflow uses a Claude Haiku model, which is quick and cheap. If your account lists a different current Haiku model, choose that.
- Send reply to lead and Alert owner: create one SMTP credential with your mail host, port, user and password. Turn SSL/TLS on for port 465, off for port 587.
- Send reply to lead and Alert owner: set From Email to the same address as the SMTP user. Most mail hosts refuse any other address.
- Log to sheet: sign in with Google when n8n asks.
Create the log sheet
In Google Sheets, make a new spreadsheet. Rename the first tab to Instant replies. Put these headers in row 1, spelled exactly:
Row 1 headersreceived_at, replied_at, seconds_to_reply, name, email, message, source, used_fallback, statusCopy the spreadsheet ID from the address bar. It is the long string between
/d/and/edit. Paste it into the Document field of the Log to sheet node, with the dropdown set to By ID. Set Sheet to By Name and type Instant replies.The node matches columns by header name. A typo in a header leaves that column empty and gives no error.
Test it with your own email
Open the New enquiry node and click Listen for test event. Then send a fake enquiry using your own email address. On Windows, paste this into PowerShell, with your n8n address and email filled in:
PowerShell$body = @{ name = "Test Person" email = "YOUR_EMAIL@gmail.com" message = "I need help automating my bookings. What would it cost?" source = "test" } | ConvertTo-Json Invoke-RestMethod -Method Post -Uri "https://YOUR-N8N-DOMAIN/webhook-test/instant-reply" -ContentType "application/json" -Body $bodyOn Mac or Linux, use curl:
Terminalcurl -X POST "https://YOUR-N8N-DOMAIN/webhook-test/instant-reply" \ -H "Content-Type: application/json" \ -d '{"name":"Test Person","email":"YOUR_EMAIL@gmail.com","message":"I need help automating my bookings. What would it cost?","source":"test"}'After you send it, click Execute workflow if the canvas is not already running. Then check four things:
- You received the reply email, and it is not in spam.
- The reply refers to what you wrote, asks no more than two questions, and quotes no price.
- A new row appeared in the sheet with seconds_to_reply filled in.
- You received the alert email as the owner.
Go live
Click Publish in the top right of the workflow. Then point your form at the Production URL, which ends in
/webhook/instant-reply. The Test URL ends in/webhook-test/and only works while the node is listening.Your form must send JSON with these fields: name, email, message, and optionally source (for example "contact page"). Most form tools let you map their field names to these in the webhook settings.
If something goes wrong
The Send node says the connection timed out
Your mail port and encryption setting do not match, or your server blocks outgoing mail. Try port 465 with SSL/TLS on. If that fails, try 587 with SSL/TLS off. If both time out, run nc -vz YOUR-SMTP-HOST 465 on the machine that runs n8n. A hang means that server blocks outgoing SMTP, which many cloud hosts do by default. In that case replace the two email nodes with a Gmail node, which sends over HTTPS.
The reply says only "Thanks for your enquiry"
That is the safety template. It is sent when the AI step fails, so the lead still gets a reply. Open the Draft reply node and read its output for the error. The usual causes are a missing Anthropic credential or a wrong model name. The used_fallback column in your sheet shows TRUE for these.
The webhook says it is not registered, or returns 404
For testing, click Listen for test event again, because the test URL works once per click. For live use, make sure the workflow is published and the form uses the Production URL.
Some sheet columns are blank
A header in row 1 does not match the list exactly. Check spelling, spaces and underscores.
The reply lands in spam
Send from an address on your own domain, and make sure that domain has SPF, DKIM and DMARC set up with your mail provider. Test by sending to a Gmail address. Do not add links to the first reply other than your booking link.
Nothing happens when someone submits the form
The form is probably still pointed at the Test URL, or the workflow is not published. Check the Executions tab in n8n to see whether anything arrived.
Before you rely on it
- Anyone who knows your webhook address can trigger a reply from your email account. Before you put this on a public form, open the New enquiry node and set Authentication to Header Auth, then add the same header in your form tool. If your form tool cannot send custom headers, put a service that can (Zapier or Make, for example) between the form and n8n.
- The reply tells the person it was sent automatically. Keep that line. The prompt also stops the AI quoting prices or promising dates, but read the first 20 replies yourself before you trust it.
- This is for people who have just contacted you. Do not use it to send cold email to a list.
- Enquiry text goes to Anthropic's API to write the reply. Mention that in your privacy policy if you collect enquiries from people in places with data protection rules.
Dziko Digital community
Get the next guide and workflow
I build and test AI and automation workflows for small businesses and share the ones that work, each with a set-up guide like this one. Join the list and I will email you when a new one is ready. No fixed schedule.