Connectors

/

Salesforce

/

Qualify a Salesforce lead
Write

Qualify a Salesforce lead into account, contact and deal

For sales reps qualifying a lead who want the account, contact and opportunity set up without duplicates, by asking their AI assistant.

Try PopdockAI free
Get a live demo
Qualify a Salesforce lead
Qualify the lead sam.patel@fabrikam.com into an opportunity called Fabrikam Analytics, closing December 15.
Here is the plan for Sam Patel at Fabrikam Inc. - Account: reuse Fabrikam Inc, no open deals - Contact: create Sam Patel, Head of Data - Opportunity: Fabrikam Analytics, Qualification, closes 2026-12-15 - Lead: status set to Qualified, the converted flag stays false Shall I go ahead?
Salesforce
Sample figures. Your results come from your own account.
salesforce-get-lead
salesforce-get-account
salesforce-get-contact
salesforce-get-opportunity
salesforce-add-account
salesforce-add-contact
salesforce-add-opportunity
salesforce-update-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

Qualifying a lead creates duplicates and misses open deals

Qualifying a lead by hand means creating an account, a contact and an opportunity, copying details across and updating the lead. If the company or person already exists you create duplicates, and an open deal on the same account can be missed.

Without PopdockAI

  • Search for an existing account and contact
  • Create whatever is missing and copy details across
  • Miss an open deal already on the account
  • Update the lead status by hand

With PopdockAI

  • Existing accounts and contacts are found and reused
  • Open deals on the account are shown before you decide
  • You review what is reused and created, then confirm
  • A failure stops the run and reports what was created

The prompt

Use this prompt

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

Prompt
**Objective:** Turn the lead with email `{lead-email}` into an account, a contact and an opportunity named `{opportunity-name}` (default: the company name followed by " - New business"), closing `{close-date}` (default: 90 days from today).

**Step 1: Resolve the lead**

Call `salesforce-get-lead` with `email` set to `{lead-email}` and `converted` false. Require exactly one match.

**Step 2: Find what already exists**

* `salesforce-get-account` with `name` set to the lead's company, then with `name.contains`. If exactly one matches, reuse it. If several match, ask which.
* `salesforce-get-contact` with `email` set to `{lead-email}`. If one exists, reuse it and do not create a contact.
* `salesforce-get-opportunity` with `account-id` (when the account exists) and `closed` false: show any open deals so the user can decide whether a new one is needed.

**Step 3: Confirm the plan**

Show the plan as a list: account (reuse or create, with name, industry, city, phone), contact (reuse or create, with name, title, email, phone), opportunity (name, stage Prospecting or Qualification, close date, lead source copied from the lead), and the lead's new status. 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.

**Step 4: Execute in order, stopping on the first failure**

1. `salesforce-add-account` if creating; keep the returned id.
2. `salesforce-add-contact` with account-id, if creating; keep the returned id.
3. `salesforce-add-opportunity` with account-id, name, stage, close-date, lead-source.
4. `salesforce-update-lead` with `id` and `status` set to the qualified status the user confirmed.

**Step 5: Report**

Each record with its ID and whether it was reused or created.

**Rules & Guidelines:**

* The only write tools this prompt may call are `salesforce-add-account`, `salesforce-add-contact`, `salesforce-add-opportunity` and `salesforce-update-lead`, each at most once, in that order.
* The connector cannot run Salesforce's native lead conversion, so the lead's converted flag will stay false. Say so in the report.
* If a step fails, report which records were already created. Do not delete them and do not retry.

**Validation:**

* If the lead is already converted, say so and stop.

Who it's for

One answer, three teams that use it

Sales development reps

Hand qualified leads to sales cleanly

Turn a lead into an account, contact and deal in one confirmed step, without duplicates.

Qualify the lead priya@contoso.com into an opportunity called Contoso Data Platform, closing January 30.

Account executives

Pick up new deals on the right account

See any open deals on the company first, so you do not start a second one by mistake.

Convert the lead lee@northwindtraders.com into a deal and tell me if Northwind Traders already has open opportunities.

Sales operations

Keep conversions consistent

Every qualified lead follows the same order, reusing what exists and reporting anything that failed.

Qualify the Salesforce lead tom.reyes@fabrikam.com, deal name Fabrikam Field Service, close date March 31.

How it works

What PopdockAI does when you ask

You give the lead's email and the deal details, and your AI assistant plans what to reuse and what to create. Nothing is written until you have reviewed the whole plan.

01

Ask

You give the lead's email, and optionally a deal name and close date.

Your AI tool

02

Check

It finds the lead and any existing account, contact and open deals.

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

03

Confirm

You review what is reused and what is created, and say yes.

No items found.

04

Create

It creates the records in order and marks the lead qualified.

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-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.
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-opportunity

Returns Salesforce opportunities with their account, stage, amount, probability, close date, next step, owner and whether they are closed or won. Filter by name, account, stage, owner, amount, close date and closed and won flags.
run-action

salesforce-add-account

Creates a Salesforce account from a name, type, industry, website, phone, billing city and country and description.
run-action

salesforce-add-contact

Creates a Salesforce contact on an account, with name, title, email, phone, mobile phone and lead source.
run-action

salesforce-add-opportunity

Creates a Salesforce opportunity on an account, with name, stage, amount, probability, close date, type, next step and lead source.
run-action

salesforce-update-lead

Updates a Salesforce lead's name, company, title, email, phone, industry, status or 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

A clean account, contact and deal from every qualified lead

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