Auto-Sync SaaS Product Data + CRM into a Webflow Marketing Site

Auto-Sync SaaS Product Data + CRM into a Webflow Marketing Site

Webflow
AI
CMS
CRM
n8n
Hubspot
Published Date: July 16, 2026

SaaS marketing sites rot the moment the product moves faster than the marketer. New integration ships, the directory is stale. New release, the changelog is a week behind. A form gets filled, and the UTM source is lost by the time it reaches sales.

This workflow closes all three gaps by treating the Webflow CMS as a presentation layer that automation keeps fresh:

  1. Product → Webflow. A scheduled n8n job pulls your live integrations list and release notes from your product API and upserts them into Webflow CMS collections via the Data API v2.
  2. Webflow → HubSpot. The form sends contact details to n8n, which maps the fields into a HubSpot form submission. HubSpot can match contacts by email. Visitor-cookie context is optional and must follow the visitor’s analytics-consent choice.
  3. Visitor → personalized page. A small client script swaps hero content by campaign parameter.

This guide explains the workflow structure and includes recovered examples with corrections and limitations. Adapt the collection schema, input format, form fields and consent setup, then test in a controlled environment before use. The illustrations and table contents have not been verified. This is not a ready-to-run workflow.

Architecture diagram: nightly n8n job fetches product API data, diffs against Webflow CMS items, creates or updates them and publishes; visitor form with UTM data goes through an n8n webhook to a HubSpot upsert

Prerequisites

Prerequisites table: Webflow site API token, collection IDs, n8n instance, HubSpot private app token and product data source, with where to get each

Webflow Data API base URL: https://api.webflow.com/v2. Auth header on every call: Authorization: Bearer YOUR_WEBFLOW_TOKEN.

Webflow CMS collections (the presentation layer)

Create two collections. The critical field is External ID — the product's own primary key for each record. It's how the sync matches an existing item instead of creating duplicates.

Integrations collection fields

Webflow CMS Integrations collection fields: Name, Slug, External ID, Category, Logo, Description and Status with types and notes

Changelog collection fields: name, slug, external-id, release-date (date), body (rich text), version (plain text), type (option: feature/fix/improvement).

n8n sync (product → Webflow CMS)

Node-by-node. Runs nightly; upserts by External ID.

Node 1 — Schedule Trigger — daily, e.g. 04:00.

Node 2 — HTTP Request: fetch product data

GET https://api.yourproduct.com/integrations (Bearer your product token). Returns an array like [{ id, name, category, logoUrl, description, status }, ...].

Node 3 — HTTP Request: get existing Webflow items (to diff)

Recovered request example. Fetch every page using limit/offset and the returned pagination total, and select the intended CMS locale. Aggregate all items before matching; the first 100 items are not the complete collection.

GET https://api.webflow.com/v2/collections/{COLLECTION_ID}/items?limit=100&offset=0
Authorization: Bearer {WEBFLOW_SITE_TOKEN}
accept: application/json

Paginate with offset if you have >100 items.

Node 4 — Code: separate creates from matched-item updates

Recovered original, shown for explanation. This code queues EVERY matched item for update; it does not compare field values. It assumes one product record per n8n item and a single aggregated Webflow items array. Normalize these inputs for the selected Code-node mode before use. Validate unique, nonempty external IDs and names; use a Map for matching. The ASCII slug rule can produce an empty Hebrew slug, and regenerating existing slugs can change URLs. Preserve existing slugs and validate new ones. Map option/reference IDs to the actual schema; status="live" is only a custom field value, not a publishing flag. logoUrl is not mapped.

// n8n Code node: Run Once for All Items
const existing = $('Get Webflow items').all().flatMap(i => i.json.items ?? []);
const byExternalId = new Map(existing.map(it => [it.fieldData['external-id'], it]));

const slugify = s => s.toLowerCase().replace(/[^a-z0-9]+/g, '-').replace(/^-|-$/g, '');

