---
schema_version: "1"
id: 19c888c215a8f6e646422c52023f6be0014011034dbd222bbf6b4d88a881a070
title: How Agentforce Prospecting Creates Lead and Contact Records
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/sales/264-0-0/sales_agent_prospecting_record_creation.md
canonical_url: https://help.salesforce.com/s/articleView?id=sales.sales_agent_prospecting_record_creation.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 939372498d81fdad520b11c059d7bb25a86a9b497df4d295975f63cbbbc32298
description: Find out when your prospecting agent creates records, which fields it populates, and how it avoids creating duplicate records.
products:
  - Sales Cloud
  - Agentforce
release: "264"
---
# How Agentforce Prospecting Creates Lead and Contact Records

Find out when your prospecting agent creates records, which fields it populates, and how it avoids creating duplicate records.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>, <strong>Performance</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions with the Agentforce for Sales or Agentforce for an Industry add-on, or in Agentforce 1 Sales and Industry Editions where included. Requires each user to have the Agentforce for Sales or Agentforce for an Industry add-on to access actions.</td></tr></tbody></table>

## When the Agent Creates Records

The agent creates a record when it finds a qualified prospect from a connected data vendor who isn't already in your CRM.

## Which Records the Agent Creates

The record type set in your agent's configuration determines which type of record the agent creates for prospects who aren't in your CRM yet. By default, the agent creates contacts.

 
| Record Type | What the Agent Creates |
| --- | --- |
| Lead | One lead record for each qualified prospect. |
| Contact | One contact record for each qualified prospect, linked to an account in your CRM. |

## Which Fields the Agent Populates

The fields that the agent populates depend on the type of record that it creates. The table shows which fields the agent populates for each record type.

The field mapping is fixed, and you can't change it. The agent populates only the fields in the table and doesn't populate any other standard or custom fields. Fields such as Lead Source and Lead Status get your org's default values, if you set any. The agent doesn't include data vendor fields, such as department, seniority, or location.

  
| Field Name | Record Type | Value Entered |
| --- | --- | --- |
| First Name | Lead and Contact | The prospect's first name |
| Last Name | Lead and Contact | The prospect's last name |
| Title | Lead and Contact | The prospect's job title |
| Company | Lead | The prospect's company name |
| Account | Contact | The account the prospect was found in. |
| Email | Lead and Contact | The prospect's business email address |
| Phone | Lead and Contact | The prospect's main business phone number |
| Owner | Lead and Contact | The sales rep assigned to the prospect |

The agent creates records on behalf of the sales rep, so the rep's object and field permissions apply. Make sure that sales reps can create the records and edit the fields that the agent populates. If the sales rep can't edit a field, the agent leaves the field blank.

Your org's rules also apply. Validation rules and automation such as flows and triggers run for records that the agent creates, just as they do for records that the user creates. The agent can create many records in one run, so check the lead and contact flows and triggers that run when a record is created.

![Important](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-sales-sales_agents-264-0-0-production-enus/3bcb4a4b-868d-4b4f-b735-d76004124785/images/icon_important.png)

Important

- If your lead or contact records require fields that the agent doesn't populate, or if a validation rule depends on fields that the agent doesn't populate, record creation fails for those prospects.
- The agent skips creating records for prospects without an email address.

## How the Agent Avoids Duplicate Records

Before the agent creates a record, it looks for an existing record of the same type that matches the prospect's name, title, company or account, email address, and phone number. If the agent finds an exact match, it uses that existing record and doesn't create one. If any of those fields differ, the agent creates a new record. The agent checks only records that the sales rep can see. If a matching record exists but the rep can't see it, the agent creates a duplicate record.