Connectors

/

Salesforce

/

Capture a new Salesforce lead
Write

Add Salesforce leads without chasing existing customers

For sales reps adding people after an event or call who want duplicate and customer checks done first, by asking their AI assistant.

Try PopdockAI free
Get a live demo
Capture a new Salesforce lead
Add Dana Whitfield from Northwind Traders, dana@northwindtraders.com, as a new lead in Salesforce.
No lead or contact matches Dana Whitfield, but Northwind Traders is already a customer account. - Name: Dana Whitfield - Company: Northwind Traders - Email: dana@northwindtraders.com - Status: Open - Not Contacted Shall I create the lead anyway, knowing the company is a customer?
Salesforce
Sample figures. Your results come from your own account.
salesforce-get-lead
salesforce-get-contact
salesforce-get-account
salesforce-update-lead
salesforce-add-lead

On this page

The problem

The problem

The prompt

Who it's for

How it works

Tools used

Connector

Salesforce

Salesforce
Run it on your own Salesforce data.

Connect Salesforce, pick your AI tool and paste the prompt.

Try PopdockAI free

The problem

New leads that turn out to be existing customers

Adding a lead after an event or call looks simple, but the person may already be a lead or a contact at a customer. Without a check first, sales chases a customer as a prospect or works two lead records for the same person.

Without PopdockAI

  • Search leads by email, then by company and surname
  • Search contacts and accounts separately
  • Create the lead anyway when the search is unclear
  • Two reps end up working the same person

With PopdockAI

  • Leads, contacts and accounts are checked before anything is written
  • An existing contact stops the job and shows who they are
  • An existing lead can be updated instead of duplicated
  • You see the exact values and confirm before saving

The prompt

Use this prompt

Copy it into any AI tool connected to PopdockAI. Swap the values in braces for your own.

Prompt
**Objective:** Add `{first-name}` `{last-name}` from `{company}` (email `{email}`) as a lead, unless they already exist.

**Step 1: Duplicate check**

* `salesforce-get-lead` with `email` set to `{email}`. Also `salesforce-get-lead` with `company` and `name.contains` set to `{last-name}`.
* `salesforce-get-contact` with `email` set to `{email}`.
* `salesforce-get-account` with `name` set to `{company}`.

If a contact matches, stop and report the existing contact and account; this person is already a customer contact. If an unconverted lead matches, show it and ask whether to update it instead (`salesforce-update-lead` with only the new values) or create a new one. If only the account matches, say so; the lead will still be created but the user should know the company is a customer.

**Step 2: Confirm and create**

Show the exact values you will send and wait for the user to confirm before any write. If they change anything, show the revised values and confirm again. Then call `salesforce-add-lead` once with first-name, last-name, company, email, status Open - Not Contacted unless the user says otherwise, and any title, phone, industry or lead source the user supplied.

**Step 3: Report**

The new lead ID, or what already existed.

**Rules & Guidelines:**

* The only write tools this prompt may call are `salesforce-add-lead` or, if the user chooses it, `salesforce-update-lead`. One write in total.
* `{email}` may be blank; then rely on the name and company checks and say the check was weaker.

**Validation:**

* If `{company}` or `{last-name}` is blank, ask for it; Salesforce requires both.

Who it's for

One answer, three teams that use it

Sales development reps

Log leads from calls without the search

Capture a new lead in one message and know straight away if the person is already in Salesforce.

Add Priya Shah from Contoso, priya@contoso.com, as a lead in Salesforce.

Event marketers

Add booth visitors without duplicates

Enter the people you met at an event and update existing leads instead of creating second records.

Capture Tom Reyes, tom.reyes@fabrikam.com, from Fabrikam as a Salesforce lead from the trade show.

Account managers

Spot customers before they are prospected

Get told when a lead's company is already a customer account, so your accounts are not cold called.

Create a Salesforce lead for Lee Chen at Northwind Traders, lee@northwindtraders.com, and tell me if they are already a customer.

How it works

What PopdockAI does when you ask

You give a name, company and email, and your AI assistant checks Salesforce for anyone who already matches. Nothing is saved until you have seen the values and said yes.

01

Ask

You give a name, company and email.

Your AI tool

02

Check

It searches Salesforce leads, contacts and accounts for the person and company.

salesforce-get-lead
salesforce-get-contact
salesforce-get-account

03

Confirm

You see the exact values, or a choice to update an existing lead, and say yes.

No items found.

04

Create

It saves the lead and gives you its ID.

Your AI tool

What PopdockAI provides

The tools behind the answer

Ready made tools for Salesforce and one secure connection to your AI tool. No code, no exports.

get-data

salesforce-get-lead

Returns Salesforce leads with their company, status, source, owner, contact details, location and whether they are converted. Filter by name, company, email, status, lead source, owner, state, converted flag and created date.
get-data

salesforce-get-contact

Returns Salesforce contacts with their account, title, department, email, phone, mailing address, owner and lead source. Filter by name, email, account, title, owner, lead source and mailing city or state.
get-data

salesforce-get-account

Returns Salesforce accounts with their type, industry, owner, billing address, phone and annual revenue. Filter by name, account number, type, industry, owner, billing city or state, annual revenue and created date.
run-action

salesforce-update-lead

Updates a Salesforce lead's name, company, title, email, phone, industry, status or lead source.
run-action

salesforce-add-lead

Creates a Salesforce lead with name, company, title, email, phone, industry, status and lead source.
Read only.Nothing in Salesforce Changes

This report is built from Get data tools only. PopdockAI applies the row, field and parameter rules your admin sets, and every query is written to the audit trail.

How Popdock AI secures your data

The outcome

Every lead is new, and every customer is recognised

Try PopdockAI free
Get a live demo

Related use cases

More ways to put this data to work

All Ramp use cases

One prompt template with infinite possibilities.

‍

Your AI assistant adapts its approach, tone, and capabilities to match each unique context while you maintain a single, manageable workflow.

Join forward-thinking companies that are transforming their operations with intelligent, secure AI automation.

Try PopdockAI Free
See Documentation