const creates = [];
const updates = [];
for (const { json: p } of $input.all()) {
  const fieldData = {
    name: p.name,
    'external-id': String(p.id),
    category: p.category,
    description: p.description,
    status: p.status
  };
  const match = byExternalId.get(String(p.id));
  if (match) {
    updates.push({ id: match.id, fieldData });   // every match is queued, changed or not
  } else {
    creates.push({ fieldData: { ...fieldData, slug: slugify(p.name) } });
  }
}

return [{ json: { creates, updates } }];

Node 5 — HTTP Request: create new items (live)

Recovered n8n expression example, not standalone JSON. Configure a JSON object body in the HTTP Request node; skip empty creates and split the array into supported request sizes. Node batching alone does not split an array inside one input item. Branch create and update requests from the prepared data so one response does not replace the other branch’s input. Live creation publishes immediately; use staged creation when editorial review is needed.

POST https://api.webflow.com/v2/collections/{COLLECTION_ID}/items/live
Authorization: Bearer {WEBFLOW_SITE_TOKEN}
Content-Type: application/json

Body (n8n expression):
{{ { "items": $json.creates.map(c => ({ isArchived: false, isDraft: false, fieldData: c.fieldData })) } }}
Live creation supports a single fieldData object or a nonempty items array. Choose one body format. Check the endpoint limits before configuring array chunks.

Node 6 — HTTP Request: update matched items (live)

Revised request outline using the current bulk update endpoint, not the recovered single-item outline. Configure the JSON body as an object expression. Send at most 100 published items per request, skip empty updates, and include the intended cmsLocaleId per item when needed. This still updates all matches unless a real field comparison is added.

PATCH https://api.webflow.com/v2/collections/{COLLECTION_ID}/items/live
Authorization: Bearer {WEBFLOW_SITE_TOKEN}
Content-Type: application/json

Body (n8n expression, max 100 items per request):
{{ { "items": $json.updates.slice(0, 100).map(u => ({ id: u.id, fieldData: u.fieldData })) } }}

For bulk, PATCH /items/live updates up to 100 items in one call.

Node 7 — (optional) Publish — if you created staged items instead of live:

Revised primary-locale request outline. itemIds must contain actual IDs returned from staged writes, not external IDs. Do not publish again after live creation/update. For secondary locales, use the documented item-and-locale payload. Check publishedItemIds and errors; an accepted response alone does not prove every item published.

POST https://api.webflow.com/v2/collections/{COLLECTION_ID}/items/publish
Authorization: Bearer {WEBFLOW_SITE_TOKEN}
Content-Type: application/json

{
  "itemIds": ["{STAGED_ITEM_ID_1}", "{STAGED_ITEM_ID_2}"]
}

Duplicate Nodes 2–7 for the Changelog collection (or parameterize with a loop over both collection configs).

Want to apply this to your setup?

Tell us about your stack and we’ll break down how this playbook would work for you.
See How

HubSpot lead pipe with UTM attribution

Keep the form design, choose one submission route to n8n, and map its fields to a configured HubSpot form. A form action and a Webflow form-submission webhook are different routes: choose and test one so a single visitor submission is not sent twice. The example below stores no attribution in cookies or localStorage. It uses current-page UTMs only when analytics consent is granted.

Step A — Current-page attribution and optional visitor context

This revised example assumes the HubSpot consent API is already integrated with your real consent manager. For another CMP, map its actual analytics state; unknown or denied consent leaves optional attribution blank. Cookie presence is not consent. Add data-wff-attribution="true" only to the intended form, with hidden fields utm_source, utm_medium, utm_campaign, utm_term, utm_content, hubspotutk, analytics_consent, pageUri and pageName. Keep visible email/firstname mappings explicit. This captures only current-page attribution; it does not store first-touch or cross-page attribution.

