Data Model
How Spara organizes lead data — where fields come from, how conflicting sources are resolved, and how to manage your fields.
Spara automatically captures and organizes data about every lead that interacts with your agents. This data powers personalization, workflow triggers, conditions, and analytics across the platform. The Data Model page is where you see and manage every field on your instance — built-in and custom — in one place.

How It Works
Every piece of lead data is stored as a field. Fields are organized into categories and can come from multiple sources:
Automatically captured — Spara collects data from website visits, chat conversations, email interactions, phone calls, and calendar events without any setup.
Gathered by agents — Your Chat, Email, Phone, and Text agents can be configured to ask leads for specific information (like job title or company size) during conversations.
Synced from your CRM — Fields from Salesforce, HubSpot, or Marketo are automatically synced and available alongside Spara-native data. See CRM Integrations for setup.
Enriched from third parties — Lead Enrichment and Deanonymization fill in contact and company details from data vendors.
Extracted by workflows — API Step and Research Step workflow steps can extract new data from external services or AI responses and save it to the lead profile.
Set by workflows — A Set Field Step step writes a value you specify to a field when a lead reaches that point in a workflow.
Fixed value — Fields stamped with a constant value on every Spara-engaged lead, set by your team. Useful for tagging leads with a source, campaign, or tier without relying on agent conversations or external data.
Read-only — Fields Spara never sets. Their values come only from outside Spara, such as your CRM sync, your website's URL parameters, or the Leads API, and Spara never writes them back to your CRM.
For the full catalog of built-in fields — including the API names to use in personalization, workflows, and API requests — see Developer: Spara Objects & Fields.
Lead, Account, and Owner Objects
Every field describes one CRM object, and the Data Model page has a tab for each:
Lead — fields about the individual person interacting with your agents.
Account — fields about the lead's company.
Owner — fields about the lead's assigned owner.
Account and Owner fields are pulled from your CRM rather than gathered by agents, so new ones cannot be created manually. The Create field button applies to Lead fields.
For a tour of how these objects fit together and map to your CRM, see Developer: Spara Objects & Fields.
Custom Fields
Any Spara agent can gather custom fields during a conversation. For example, you could configure a Chat agent to ask "What's your biggest challenge right now?" and save the response as a custom field called biggest_challenge. Custom fields appear alongside built-in fields everywhere in the platform — in workflows, personalization, analytics, and CRM syncs.
Set By
Each field's Set by tab shows everything that writes the field and controls what each channel does with it, in two sections:
Where it comes from: a read-only list of everything that sets the field today, including your website's URL parameters, workflow steps, CRM sync, fixed value stamps, and the channels gathering it in conversation.
Channel access: what each channel does with the field. For every channel, choose one of three levels:
Sets this field: the agent asks for the field during conversations and saves what it learns. An agent that sets a field also sees its value.
Sees the value: the agent uses the field's stored value to inform its conversations, but never sets it. Use this for fields that come from your CRM, your website's URL parameters, or another agent, so every channel benefits from the data without re-asking for it or changing it.
No access: the field is not available to that agent at all.
New custom Lead fields start as Sees the value for every agent, so their values reach your agents' conversations right away; setting a field stays an explicit choice per agent. Fixed value fields can be seen but never set, since Spara stamps their value automatically. Read-only fields can also be seen but never set, since their value only comes from outside Spara.
Account and Owner fields come from your CRM, so agents can never set them. They start as No access; choose Sees the value for any agent that should use them in conversation. Granted values can also be referenced as variables in agent instructions, for example {{ lead_owner_email }}.
Built-in Lead fields that agents gather in conversation, such as email address, first name, last name, phone number, job title, and company name, have the same channel access controls. Their name and type are fixed and only admins can change how agents ask for them, but anyone who can edit the Data Model chooses which channels set or see each one. An agent only asks for a field where it is set to Sets this field, so keep that on for the fields each channel should capture; a field no channel sets is flagged on the Data Model page.
Data type is permanent. Once a field is saved, its data type (String, Integer, Boolean, etc.) cannot be changed. Choose the correct type when creating a field.
Creating and editing fields requires the Data Model Editor permission. Users without this permission can view field definitions but cannot create or modify fields.
CRM Field Mappings
CRM field mappings (Salesforce, HubSpot, and Marketo) are set on each field in the Data Model. Open a field and find its sync section, labelled by CRM (for example Salesforce sync or HubSpot sync). If you have several CRMs connected, the field shows one sync panel per CRM.

