Map the enquiry journey before choosing an integration

Document where a visitor submits information, what confirmation they see, which system receives the data and who is responsible for the next action. Decide whether the website, a form platform, middleware or the CRM is the source of truth for each field. This avoids building a connection that moves data successfully but leaves sales ownership unclear.

Agree the fields and their meaning

Create a field map for name, business email, company, website, country, phone, enquiry type, message, consent or notice status, source and submission time where relevant. Define required and optional fields, allowed formats, maximum lengths and how empty values are handled. Keep internal CRM fields separate from visitor-facing questions and do not collect information that has no defined use.

Validate and normalize data at the server boundary

Browser validation improves usability but should not be trusted as the security boundary. Validate submissions again on the server, normalize values consistently and reject malformed or unexpected payloads. Check phone numbers with an appropriate numbering library when phone is required, and distinguish format validity from proof that a number belongs to the visitor. Sanitize data before placing it into logs or notifications.

Protect credentials and limit permissions

Use server-side credentials stored in an approved secret manager or deployment environment. Grant only the CRM permissions needed for the workflow, rotate credentials when required and never expose private API tokens in browser code. Review vendor rate limits, OAuth scopes, webhook signing and the process for revoking access if credentials are compromised.

Design for timeouts, retries and duplicate events

A successful form submission and a successful CRM write are separate events. Decide what the visitor sees if the CRM is unavailable, how the original enquiry is safely retained, and how a retry is scheduled. Use stable submission IDs or supported upsert behaviour so a repeated request does not create duplicate records. Record delivery state without storing unnecessary personal data in diagnostic logs.

Define routing, acknowledgement and fallback ownership

Set assignment rules based on agreed criteria such as service, territory, business unit or availability. Decide whether the customer acknowledgement is sent by the website or CRM, so visitors do not receive duplicate messages. Define a fallback owner and an alert path for records that cannot be delivered or assigned automatically.

Test the complete workflow, not just the API call

Test valid submissions, missing fields, invalid formats, spam attempts, duplicate submissions, expired credentials, permission errors, rate limits, timeouts, CRM outages and recovery after service restoration. Confirm that the lead is stored, assigned, acknowledged and visible to the responsible person. Verify that analytics counts a completed enquiry only after the intended success condition.

Monitor the integration after launch

Track accepted submissions, CRM delivery success, retry counts, unresolved failures, assignment delays and duplicate candidates. Alert a named owner when records remain undelivered. Reconcile website submissions against CRM records periodically so a silent integration failure does not leave enquiries stranded.