Skip to main content

Overview

A Custom Webhook lets any external system send leads directly to Craft. Once a lead comes in, Craft creates a conversation and the AI messaging agent immediately reaches out via SMS — no manual steps required. Use this if your lead source isn’t covered by a native integration. Common examples: a contact form on your website, a CRM, a landing page builder, or any tool that can make an HTTP request.
The only required field is phone_number. Everything else is optional — send whatever your lead source has available.

Setup

1

Create a lead source in Craft

Go to Contact Center AI → Speed to Lead and click Add under Custom Lead Sources. Give it a descriptive name (e.g., “Website Contact Form”, “WPForms”, “Zapier”).Craft will generate a unique webhook URL for this source.
2

Copy your webhook URL

Click on the lead source to open its detail page. Copy the webhook URL — it looks like this:
Keep this URL private. Anyone with the URL can submit leads to your account.
3

Configure your external system

Add the webhook URL to whatever system is generating your leads. See the integration guides below for step-by-step instructions for Zapier and common WordPress form plugins.

Webhook Reference

Request

Method: POST Content-Type: application/json

Parameters

string
required
The lead’s phone number. This is the only required field — Craft uses it to initiate SMS outreach.Accepts most common formats: +15551234567, (555) 123-4567, 555-123-4567.
string
The lead’s full name.
string
The lead’s email address.
string
Street address.
string
City.
string
State code (e.g., TX, CA).
string
ZIP or postal code.
string
Any additional context about the lead — their message, the service they’re interested in, etc.
string
The type of service the lead is requesting (e.g., HVAC, Plumbing, Flooring).
string
The URL of the page the lead submitted from. Useful for tracking which landing pages are generating leads.
string
UTM source parameter (e.g., google, facebook).
string
UTM medium parameter (e.g., cpc, email).
string
UTM campaign name.
object
Any additional key-value pairs you want to attach to the lead. These are stored alongside the conversation and visible in Craft.

Responses

Craft returns 200 even if an internal error occurs during processing — this prevents your external system from retrying and sending duplicate leads. If a lead doesn’t appear in Craft, contact support.

Deduplication

If the same phone number submits a lead more than once within 15 minutes, Craft will return the existing conversation instead of creating a duplicate.

Integration Guides

Zapier

Zapier lets you connect almost any lead source to Craft without writing code. Set up a Zap with your lead source as the trigger and Craft’s webhook as the action.
1

Create a new Zap

In Zapier, click CreateZap. Choose whatever system your leads come from as the trigger (e.g., Facebook Lead Ads, Google Ads, Typeform, Jotform).
2

Add a Webhooks action

For the action step, search for Webhooks by Zapier and select Custom Request.
3

Configure the request

  • Method: POST
  • URL: Your Craft webhook URL
  • Data Pass-Through: False
  • Data: Map your trigger fields to Craft’s field names
4

Test and activate

Use Zapier’s test step to send a sample lead and confirm it appears in Craft under Speed to Lead. Then turn the Zap on.

WordPress

The easiest way to connect Gravity Forms to Craft is with a small PHP snippet using the free Code Snippets plugin. This works on any Gravity Forms plan — no paid add-ons required.
1

Install Code Snippets

In WordPress, go to Plugins → Add New, search for Code Snippets, and install and activate it.
2

Create a new snippet

Go to Snippets → Add New. Give it a name like “Send Gravity Forms leads to Craft”.
3

Add the code

Paste the following into the code editor. Replace the field IDs with the actual IDs from your Gravity Forms form (visible in the Form Editor by hovering over each field), and replace YOUR_TOKEN with your Craft webhook token.
To find a field’s ID in Gravity Forms, open your form in the editor and click on a field — the ID is shown in the right panel under Field Settings. It’s just a number like 1, 2, 3.
4

Activate and test

Set the snippet to run everywhere and click Save Changes & Activate. Submit a test entry from your form and confirm the lead appears in Craft under Speed to Lead.