Overview
The AFI plugin lets you connect your WordPress forms with Campayn, so new form submissions can be automatically added as subscribers to your Campayn mailing lists.
This is ideal for managing your newsletter signups and growing your email marketing list with ease.
✅ Supported Features
Add contact to a selected Campayn mailing list
Map form fields to standard and custom Campayn contact fields
Support for multiple Campayn accounts
🔧 How To Setup
Step 1: Connect Your Campayn Account
Campayn uses API Key-based authentication. To connect your account:
Go to AFI → Settings → General
Enable Campayn and click Save Changes
A Campayn tab will appear — click on it
Enter your API Key
📌 How to Get Your API Key:
Log in to your Campayn account
Go to Settings → API
Copy the API Key
Paste it into the AFI Campayn tab
Click Save
You can add multiple Campayn accounts this way if needed.
Step 2: Create a New Integration
Navigate to AFI → Add New
You’ll land on the New Integration setup screen
🔹 Title
Choose a name for the integration, like “Newsletter Signup – Campayn”
🔹 Trigger
Form Provider: Choose your form plugin (e.g., Contact Form 7, WPForms, Elementor)
Form/Task Name: Select the form to connect
Step 3: Configure the Action
🔹 Platform
Select Campayn
🔹 Task
Choose Add Contact to List
This will send new form submissions to your selected Campayn mailing list.
Step 4: Map Fields
After selecting the task, configure the following:
🔹 Campayn Account
Select the connected Campayn account from the dropdown.
🔹 Mailing List
Choose the mailing list where you want to add the contact.
The plugin fetches your lists using the selected credentials.
🔹 Subscriber Fields
Map your form fields to Campayn fields:
Email (required)
First Name
Last Name
Custom Fields (if any)
Use the dropdowns to match form fields with Campayn fields easily.
Step 5: Save Integration
Click Save Integration at the bottom of the page.
🎉 Done! Now, whenever someone submits the connected form, their data will be sent directly to your selected Campayn list.
🔍 Troubleshooting
If the integration isn’t working:
Go to AFI → Log
Check the log entry related to your Campayn integration
Make sure that:
The API Key is correct and valid
The correct List is selected
Required fields like Email are mapped and filled
No API error is returned (e.g., permission denied, invalid data)