Skip to content

Build a lead form

The form builder, embedding and where submissions go.

  • Lesson 3 of 7
  • Beginner
  • 6 min read
  • 2:26 video
  • Checked against the product 2026-11-03

Listen to this lesson · 2:25

In shortThe Form builder (CRM and email → Leads → Form builder) defines a lead form: its fields, what happens after someone submits, and optional follow-up emails sent through your SMTP account after a delay you set. Every submission becomes a contact and appears in Form submissions with the pages that visitor saw. Capture only works on pages with the tracking tag and with Enable CRM Features switched on for that domain.

How to use it in AI Rank Lab

  1. Find it in the dashboardCRM and email → Leads → Form builder
  2. Watch while you workOpen Form builder from here and the video plays in a small corner window of your dashboard, so you can follow each step on your own data. Expand it or go full screen any time. Open Form builder with the video
  3. Turn it into a routineThese playbooks show where this fits in a repeatable workflow:

What a lead form is for

A lead form turns an anonymous visitor into a contact you can email. In AI Rank Lab the form and the CRM are connected: when someone submits, the person is added to (or updated in) Contacts, the submission is logged with the pages they visited, and any follow-up emails you set up are queued for them.

Use it for newsletter sign-ups, demo or quote requests, and gated downloads. If your site already has a form plugin you like, you can keep it, but its submissions won't land in Contacts.

Before you start

  • The tracking tag installed on the page that will hold the form, and Enable CRM Features ticked for that domain in Setup → Tracking setup. See Set up tracking, CRM and SMTP.
  • For follow-up emails: at least one email template and one active SMTP account. The builder won't let you add an email trigger without both.

Step by step

  1. Start a new formGo to CRM and email → Leads → Form builder and click New Form (or Build Form if you have none yet). The builder opens with two fields already in place, Full Name and Email Address, and a Live Visual Form Preview on the right.
    The form builder with Form Basic Details, a Fields Architect panel listing Full Name and Email Address fields, and a Live Visual Form Preview panel on the right showing the rendered form with a Submit Form button.
    Edit on the left, preview on the right.
  2. Name the form and set up fieldsUnder Form Basic Details, fill in Form Identifier Name; this is for you and shows in the submissions log. In Fields Architect, click Add Field for each extra question. For each field set the Field ID, Field Type (Text Input, Email address, Telephone number, Textarea Box, Dropdown Select, Checkbox toggle or Radio Options), Label Title and Placeholder. Dropdown and radio fields take Options (comma-separated).
  3. Choose what happens after submissionUnder On-Success Redirection & Scripts, pick Show Message and write the Success Message Content, or pick Redirect URL and enter a thank-you page. Developers can add a Success Script Callback or Error Script Callback in JavaScript.
  4. Add follow-up emails (optional)Under Automated Email Sequences, click Add Email Trigger. Set the Sender Name, Delay Hours, Email Subject, Select Template and SMTP Account. Each trigger sends one email to the new contact after its delay. Add several triggers for a short sequence.
    The Automated Email Sequences panel with one email trigger showing Sender Name, Delay Hours set to 24, Email Subject, a Select Template dropdown and an SMTP Account dropdown.
    One trigger per email in the sequence.
  5. Save, then copy the embed codeClick Save and Deploy Form. Open the form again with Edit Field Setup and an Installation Embed Code box appears with the form's ID in a data-crm-form attribute.
  6. Put the form on your pageThe tracking tag captures submissions from any <form> element that carries data-crm-form="your-form-id". It reads each input by its name, so give every input the same name as its Field ID in the builder. Submission is sent to AI Rank Lab instead of reloading the page, and your success message or redirect runs.
  7. Read submissionsGo to CRM and email → Leads → Form submissions. The Forms Submissions Log lists Timestamp, Form Name, Submitter Details, Location / IP and Last Visited Path. Open a row to see every field and the visitor's page history.
    The Forms Submissions Log table with columns Timestamp, Form Name, Submitter Details, Location / IP, Last Visited Path and an Action button, with a details dialog open showing Form Data Fields and User Journey Tracking.
    Each submission keeps the pages that led to it.
The embed snippet does not draw the form

The snippet shown in the builder is a <div data-crm-form="…">. The tracking tag does not build a form inside that div; it only captures submissions from a <form> element that carries the attribute. Write the form in your page or site builder, add the attribute to the <form> tag, and name the inputs after your Field IDs. A form with no email input is rejected, because the email is what creates the contact.

What happens to each submission

  • The email address finds or creates a contact. A name field fills the contact's name if it was empty. Other answers are saved as custom fields named after the field label.
  • The submission is logged with the first page the visitor saw and their page history in that browser session.
  • Each email trigger is queued and sent through your SMTP account once its delay has passed. Contacts who have unsubscribed are skipped.
If submissions stop arriving

Every save marks a form Active, and the builder has no pause switch today, so a form card normally shows Active. If submissions stop arriving, check that Enable CRM Features is still ticked for the domain and that your credit balance is above zero, because the tag stops when the balance reaches zero.

Emails from other forms

With CRM features on, the tag also notes email addresses typed into other forms on your site and attaches them to that visitor's session, which helps you put a name to a recording.

Check yourself

1. You pasted the builder's `<div data-crm-form>` snippet on a page, but no form appears. Why?
2. Which setting must be on for form submissions to be captured?
3. What do you need before you can add a follow-up email trigger to a form?

0 of 3 answered.

Progress is saved in this browser.

Screenshots and video come from an AI Rank Lab demo account. Where a screen needs data that account doesn't have, such as a connected Google account or real visitors, it shows fictional example.com data.

Transcript
In this lesson you'll build a lead form, put it on your site, and see where the submissions go. First, a check. Forms only work on pages that carry the AI Rank Lab tracking tag, and only when Enable CRM Features is ticked for that domain in Setup. If you haven't done that yet, go back to the setup lesson. Open CRM and email, then Leads, then Form builder, and click New Form. You start with two fields, full name and email address, and a live preview on the right. Give the form a name. That's just for you. Then add the fields you need. Each field has an ID, a type, a label and a placeholder. Dropdowns and radio buttons take a comma-separated list of options. Remember the field IDs. You'll need them in a minute. Next, decide what happens after someone submits. Either show a thank-you message, or send them to a thank-you page. Then the useful part: follow-up emails. Click Add Email Trigger, pick a template and an SMTP account, write a subject, and set a delay in hours. Each trigger sends one email after its delay. Add two or three for a short welcome sequence. You'll need at least one template and one SMTP account before this works. Click Save and Deploy Form. Open the form again, and you'll see the embed code with the form's ID. Here's the honest part. That snippet is a div, and the tracking tag doesn't draw a form inside it. What the tag does is capture submissions from any form element that carries the same data-crm-form attribute. So build the form in your page or site builder, add the attribute to the form tag, and give each input the same name as its field ID. Make sure there's an email input, because the email is what creates the contact. When someone submits, three things happen. They're added to Contacts, or updated if they already exist. The submission is logged with the pages they visited. And your follow-up emails are queued and sent through your SMTP account when each delay has passed. You'll find every entry under Leads, then Form submissions. Open one to see every answer and the visitor's path through your site. Building forms and collecting submissions doesn't use credits. In the next lesson, you'll send your first email campaign.

Put the lesson to work

Paste your site and get a free SEO, AEO and GEO audit with the fixes, then come back to the next lesson.