<script>
document.addEventListener('DOMContentLoaded', () => {
  const form = document.querySelector('form[data-wff-attribution="true"]');
  if (!form) return;
  const params = new URLSearchParams(location.search);
  const consent = window.wffAnalyticsConsent === true; // set by your consent tool
  const set = (name, value) => {
    const input = form.querySelector(`input[name="${name}"]`);
    if (input) input.value = String(value ?? '').slice(0, 255);
  };
  set('analytics_consent', consent ? 'granted' : 'unknown');
  set('pageUri', location.origin + location.pathname);
  set('pageName', document.title);
  if (!consent) return; // no consent: optional attribution stays blank
  ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content']
    .forEach(key => set(key, params.get(key)));
  const hutk = document.cookie.match(/(?:^|;\s*)hubspotutk=([^;]+)/);
  set('hubspotutk', hutk ? decodeURIComponent(hutk[1]) : '');
});
</script>

Step B — Send one validated form submission to n8n

Choose one route from Webflow to n8n: a form action or a Webflow form-submission webhook. Verify its actual body, then normalize to email, firstname, the five UTM fields, analytics_consent, hubspotutk, pageUri and pageName. Validate email format, lengths and allowed input sizes on the server; allow pageUri only from your public origin/path. Hidden fields are client-controlled: analytics_consent transports a state, not independent proof of consent. Follow the actual CMP/form contract. Never forward the entire request, cookies or headers. Test that one visitor submission produces one processed submission.

Step C — Build the HubSpot form payload

Configure the HubSpot form to accept email/firstname and the five intended UTM properties. The Code node below uses Run Once for Each Item and assumes the preceding step already normalized and validated its input. It builds data only; it makes no HTTP request. The email-presence check is not a full email validator.

// n8n Code node: Run Once for Each Item (builds data only, no HTTP request)
const s = $json;
if (!s.email) throw new Error('Missing email');

const consented = s.analytics_consent === 'granted';
const fields = [
  { name: 'email', value: s.email },
  { name: 'firstname', value: s.firstname ?? '' },
  ...['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content']
    .filter(k => consented && s[k])
    .map(k => ({ name: k, value: s[k] }))
];

const context = { pageUri: s.pageUri, pageName: s.pageName };
if (consented && s.hubspotutk) context.hutk = s.hubspotutk;

return { json: { fields, context } };

Send the resulting JSON object from n8n to HubSpot using a separate HTTP Request node: POST https://api.hsforms.com/submissions/v3/integration/submit/{PORTAL_ID}/{FORM_GUID}, with Content-Type: application/json. Use your configured portal/form IDs. The authenticated secure/submit endpoint has separate authentication requirements. Do not expose credentials or use deprecated skipValidation. Handle API errors explicitly.

HubSpot can update an existing contact with the submitted email address. When analytics consent permits it and the visitor’s HubSpot cookie is available, context.hutk can help associate the submission with visitor activity. Omit hutk when unavailable; do not manufacture a token. It is not a guarantee against duplicates or incorrect contact association. Check your form’s deduplication settings and repeated same-email submissions.

Analytics-cookie consent and the form’s permission to process data or send communications are separate choices. Do not infer one from the other. If your HubSpot form requires legalConsentOptions, map the visitor’s actual form choices and approved notice text to the correct configured fields. Do not hardcode consentToProcess=true, fabricate a lawful basis, or treat a cookie as permission to subscribe. The payload above omits legalConsentOptions and is incomplete for a form that requires it.

With granted analytics consent but no cookie, authorized UTMs can be included and hutk is omitted. With denied or unknown consent, UTMs and hutk are omitted; ordinary form processing follows its separate configured requirements. These examples have not been integration-tested.

Personalization (optional)

Swap hero proof points by campaign, invisible to the marketer editing the page:

