Your First Integration
This is the fastest path from a fresh AFI install to a live integration. By the end you’ll have a Contact Form 7 signup form on your WordPress site that automatically subscribes every submitter to a Mailchimp audience. We’re using Mailchimp here because it’s the easiest receiver to connect — paste one API key and you’re done. The same flow works for almost every sender/receiver pair AFI supports, so once this clicks, the other 200+ integrations follow the same pattern.
Time required: about 5 minutes. Cost: free — AFI’s basic version and Mailchimp’s free tier (up to 500 contacts) cover this scenario.
What you’ll need
- A WordPress site (self-hosted, with admin access).
- Contact Form 7 installed and activated. Any form plugin works — we use CF7 here because it’s the most popular.
- Advanced Form Integration installed and activated.
- A Mailchimp account with at least one audience (Mailchimp creates a default one on signup).
Step 1 — Build the form
- In WordPress admin, go to Contact > Add New.
- Name the form Newsletter Signup (or anything you like).
- Paste this minimal markup into the form body (or use CF7’s tag generator):
<label> First name
[text* first-name] </label>
<label> Last name
[text last-name] </label>
<label> Your email
[email* your-email] </label>
[submit "Subscribe"]
- Click Save. CF7 prints a shortcode like
.Error: Contact form not found.
- Drop the shortcode onto any test page. Open the page in another tab and confirm the form renders.
Step 2 — Grab your Mailchimp API key
- Log in to Mailchimp.
- Click your profile (top-right) > Account & billing.
- Open the Extras drop-down > API keys.
- Under Your API keys, click Create A Key. Give it a name like AFI WordPress.
- Copy the key — it looks like
1a2b3c4d5e6f7g8h9i0j-us21. Mailchimp shows it only once, so keep this tab open or stash the key somewhere safe.
Step 3 — Connect Mailchimp in AFI
- In WordPress admin, go to AFI > Settings.
- Open the Mailchimp tab. If it’s not listed, scroll to Activate Platforms on the General tab, tick Mailchimp, and save.
- Paste your API key into the API Key field and click Save Changes.
That’s it — no OAuth flow, no developer console, no redirect URIs. AFI now talks to your Mailchimp account.
Step 4 — Create the integration
- Go to AFI > New Integration.
- Trigger > Sender: choose Contact Form 7.
- Form: choose Newsletter Signup.
- Action > Receiver: choose Mailchimp. Task: Subscribe To List.
- List: pick the Mailchimp audience you want new subscribers to land in. AFI fetches the list directly from your account using the API key you saved.
- AFI now shows the list’s merge fields. Map them:
Email Address→your-email(required by Mailchimp)First Name→first-nameLast Name→last-name
- Give the integration a name at the top of the page so you’ll recognise it later — e.g. CF7 Newsletter → Mailchimp.
- Click Save.
Step 5 — Test it
- Open the test page with your form in a new tab.
- Fill in a first name, last name, and a real email address you can check. Submit.
- Switch to Mailchimp. Open the audience you chose > Contacts. Your new subscriber should appear within a few seconds with the values you typed.
If the contact appears, congratulations — your first integration is live. Every future submission of this CF7 form will be added to your Mailchimp audience automatically.
If it didn’t work
- Open AFI > Log. The most recent entry should be your submission.
- If the status is green, AFI thinks it succeeded — refresh the Mailchimp contacts page and search by email (Mailchimp can take 5–10 seconds to surface new contacts).
- If the status is red, click the row to see the API response. Common causes: invalid email address, the contact is already in the audience with an unsubscribed/cleaned status (Mailchimp blocks re-subscribing those), or the API key was pasted with extra whitespace.
- See the Log doc for the full troubleshooting walkthrough.
What to try next
- Add a tag. In your AFI integration, you can pass a tag to Mailchimp so every contact from this form gets labelled (e.g. website-signup). Useful for downstream segmentation.
- Add conditional logic. Open the integration, scroll to Conditional Logic, and add a rule like your-email Does Not Contain @yourcompany.com to filter out internal test submissions. See Does Not Contain.
- Stack receivers. Create a second integration on the same CF7 form with a different receiver (Google Sheets, Slack, your CRM). AFI fires them both on every submission, so the same signup can populate Mailchimp and notify your team in Slack.
- Capture UTM attribution. Enable Send UTM Variables in General Settings and map
{{utm_source}}+{{utm_campaign}}to Mailchimp merge fields. Now every contact carries their original campaign attribution. See Smart Tags & Field Mapping.