Skip to main content
Four data flows connect your CRM, your Retell contacts, and Post Call Extraction results: inbound sync, analysis mapping, outbound sync, and activity logging. This page covers each flow and the field mappings and update modes that control it.

Data model overview

The CRM integration involves three main entities and four data flows between them:

External CRM

Your CRM’s contact records with their native fields.

Retell contact

A unified contact record in Retell with default fields and custom fields.

Post Call Extraction

Structured data extracted from each call/chat by your Post Call Extraction configuration.

How data flows

1. Inbound sync: CRM to Retell

Inbound sync imports contacts from your CRM into Retell. It runs every 5 minutes (as of August 2026) and picks up only records modified since the last run. A manual sync re-scans everything. Matching logic: Contacts are matched between systems using phone number as the primary key. When Retell finds a CRM contact with a phone number that matches an existing Retell contact, it updates the existing record. Otherwise, it creates a new contact. Records Retell skips: a CRM contact with no value in the mapped phone field, or with a phone number that can’t be parsed into a valid E.164 number. Skipped records don’t stop the sync. Inbound sync mappings control which CRM fields are imported:
The phone_number mapping is required and hardcoded for inbound sync. Without it, Retell has no way to match CRM records to Retell conversations.

2. Analysis data mapping: analysis to contact

After each call or chat, Post Call Extraction extracts structured data from the conversation. You can map these analysis results to contact fields, building a richer contact profile over time. For example, if your Post Call Extraction extracts a lead_status field, you can map it to a custom contact field so each contact’s qualification status is automatically updated after every conversation. Example mappings:

Update modes

Each analysis data mapping has an update mode that controls how the new value interacts with the existing value. The names in parentheses are the labels shown on the contact fields page in the dashboard.

Overwrite

Always replace the existing value with the new analysis result. Use this for fields where the latest value is always the most relevant (e.g., sentiment, status).

Fill if empty (Fill only if empty)

Only write the new value if the field is currently empty. Use this for fields you want to capture once and preserve (e.g., email address, company name).

Merge (Accumulate & summarize)

Combine the existing and new values with an LLM. Only available for string fields. Use this for cumulative fields where you want to preserve context from previous conversations (e.g., interaction notes, preferences).

How merge works

The Merge update mode uses an LLM to combine the existing contact field value with the new analysis result from the latest conversation. Instead of appending or replacing text, the LLM reads both values and produces a single, coherent merged result. The field description you set when creating or editing the custom field is the LLM’s instruction for the merge: it tells the model what kind of data the field holds, what information to prioritize, and how the merged output should be structured. Example field descriptions for merge:
Think of the field description as a prompt to the LLM. The more specific you are about what to keep, what to discard, and how to structure the output, the better the merge results will be.
Limits worth knowing. Merge only applies to string fields; on any other type the mapping is skipped. The merged result is capped at roughly 512 tokens (as of August 2026), so a field set up as an ever-growing log eventually starts losing the oldest detail rather than expanding forever. Write the description to prioritize what matters most. If the merge call fails or comes back empty, Retell falls back to keeping both values, appending the new one below the existing one separated by a blank line. You never lose data to a failed merge, but the field won’t be as tidy as a successful one.

3. Outbound sync: Retell to CRM

When a contact’s fields change in Retell, whether manually or through analysis data mapping, outbound sync mappings push the changed fields back to your CRM. Outbound sync fires on two paths: a manual edit to a contact’s fields, and a conversation’s analysis results. Both need:
  • The contact imported from your CRM, still carrying its CRM record ID.
  • At least one outbound sync mapping configured.
  • A mapped field that actually got written. A manual edit pushes as soon as you save; analysis results push whatever their update mode produced, so Overwrite pushes even when the new value matches the stored one, while Fill if empty skips fields that already hold a value.
Conversation-driven pushes also need the contact to have been imported by the connection that’s currently active. If you delete a connection and set up a new one, contacts imported by the old one stop pushing on the conversation path until they’re re-imported. By default, outbound sync updates existing CRM records only and never creates or deletes contacts. Turn on Create new contacts in CRM on the Sync tab to let Retell create a new CRM record after a conversation when the matched contact isn’t linked to one yet. This toggle is off by default, and even with it on, outbound sync never deletes contacts. Outbound sync also never writes back the phone number, which stays reserved as the matching key. Outbound sync mappings control which Retell fields are pushed:

