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
| Field | Name in Studio | What it says | Values |
|---|---|---|---|
source | Channel | The channel the lead arrived on | chat-widget, form-widget, mcp, webmcp, partner, email, phone, and older values such as widget |
contactMethod | Contact method | How the person got in touch | chat, form, phone, email, sms, other |
agentType | Agent type | Who handled the conversation | ai (an AI assistant), human (a person), self_serve (the person filled in a form on their own), unknown |
sourceSystem | Source system | The system that captured the lead | xapp-ai (our widgets and AI agent endpoints), partner (a partner platform), or the system an emailed lead came from, such as servicetitan |
captureSurface | Capture surface | The exact place it was captured | chat-widget, form-widget, widget, mcp, webmcp, partner-api |
capturePlatform | Capture platform | The platform it was captured on | xapp-ai, or for a partner lead the partner's platform name (lowercase, with dashes) |
utmSource, utmMedium, utmCampaign | UTM source, UTM medium, UTM campaign | The marketing campaign that brought the visitor | Whatever 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 from | Channel | Contact method | Agent type | Source system | Capture surface | Capture platform |
|---|---|---|---|---|---|---|
| Your form widget | form-widget | form | self_serve | xapp-ai | form-widget | xapp-ai |
| Your chat widget | chat-widget | chat | ai | xapp-ai | chat-widget | xapp-ai |
| An outside AI agent through your MCP endpoint (see AI agent discovery) | mcp | chat | ai | xapp-ai | mcp | xapp-ai |
| An AI agent using the tools the chat widget adds to your web page (WebMCP) | webmcp | chat | ai | xapp-ai | webmcp | xapp-ai |
| A partner's platform, through the Partner API | partner | as the partner sent it, else form | as the partner sent it, else unknown | partner | partner-api | the partner's platform |
| A phone call from a partner's phone agent, when it produces a lead | partner | phone | ai or human, as the partner sent it (default ai) | partner | partner-api | the 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_serveorchat-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
- Open the Leads Dashboard.
- 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.
- 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.