Quick start (5 min)
- Install the plugin from wp-admin → Plugins → Add new → "Flowgration", or upload the zip from flowgration.com/integrations/wordpress.
- Activate it. A new menu item Flowgration appears in the sidebar.
- Open it and pick one path:
- I have a Flowgration account → paste an API key from Settings → API keys (must start with sk_live_).
- I don't have an account yet → enter your admin email; the plugin sends a magic link. Click it; Flowgration auto-creates the org, the user and a starter CRM, and logs you in.
- The "Status" panel turns green and events arrive within ~30 seconds.
Two ways to connect
Flow A — existing account
WP plugin Flowgration
│ │
│ POST /onboarding/initiate (mode=connect, api_key=sk_live_…)
├─────────────────────────►│
│ │ verify key → upsert PluginIntegration
│ ◄────────────────────────┤ 200 { review_url, suggested_mappings }
│
│ redirect admin → /app/integrations?integration_id=42- Generate an API key in Flowgration → Settings → API keys → New key.
- Paste it into the plugin.
- The plugin POSTs /api/plugin/onboarding/initiate with mode=connect.
- Flowgration creates a PluginIntegration row in pending_review and returns a URL. The plugin opens it in a new tab.
Flow B — auto (magic link)
WP plugin Flowgration Admin inbox
│ │ │
│ POST /onboarding/initiate (mode=auto, admin.email=…) │
├─────────────────────────►│ │
│ │ create PluginOnboarding row │
│ ├──── magic-link email ───────►│
│ │ │
│ │ ◄── admin clicks link ───────┤
│ │ materialize_crm (org+user+CRM)
│ │ 302 → /plugin-callback?token=…&api_key=…- Plugin scans the WP install (form plugins, post types, WC products).
- POSTs the discovered schema + admin email to /onboarding/initiate.
- Admin receives a one-time magic link (TTL 24h).
- On click, Flowgration creates the org, the user, the CRM blueprint, mints an API key, and redirects to /plugin-callback with the JWT.
- The plugin polls /onboarding/blueprint?token=… and shows the loading screen while the CRM is being built.
Compatibility
- WordPress WordPress 5.8+ (tested up to 6.6).
- PHP PHP 7.4+ (8.x recommended).
- WooCommerce WooCommerce 7.x+ — optional. The plugin auto-detects WC and surfaces WC-specific toggles only if active.
- WP Multisite — WP Multisite — not supported in v1 (see troubleshooting #9).
- Supported form plugins:
- Gravity Forms
- WPForms (Lite and Pro)
- Contact Form 7
- Ninja Forms
- Elementor Pro Forms
- Formidable Forms
- Fluent Forms
What gets synced
| Event | Source | When it fires | What Flowgration does |
|---|---|---|---|
user.created | user_register hook | New WP user registers | Creates a Contact, mapped via field-mapping rules |
user.updated | profile_update hook | WP user profile changes | Updates the existing Contact |
form.submitted | Form plugin (see list above) | Any supported form submits | Creates/updates Contact, logs Activity, fires triggers |
order.created | woocommerce_new_order | Order placed (any status) | Creates Order + line items, links to Contact |
order.status_changed | woocommerce_order_status_changed | WC order transitions status | Updates Order status, fires order.paid etc. |
product.created | woocommerce_new_product | New WC product published | Mirrors product to Flowgration catalog |
cart.abandoned | WC + plugin cart-tracker | Cart inactive >30 min, customer email known | Fires cart.abandoned trigger for journeys |
booking.created | WC Bookings / Amelia / Bookly | New appointment booked | Creates Booking row, links to Contact |
subscription.activated | WC Subscriptions | Recurring subscription starts | Creates Subscription, links to Contact + Plan |
Every event carries an idempotency key, so retries are safe and duplicates are silently dropped.
Custom field mapping
On first connect, Flowgration scans the discovered schema (post types, form fields, WC meta keys) and suggests mappings to existing Contact fields. You review and adjust them in /app/integrations → Edit mappings.
- Built-in Contact columns (email, first/last name, phone, company, city, country, …) are filled when the plugin can match a source field with high confidence.
- Everything else lands in contact.custom_fields[<key>] — Flowgration creates the custom field on the fly if it doesn't exist.
- You can override every suggestion or skip a source field entirely.

/docs/plugins/img/wp-mapping.pngThe mapping is editable at any time. Re-saving it does not re-process historical events — use Backfill for that.
Backfilling historical data
The integration page has a Backfill button per data source (Users, Orders, Form submissions). It:
- Fetches existing rows from WordPress in chunks of 500.
- Pushes each chunk through the same /sync pipeline as live events, so the mapping rules apply identically.
- Stores progress per chunk. If the job is interrupted (worker restart, network error, the merchant closing the tab) it resumes from the last completed chunk on the next click.
- Skips rows whose idempotency key is already in PluginEventLog, so re-running the backfill is safe.
Typical throughput: ~1 000 rows/minute on a healthy WP host.
Schema refresh
The plugin caches the discovered schema (form fields, custom post types, WC meta keys) for performance. Trigger a refresh when:
- You installed a new form plugin or added a new form.
- You added new Custom Fields to WooCommerce products or users.
- A form.submitted event arrives but a field is missing from the mapping dropdown.
To refresh: open the plugin's admin page → Settings → Refresh schema. The plugin re-scans the install and POSTs the updated schema to /onboarding/initiate in mode=connect. Existing mappings are preserved; only new fields appear as "needs mapping".
Troubleshooting
- Check the API key starts with sk_live_ (it must not be a sk_test_ key — those reject /sync).
- Check api.flowgration.com is reachable from the WP server: curl -I https://api.flowgration.com/health. Hosts behind a restrictive egress firewall must allow outbound HTTPS to *.flowgration.com.
- Re-paste the key (whitespace is a common culprit).
- Open the plugin's Settings → Form filter. The form may be excluded by ID. Empty the exclude list to capture everything.
- Verify the form plugin is in the supported list above. Niche form plugins are not auto-captured — submit them via the Events API instead.
- Check the form's mapping in /app/integrations. If no fields are mapped, the event is dropped server-side.
- Confirm WooCommerce is active, not just installed.
- Open Plugin → Events. The Orders toggle must be ON.
- Run a manual test: place a test order with the WC test gateway. The event should appear in /app/integrations → <store> → Events within 30s.
- A JS error is bailing render. Check wp-content/debug.log (enable WP_DEBUG_LOG if needed) and the browser console.
- Most common cause: another plugin's nonce middleware stripped our sub-admin nonce. Deactivate plugins one-by-one to isolate.
- As a last resort, set define('FLOWGRATION_LEGACY_NONCE', true) in wp-config.php to fall back to the WP core nonce path.
- The API key was revoked from /app/api-keys. Regenerate it and paste the new value into the plugin.
- The org's plan was downgraded to a tier that disables plugins (Free → no plugin access).
- WP cron is disabled on this install (DISABLE_WP_CRON=true in wp-config.php, or a host that uses a real cron).
- Manually flush the queue: wp cron event run flowgration_cron_queue.
- If you run a real cron, make sure it hits wp-cron.php at least every 5 minutes.
- Confirm the WooCommerce Subscriptions plugin is active — the built-in WC has no subscription objects.
- Open Plugin → Events and switch the Subscriptions toggle ON. It defaults to OFF because most stores don't use it.
- The plugin encrypts the API key with a key derived from AUTH_KEY + SECURE_AUTH_KEY. Rotating WP salts invalidates the ciphertext.
- Re-paste the API key in the plugin. The new ciphertext uses the new salts.
- Multisite is not supported in v1. The plugin only activates on the network's main site; sub-sites silently no-op.
- Workaround: install per sub-site by activating manually on each. Each sub-site needs its own API key.
- Events are enqueued, not POSTed inline — checkout requests return before the sync happens. If you see slowness, profile with Query Monitor: it's almost always another plugin.
- The plugin's only checkout-time work is a single wp_insert_post into the flowgration_queue CPT (~5ms).
Privacy & data
What leaves your WP install
- Only the events listed in What gets synced, plus the fields the merchant explicitly mapped.
- No comments, no post content, no media files, no admin emails beyond the connecting admin's address.
Where it goes
Frankfurt, EU (AWS eu-central-1). Frankfurt, EU (AWS eu-central-1). No data ever leaves the EU in normal operation.
Retention
Events live in PluginEventLog for 90 days then are aggregated. Contact data persists until you delete the contact or uninstall the integration.
Uninstall
From WP admin
- Deactivate stops sending events but keeps the encrypted key in wp_options. Re-activate to resume.
- Delete removes the plugin files, the flowgration_queue CPT rows, and the encrypted key. Already-synced data in Flowgration is untouched.
From Flowgration
- /app/integrations → Open /app/integrations → Disconnect.
- Marks the PluginIntegration row as disconnected.
- Revokes the API key.
- Synced contacts, orders, activities are kept. To wipe them, also delete the contacts.
Re-installation is idempotent: the next /onboarding/initiate in mode=connect upserts onto the same PluginIntegration row, preserving the mapping config.