Skip to content
NEWMarketplace and your team: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / Lead Generation & Enrichment

Lead Generation & Enrichment

Reply to new leads automatically with OpenAI, Gmail and Google Sheets

Runs when a form enquiry arrives: OpenAI filters spam and drafts a short reply, Gmail sends it, and Google Sheets logs the lead.

What it does

## Speed-to-lead Replies to every new enquiry in seconds, in your own tone, and tells you about it. ### What it does 1. An enquiry arrives from the n8n form or your own website form. 2. OpenAI checks it for spam. Spam is logged, never answered. 3. If the same email address had a reply in the last 24 hours, it is not answered twice. 4. OpenAI writes a short, warm reply that thanks them, confirms what they asked about and gives your booking link. It is told never to mention prices, dates or availability, and a check swaps in a plain fixed reply if it spots one. 5. Gmail sends it, or saves it as a draft while DRAFT_ONLY is on. 6. You get an email with the lead's details. SMS and Telegram are ready to switch on. 7. Every enquiry is logged in a Google Sheet, with the seconds it took to reply. ### Setup in 5 steps 1. Credentials. OpenAI as a Header Auth credential (name Authorization, value Bearer YOUR_KEY) on the two OpenAI nodes. Gmail on the three Gmail nodes. Google Sheets on the two sheet nodes. 2. Sheet. Make a blank Google Sheet and paste its web address into Settings. The column names are written when the first lead comes in. 3. Settings. Fill in your business name, services, tone, booking link and email. Leave DRAFT_ONLY on for your first week. 4. Go live. Press Publish (on older n8n, switch the workflow to Active). Share the Enquiry form Production URL, or send your website form to the Website form Production URL. After any later change, publish again. 5. Test. Send yourself an enquiry, then check the draft, the alert and the sheet.

The steps

  1. Enquiry form
  2. Website form
  3. Settings
  4. Tidy the enquiry
  5. Spam check (OpenAI)
  6. Read the spam check
  7. Route
  8. Look up earlier replies
  9. Replied in the last 24 hours?
  10. Repeat enquiry?
  11. Write the reply (OpenAI)
  12. Check the reply
  13. Draft only?
  14. Save as Gmail draft

25 steps in total.

Similar automations