Send leads to your CRM

Send leads to Salesforce

Creates a lead through a Make scenario.

Unverified15 minA Salesforce edition with API access, and a Make account
VisitorLayer sends JSON, and Salesforce has no JSON intake that works without a developer. A free Make scenario sits in between: it receives each lead and creates it in Salesforce.
  1. Add a channel field to leads

    In Salesforce, go to SetupObject ManagerLeadFields & Relationships and select New. Choose Text and name it VisitorLayer Channel.

  2. Create a webhook in Make

    In Make, create a scenario. Add the Webhooks app's Custom webhook trigger, add a new webhook, and copy its address. Leave the module waiting for data.

  3. Add the webhook in VisitorLayer

    Open your project's Webhooks and select New webhook. Use the Make address as the Endpoint URL, choose your lead form, and paste this payload. No headers are needed.

    Payload
    {
      "email": "{{form.email}}",
      "name": "{{form.name}}",
      "phone": "{{form.phone}}",
      "channel": "{{attribution.channel}}",
      "source": "{{attribution.utm_source}}",
      "campaign": "{{attribution.utm_campaign}}",
      "landing_page": "{{page.landing_path}}"
    }

    Rename each form. token to match your form's fields, or pick them from Insert field. A field your form does not capture sends null.

    Save, then select Test webhook. Make reads the fields from that request.

  4. Create the lead in Salesforce

    In Make, add the Salesforce app's Create a record module, connect your Salesforce account, and choose the Lead object. Map:

    Last Namename
    CompanyType a fixed value, such as Website lead. Salesforce requires it.
    Emailemail
    Phonephone
    VisitorLayer Channelchannel

    Save the scenario and turn it on, so it runs as each lead arrives.

  5. Send a test lead

    Submit your form on the live site. The lead appears in Salesforce with VisitorLayer Channel filled in.

    Make accepts each request before it runs the scenario, so the webhook shows Healthy even when Salesforce rejects a lead. Check the scenario's history in Make for Salesforce errors.

If a delivery fails

404The Make webhook was deleted. Create a new one and replace the Endpoint URL.
429Make is rate limiting requests. VisitorLayer retries automatically.
400Make's queue for this webhook is full. Turn the scenario on so it works through the queue.