Recovered personalization example, shown for explanation. Run only after the intended hero elements exist. An unknown industry value hides every matching element, and the selector is page-wide. Before implementation, scope it to the hero, verify an exact supported variant before hiding anything, and retain an accessible default for missing/unknown values or disabled JavaScript. Test keyboard access and layout. This example stores no data.

<script>
(() => {
  const industry = new URLSearchParams(location.search).get('industry');
  if (!industry) return;
  document.querySelectorAll('[data-industry]').forEach(el => {
    el.style.display = el.dataset.industry === industry ? '' : 'none';
  });
})();
</script>

Tag hero variants with data-industry="finance" etc.; paid campaigns append ?industry=finance.

Gotchas & error handling

  • Rate limits. Check the current limits for your plan and endpoint. Batch supported requests and honor rate-limit responses with bounded retries and backoff.
  • Slug collisions. Validate nonempty, unique slugs before creation. Preserve existing slugs during routine syncs; inspect validation errors instead of assuming every collision returns 409.
  • Repeat runs. Match by validated external-id within the correct locale after full pagination. Detect duplicate IDs and prevent overlapping runs. This read-then-write example is not an atomic upsert and does not guarantee duplicate prevention.
  • Draft vs live. Creating via /items/live publishes immediately. Use staged /items + /items/publish if you want editorial review before go-live.
  • Locales. Select the intended cmsLocaleId for reads and writes. For creating an item across several locales, use staged creation and the documented locale-aware publish request. Check each locale separately.
  • HubSpot can update an existing contact with the submitted email address. When analytics consent permits it and the visitor’s HubSpot cookie is available, context.hutk can help associate the submission with visitor activity. Omit hutk when unavailable; do not manufacture a token. It is not a guarantee against duplicates or incorrect contact association. Check your form’s deduplication settings and repeated same-email submissions.

Validation checklist

  • Confirm the collection IDs, field types and target CMS locale.
  • Test product input normalization and complete Webflow pagination, including more than 100 items.
  • Run twice in a controlled environment and check for duplicate external IDs, partial failures and overlapping executions. Zero new items on the second run is an expected test outcome, not a universal guarantee.
  • Change one product record and inspect the update payload. The recovered Node 4 queues all matches; add a field comparison before expecting only one update.
  • Test repeated same-email submissions, granted consent with and without a cookie, denied/unknown consent and revocation. Verify actual form requirements and error handling.
  • Test the hero with a supported value, an unknown value, no parameter and JavaScript disabled; preserve a visible default.

Related services: Webflow development · AI & automation (Make / Zapier / n8n) · CRM & HubSpot integration · WordPress to Webflow migration · Book a SaaS marketing site audit

Frequently Asked Questions

Will the sync create duplicate items in my Webflow CMS?

Matching validated external IDs helps update the intended items, but duplicate IDs, incomplete pagination and simultaneous runs can still create problems. Test repeated runs and partial failures before production.

Does this only work with HubSpot, or can I use Salesforce?

The integration pattern can be adapted to other CRMs, but their authentication, matching rules, fields and error handling differ. This example uses HubSpot’s Forms Submission API and email matching; optional visitor context supports activity association. A Salesforce implementation needs its own reviewed mapping and tests, not just an endpoint swap.

Can my marketing team still edit the synced pages, or will the next sync overwrite them?

They can edit any field the sync doesn't own. Keep automated fields (name, description, status) driven by the product API, and leave marketing-owned fields (custom copy, featured toggles, SEO overrides) out of the sync payload so they're never touched. This split is part of how we architect Webflow marketing sites for SaaS — automated where it should be, editable where it matters.

Image of author
Pavel Vainshtein
Founder, Webflowforge | B2B & SaaS Websites, CRM Integration & AI Automation
Pavel Vainshtein founded Webflowforge in Kiryat Bialik, Israel. He works with B2B and SaaS teams on website design, Webflow and WordPress development, HubSpot CRM integration, and AI automation with n8n and Make. His work connects websites with marketing and revenue operations.