ActiveCampaign + Factr

Connect Factr to ActiveCampaign to automatically enrich contact records with personal insights for smarter automations.

Use case: Enrich ActiveCampaign contacts automatically with personal insights

Setup Guide

1

Get API access

Create an API user in ActiveCampaign and get your Factr API key.

2

Create custom fields

Add custom fields to ActiveCampaign contacts for enrichment data.

3

Set up enrichment workflow

Build a webhook handler that triggers Factr on new contact creation.

4

Automate on enrichment data

Create ActiveCampaign automations that branch on enriched field values.

Code Example

JavaScript / Node.js
// ActiveCampaign contact enrichment
const axios = require('axios');

async function enrichActiveCampaignContact(email) {
  // Find contact
  const contactRes = await axios.get('https://{YOUR_ACCOUNT}.api-us1.com/api/3/contacts', {
    params: { email, limit: 1 },
    headers: { 'Api-Token': process.env.AC_API_TOKEN }
  });

  const contactId = contactRes.data.contacts[0].id;

  // Enrich with Factr
  const factrRes = await fetch('https://factr.polsia.app/api/enrich', {
    method: 'POST',
    body: JSON.stringify({ email, apiKey: process.env.FACTR_API_KEY })
  });
  const { fact } = await factrRes.json();

  // Update contact custom fields
  await axios.put(`https://{YOUR_ACCOUNT}.api-us1.com/api/3/contacts/${contactId}`, {
    contact: { fieldValues: [{ field: '1', value: fact }] }
  }, {
    headers: { 'Api-Token': process.env.AC_API_TOKEN }
  });
}

Key Benefits

Ready to integrate?

Join our waitlist and get early access to Factr with priority support for your integration.