The sync section has one slot per CRM object the field can map to:
Salesforce
Contact and Lead
Account
Owner
HubSpot
Contact
Company
Owner
Marketo
Lead
None
None
In each slot, pick the CRM field and a write rule for each direction, {CRM} → Spara and Spara → {CRM}:
Overwrite: replace any existing value
Set if empty: write only when the receiving field is empty
Read-only: never write in this direction
Save your edits with the page's Save changes prompt. Account and Owner mappings are pull-only, shown as Pulled from {CRM}, since Spara never writes to those objects.
Some rules are locked to Read-only:
{CRM} → Spara is locked for fields Spara sets itself, such as GCLID, UTM parameters, and conversation summaries and transcripts.
Spara → {CRM} is locked for What is a Read-only field?.
Built-in syncs
Some fields sync with every connected CRM without a mapping. Their slots show Built in with fixed rules, and they can't be changed or removed:
Email address syncs with the Salesforce Lead and Contact
Emailfield and the HubSpot Contactemailproperty, and is how Spara finds a lead's CRM record. In Marketo, email is only used to find and create records; Spara doesn't copy it either way.First name and Last name sync with the HubSpot Contact
firstnameandlastnameproperties.CRM record IDs (Salesforce Lead ID, Salesforce Contact ID, HubSpot Contact ID, Marketo Lead ID) are pulled from the linked record and never written back.
Account fields (company name, website, industry, employee count, annual revenue, billing city) and Owner fields (email, full name, active) are pulled from the CRM's Account or Company and Owner records.
If one of these fields already has a mapping of its own on an object, that mapping replaces the built-in sync there and stays editable.
Mapping problems
The field page flags mapping problems in plain language, including when:
The Spara field is missing, or the mapped field no longer exists in the CRM
The mapping syncs nothing because both directions are Read-only
Spara → {CRM} writes to a field the CRM won't let Spara write (such as a formula or calculated field)
The Spara and CRM field types don't match
Set if empty never writes because the CRM field is required
Some picklist values would be rejected by the CRM
Two Spara fields write to the same CRM field
Two CRMs both Overwrite the same Spara field. The CRM pulled last wins; Spara pulls Salesforce, then HubSpot, then Marketo.
Seeing sync status across fields
The Data Model table shows each field's mapping in the {CRM} field, {CRM} → Spara, and Spara → {CRM} columns. With several CRMs connected, the columns are labelled CRM field, CRM → Spara, and Spara → CRM, with one line per CRM. Use the CRM sync filter to show fields that are Synced with {CRM}, Not synced, or Needs attention.
Suggest fields
On the Lead tab, Suggest fields in the page header uses AI to suggest mappings for Salesforce Leads and Contacts and HubSpot Contacts. Each suggestion you pick saves immediately as a mapping, creating the Spara field if it doesn't exist yet.
Starting a field from your CRM
Create field opens a new field page. Choose Start from a {CRM} field to fill in the name, type, and picklist values from an existing CRM field; that object's slot in the sync section is prefilled with the mapping.
Each integration's settings page keeps record-level settings (sync on or off, create and update, Import Rules) and shows a read-only list of the fields synced with each object, with Manage in Data Model to jump back here. See CRM Integrations.
Trust Hierarchy
The same field can receive values from several sources: a lead types a phone number into chat, your CRM syncs a different one, and an enrichment vendor suggests a third. Spara resolves these conflicts with a trust hierarchy. Every field value is tagged with the source it came from, and a new value only overwrites the existing one when it comes from a source that is at least as trusted.
From most to least trusted:
System-observed (highest)
Signals Spara's systems observe directly — for example, the caller ID on a phone call, or the visitor's network-derived location (IP country, region, city).
User-confirmed
Values the lead explicitly confirmed — for example, an email address read back and confirmed during a voice call.
Self-reported & CRM
What leads tell your agents in conversation, values passed in from your website (URL parameters, webforms, the JavaScript API), values extracted by workflows, and fields synced from your CRM. Self-reported and CRM values are equally trusted.
Third-party enrichment (lowest)
Values from Lead Enrichment and Deanonymization data vendors.
How conflicts resolve:
Equal or higher trust overwrites. Within the same level, the most recent update wins — so your CRM sync and your agents can both keep a field current.
Lower trust never overwrites. Enrichment fills in fields that are empty, but it never replaces what a lead told your agent or what your CRM synced. The existing value stays in place.
Deanonymization stays in its own lane. Identity guesses from visitor deanonymization are stored in separate, read-only Deanonymized fields rather than the primary identity fields, so a vendor's best guess is never confused with data the lead actually provided.
For example: a lead types a phone number into chat (self-reported). If they later call one of your phone numbers, the caller ID (system-observed) replaces the typed value. From then on, neither a conversation nor an enrichment vendor can overwrite it — only another system-observed or more trusted source can.
The same hierarchy is documented alongside the object and field reference in Developer: Spara Objects & Fields.
Field Reference
The full list of built-in fields lives in the developer documentation, organized by category with the API name, type, and description for each field: Developer: Spara Objects & Fields.
To see the fields on your own instance — including your custom fields and CRM-synced fields — open Data Model in the app. You can search, filter by type, origin, sync status, or gathering agent, and click any field to view or edit its details.
FAQ
Where can I use these fields?
Everywhere in Spara. Fields are available in workflow triggers and conditions, email and text message personalization, agent instructions, API request bodies, and analytics filters. See Guide: How to Use Spara's Text Editor for how to insert fields into text.
How do I create custom fields?
There are two ways to create a custom field:
Gathered by an agent — Configure any Spara agent to ask for specific information and map the response to a named field. For example, add "Ask the lead about their timeline" to your Chat agent's instructions and map the response to a field called
timeline.Fixed value — Create a field with a constant that is stamped on every Spara-engaged lead automatically, without any agent conversation. Go to Data Model, create a new field, and set the source to Fixed value.
You can also set the source to Read-only for a field whose value only comes from outside Spara, such as your CRM. See What is a Read-only field?.
Custom fields are immediately available across the platform — in workflows, personalization, analytics, and CRM syncs.
Where do I edit CRM field mappings?
On the field itself. Open the field in Data Model and use its CRM sync section. Integration settings pages list synced fields read-only and link back to the Data Model. See CRM Field Mappings.
What is a Fixed value field?
A Fixed value field holds a constant that is automatically stamped on every lead Spara engages with, with no agent conversation required. For example, you could create a field called lead_source_campaign with a fixed value of "spring-webinar-2026" to tag every lead from a specific campaign. Fixed value fields are useful for tracking source attribution, campaign codes, or tier tags that apply uniformly to all leads your agents interact with.
What is a Read-only field?
A Read-only field is one Spara never sets: no agent gathers it, no workflow step writes it, and Spara never syncs it back to your CRM. Its value only comes from outside Spara — your CRM sync, your website's URL parameters or JavaScript API, or the Leads API — for example a Salesforce field you pull into Spara so your agents can see it. To make a field Read-only, open it in Data Model and set the source to Read-only.
Spara won't save a field as Read-only while something in Spara still sets it. The error lists what to change first:
A workflow Set Field step, or an API or Research step that saves to the field.
A voice agent Set Field tool that writes to the field.
A CRM field mapping whose Spara → CRM rule isn't Read-only.
Channels set to Sets this field switch to Sees the value automatically when you save the field as Read-only. Once a field is Read-only, CRM field mappings for it are locked to Read-only in the Spara → CRM direction.
Why didn't my CRM sync (or enrichment) change a field?
Most likely the existing value came from an equally or more trusted source — see Trust Hierarchy. For example, enrichment data never overwrites a value the lead provided directly, and nothing short of another system-observed source can replace a phone number captured from caller ID.
What happens when a field has no value?
It depends on the field:
Name fields (
{{ first_name }},{{ last_name }},{{ full_name }}) — Spara falls back to the best identity available for the lead (for example, an email address or company name) rather than rendering blank.All other fields — render as empty when the value hasn't been captured (e.g.,
{{ company_name }}becomes blank).
Use Condition Step steps in workflows to check whether a field has a value before acting on it.
Last updated