Skip to main content

Lead Origin

Every lead records where it came from: the channel it arrived on, how the person got in touch, whether an AI or a person handled it, and which system captured it. Together these fields are the lead's origin. You see them in Studio, you can filter the leads dashboard by them, and they are sent with lead emails and webhooks.

The fields​

FieldName in StudioWhat it saysValues
sourceChannelThe channel the lead arrived onchat-widget, form-widget, mcp, webmcp, partner, email, phone, and older values such as widget
contactMethodContact methodHow the person got in touchchat, form, phone, email, sms, other
agentTypeAgent typeWho handled the conversationai (an AI assistant), human (a person), self_serve (the person filled in a form on their own), unknown
sourceSystemSource systemThe system that captured the leadxapp-ai (our widgets and AI agent endpoints), partner (a partner platform), or the system an emailed lead came from, such as servicetitan
captureSurfaceCapture surfaceThe exact place it was capturedchat-widget, form-widget, widget, mcp, webmcp, partner-api
capturePlatformCapture platformThe platform it was captured onxapp-ai, or for a partner lead the partner's platform name (lowercase, with dashes)
utmSource, utmMedium, utmCampaignUTM source, UTM medium, UTM campaignThe marketing campaign that brought the visitorWhatever the page's UTM tags said

A field is left empty when it isn't known. Values the lead arrives with always win; XAPP fills in only the ones that are missing.

What each kind of lead gets​

The lead came fromChannelContact methodAgent typeSource systemCapture surfaceCapture platform
Your form widgetform-widgetformself_servexapp-aiform-widgetxapp-ai
Your chat widgetchat-widgetchataixapp-aichat-widgetxapp-ai
An outside AI agent through your MCP endpoint (see AI agent discovery)mcpchataixapp-aimcpxapp-ai
An AI agent using the tools the chat widget adds to your web page (WebMCP)webmcpchataixapp-aiwebmcpxapp-ai
A partner's platform, through the Partner APIpartneras the partner sent it, else formas the partner sent it, else unknownpartnerpartner-apithe partner's platform
A phone call from a partner's phone agent, when it produces a leadpartnerphoneai or human, as the partner sent it (default ai)partnerpartner-apithe partner's platform

Leads from older chat widgets (widget) get contact method chat and agent type unknown. Leads captured from email get their origin from the email they came in, for example servicetitan, jobber-booking or direct-email as the source system.

Where it shows in Studio​

On a lead​

Open a lead from Leads. The Source card shows:

  • Channel, Referring source and Received on the first row. Click Channel or Referring source to see every lead with the same value.
  • Below them, each origin field that has a value: Contact method, Agent type, Source system, Capture surface, Capture platform, UTM source, UTM medium and UTM campaign. These show the stored value as it is, for example self_serve or chat-widget.

In the Leads list, the icon on each row shows the channel. Leads from AI agents (MCP and WebMCP) have a robot icon.

On the Leads Dashboard​

The Leads Dashboard has a chart for each origin field: Contact Method, Agent Type, Capture Platform, Source System and Capture Surface. Here the values are written out: dashes and underscores become spaces and each word is capitalized, so self_serve shows as Self Serve, partner-api as Partner Api and xapp-ai as XAPP AI. A few have their own names: chat-widget and widget show as Chat, form-widget as Form, mcp as MCP and webmcp as WebMCP.

Filter the dashboard by origin​

  1. Open the Leads Dashboard.
  2. Click a slice in the Contact Method, Agent Type, Capture Platform or Source System chart. For example, click MCP to see only leads from AI agents.
  3. The whole dashboard now counts only those leads, and the filter shows as a chip at the top, named after the chart you clicked. Remove the chip to clear it.

You can combine an origin filter with the filters in Add Filter, such as Channel or Referring Source. The Capture Surface chart doesn't filter, and the origin fields aren't in the Add Filter menu.

In lead emails and webhooks​

Lead notification emails. Each origin field that has a value is listed with the lead's other details, under the same names as in Studio: Contact method, Agent type, Source system, Capture surface, Capture platform, UTM source, UTM medium and UTM campaign.

Webhooks. The lead payload sent by a Webhook integration (set up under Integrations in Studio) carries the origin in a taxonomy object, with only the fields that have a value. It is left out when the lead has none:

"taxonomy": {
"contactMethod": "form",
"agentType": "self_serve",
"sourceSystem": "xapp-ai",
"captureSurface": "form-widget",
"capturePlatform": "xapp-ai",
"utmSource": "google",
"utmMedium": "cpc",
"utmCampaign": "spring-tuneup"
}

A webhook set to send a flat payload gets the same values as top-level keys instead: contact_method, agent_type, source_system, capture_surface and capture_platform (each null when unknown), plus utm_source, utm_medium and utm_campaign. When you map fields yourself, use taxonomy.contactMethod, taxonomy.agentType and so on.