Connectors

/

Salesforce

/

Create a Salesforce account with a contact
Write

Set up a Salesforce account and first contact in one step

For sales teams setting up a new customer who want the account and contact created cleanly, without duplicates or stranded leads, by asking their AI assistant.

Try PopdockAI free
Get a live demo
Create a Salesforce account with a contact
Create a Salesforce account for Fabrikam Robotics with Jordan Lee, jordan@fabrikamrobotics.com, as the first contact.
No account, contact or open lead matches, so both records are new. - Account: Fabrikam Robotics, industry Manufacturing, Seattle - Contact: Jordan Lee, jordan@fabrikamrobotics.com - Link: the contact is created under the new account Shall I create the account and then the contact?
Salesforce
Sample figures. Your results come from your own account.
salesforce-get-account
salesforce-get-contact
salesforce-get-lead
salesforce-add-account
salesforce-add-contact

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 customers that start life as duplicate accounts

Setting up a new customer means creating the account, then the first contact, and linking them. If the company already exists under a similar name or the person is sitting as a lead, you get duplicate accounts and a lead that is never converted.

Without PopdockAI

  • Search accounts by a few spellings of the name
  • Search contacts and leads by email
  • Create the account, then the contact, and link them
  • Clean up duplicates and stranded leads later

With PopdockAI

  • Existing accounts, contacts and open leads are checked first
  • An existing account switches to adding just the contact
  • You see the exact values and confirm before anything is written
  • The account is created first and the contact linked to it

The prompt

Use this prompt

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

Prompt
**Objective:** Create the account `{account-name}` with its first contact `{contact-name}` (email `{contact-email}`).

**Step 1: Duplicate check**

* `salesforce-get-account` with `name` and then `name.contains` set to `{account-name}`. If an account matches, show it and stop; offer to add only the contact to it.
* `salesforce-get-contact` with `email` set to `{contact-email}`. If it matches, show the existing contact and its account and stop.
* `salesforce-get-lead` with `email` set to `{contact-email}` and `converted` false. If a lead matches, suggest the `qualify-lead` prompt instead and stop.

**Step 2: Confirm**

Split `{contact-name}` into first and last name. Ask for any of industry, type, website, phone, billing city and country the user wants to set. 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 3: Create, in order**

1. `salesforce-add-account`; keep the returned id.
2. `salesforce-add-contact` with account-id set to that id.

**Step 4: Report**

Both new IDs and the values used.

**Rules & Guidelines:**

* The only write tools this prompt may call are `salesforce-add-account` and `salesforce-add-contact`, each once. When the user chose "add only the contact" in Step 1, only `salesforce-add-contact`.
* If the account is created but the contact fails, report the account ID and the error; do not retry.

**Validation:**

* If `{contact-email}` is blank, warn that the duplicate check is weaker and continue only on a yes.

Who it's for

One answer, three teams that use it

Account executives

Set up a new customer in one message

Create the account and its first contact together, already linked, right after the deal is agreed.

Set up Contoso Health in Salesforce with Maria Gomez, maria@contosohealth.com, as the first contact, industry Healthcare.

Sales operations

Stop duplicate accounts at the source

Similar account names and open leads are found before anything is created, so the data stays clean.

Create an account for Northwind Logistics with contact Ben Ito, ben@northwindlogistics.com, but check it does not exist first.

Customer onboarding

Start onboarding with the right records

Make sure each new customer has one account and a named contact before onboarding begins.

Add Fabrikam Labs as a Salesforce account with Chris Doyle, chris@fabrikamlabs.com, billing city Seattle.

How it works

What PopdockAI does when you ask

You give the company and the first contact, and your AI assistant checks Salesforce for anything that already exists. Both records are created only after you have seen them and said yes.

01

Ask

You give the account name and the contact's name and email.

Your AI tool

02

Check

It searches Salesforce for the account, a contact with that email and an open lead.

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

03

Confirm

You add any extra details, see the exact values and say yes.

No items found.

04

Create

It creates the account, then the linked contact, and reports both IDs.

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

One clean account and contact for every new customer

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