AFI AFI

Smartlead

Estimated reading: 2 minutes Updated August 1, 2026

Smartlead.ai is a cold email outreach and lead generation platform. Advanced Form Integration adds leads to your Smartlead campaigns from WordPress form submissions.

What you’ll need

  • An active Smartlead.ai account.
  • Your Smartlead.ai API credentials (see below).
  • The Advanced Form Integration plugin installed and activated.

Get your Smartlead API key

  1. Sign in to your Smartlead dashboard.
  2. Go to Settings → API Keys and generate a new API Key.
  3. In WordPress, go to AFI → Settings → Smartlead.ai.
  4. Click Add Account, paste the API Key, and give the account a name.
  5. Click Save.

The API key is passed as a query parameter on each request.

Create the integration

  1. Go to AFI → Add New.
  2. Give the integration a name, for example Form to Smartlead.ai.
  3. Under Trigger, pick the form plugin and the specific form.
  4. Under Action → Platform, select Smartlead.ai.
  5. In Task, choose Add Lead to Campaign.
  6. Pick the saved account.
  7. Map your form fields onto the fields listed below.
  8. Optional: open Conditional Logic to limit which submissions are sent.
  9. Click Save Integration.

Screenshot: AFI field-mapping screen with Smartlead campaign and lead fields visible

Tasks supported

Add Lead to Campaign

Adds a lead to a selected Smartlead campaign. Campaigns are loaded from the API for the dropdown.

Field Field key Required Notes
Email email Yes
First Name first_name No
Last Name last_name No
Campaign ID campaignId Yes Selected from dropdown

Pro features

The Pro integration extends the free version with additional capabilities. Pro uses the same Smartlead.ai connection.

Feature comparison

Feature Free Pro
Add lead to campaign
Standard fields
Custom fields No

Conditional logic example

Only send data to Smartlead.ai when specific conditions are met. For example, add a condition on a form field to control which submissions are forwarded.

Troubleshooting

Nothing arrives in Smartlead.ai

Open AFI → Log and find the most recent entry. AFI stores the request URL, body, and raw response.

API credentials rejected

Verify your credentials in your Smartlead.ai account settings. If they were regenerated, update them in AFI → Settings → Smartlead.ai.

Related docs