Smartlead
Overview
The AFI plugin allows you to connect your WordPress forms with Smartlead.ai, enabling automated lead creation in your Smartlead campaigns. When a user submits a form on your site, their data is instantly added as a new lead in your selected Smartlead campaign.
This integration is ideal for cold email outreach, lead generation, and sales automation workflows.
โ Supported Feature
-
Add Lead to Smartlead Campaign
๐ง How To Setup
Step 1: Get Your Smartlead API Key
To connect your Smartlead account:
-
Log in to your Smartlead.ai dashboard
-
Go to Settings โ API
-
Copy your API Key
Step 2: Connect Smartlead in AFI
-
Navigate to
AFI โ Settings โ Smartlead -
Paste your API Key in the designated field
-
Click Save Changes
You can connect multiple Smartlead accounts by saving multiple credentials.
Step 3: Create a New Integration
-
Go to
AFI โ Add New -
Add a title like โSmartlead Campaign Entryโ
๐น Trigger
-
Form Provider: Choose the form plugin you use (e.g., WPForms, Fluent Forms, Elementor, etc.)
-
Form Name: Select the form you want to connect
Step 4: Configure the Action
-
Platform: Select Smartlead.ai
-
Task: Select Add Lead to Campaign
Step 5: Map Fields
After selecting the task:
-
Smartlead Account
Choose the connected account (credential) from the dropdown -
Campaign
Select a campaign from your Smartlead account (populated automatically) -
Field Mapping
Map your form fields to Smartlead lead fields such as:-
Email
-
First Name
-
Last Name
-
Company
-
Custom fields (if any)
-
These values will be used to create new leads in the selected campaign.
Step 6: Save Integration
Click Save Integration to complete the setup.
๐ Now, every form submission will automatically add a lead to your Smartlead campaign!
๐ Troubleshooting
If your integration isnโt working as expected:
๐น Check the Logs
Go to AFI โ Log and inspect the request/response to diagnose issues.
๐น Invalid API Key
Ensure the API key is correct and active from your Smartlead dashboard.
๐น Campaigns Not Loading
Check if you selected a valid Smartlead account. Re-select it to fetch the latest campaigns.
๐น Leads Not Adding
Ensure that required fields like Email are properly mapped and not empty.
๐น Error in Logs
Look for 4xx or 5xx response codes. Invalid data or authentication issues are commonly the cause.