4. Conversation activity logging

When enabled, Retell logs each call and chat as an activity record in your CRM, associated with the matched contact. This gives your sales team a complete conversation history directly in the CRM. What lands in the record varies by provider (see CRM integrations for each format), but every provider records:
  • The conversation summary
  • The Retell conversation ID, and the from and to phone numbers
Calls also carry their duration on Salesforce, HubSpot, Dynamics, and Zoho. HubSpot, Dynamics, and Zoho record the call direction as well. Retell picks the number to match on from the call’s direction: the caller’s number on an inbound call, the dialed number on an outbound one.
Activity logging needs the contact to have been imported from the currently active CRM connection, the same way conversation-driven outbound sync does. Conversations with numbers that don’t match a synced contact, and contacts Retell created itself, produce no activity record.

End-to-end data flow example

Here’s how a typical interaction flows through the system:
1

Contact imported from CRM

An inbound sync imports a contact from Salesforce with fields: Phone: +1234567890, FirstName: Alice, LastName: Smith, Lead_Status__c: New.Retell creates a contact with: phone_number: +1234567890, first_name: Alice, last_name: Smith, qualification_status: New.
2

Agent makes a call

Your voice agent calls Alice. During the call, Retell injects contact fields as dynamic variables, so the agent knows Alice’s name and qualification status.
3

Post Call Extraction runs

After the call, Post Call Extraction extracts:
  • lead_status: Qualified
  • customer_notes: Interested in enterprise plan, wants demo next week
  • email_address: alice@example.com
4

Analysis data maps to contact

Retell applies the analysis results to Alice’s contact based on your mappings:
  • qualification_status is overwritten with Qualified
  • interaction_summary is merged with the new notes, preserving previous conversation context
  • email is filled (was previously empty)
5

Outbound sync pushes to CRM

Outbound sync pushes the updated fields to Salesforce:
  • Lead_Status__c updated to Qualified
  • Notes__c updated with the merged interaction summary
6

Activity logged in CRM

Retell creates a Task record in Salesforce with the call duration and summary, associated with Alice’s contact record.

Configure field mappings

Custom fields

Before you can map CRM fields to non-default Retell fields, you need to create custom fields on your Retell contacts. Custom fields support the following types:
Custom field names are snake_case starting with a letter. They can’t collide with the built-in field names or start with contact or external (both reserved). See define contact fields for creating them.

Field type compatibility

When configuring sync mappings, the CRM field type must be compatible with the Retell field type. Retell handles type coercion automatically:
  • CRM date strings are parsed into Retell date/datetime fields
  • CRM picklist values map to Retell enum fields
  • CRM numeric strings are converted to Retell number fields
  • CRM boolean-like values ("true", "false") are converted to Retell boolean fields

Best practices

  • Start with essential mappings. Map first_name and last_name first (phone number is already mapped for you), then add custom fields incrementally as you identify what data is valuable.
  • Use “Fill if empty” for stable data. Fields like email address or company name rarely change — use “Fill if empty” to capture them on first mention without overwriting later.
  • Use “Merge” sparingly. The merge update mode uses an LLM to combine values, which works well for free-text notes but adds latency and cost ($0.005 per merge as of August 2026). Use “Overwrite” or “Fill if empty” when possible.
  • Write descriptive field descriptions for merge fields. The field description acts as the LLM’s instruction for how to merge values. A specific, well-written description (e.g., “A running summary of interactions; keep recent details prominent and deduplicate action items”) produces much better results than a vague one. See how merge works for examples.
  • Use “Overwrite” for status fields. Fields like lead status or sentiment should always reflect the most recent conversation.
  • Enable activity logging for sales visibility. Your sales team can see the full conversation history in the CRM without switching to the Retell dashboard.
  • Use a dedicated CRM integration user. For Salesforce, use a dedicated service account as the Run-As user to avoid permission issues when team members change roles.