Connectors

/

Salesforce

/

Create a Salesforce case for a contact
Write

Log one Salesforce case per customer issue

For support agents taking a call who want the case on the right contact without opening a duplicate, by asking their AI assistant.

Try PopdockAI free
Get a live demo
Create a Salesforce case for a contact
Open a Salesforce case for sam.patel@contoso.com: invoice portal login fails, priority High.
Sam Patel at Contoso Ltd has no open case with a similar subject. - Subject: Invoice portal login fails - Priority: High, status New, origin Phone - Contact and account: Sam Patel, Contoso Ltd Shall I create the case?
Salesforce
Sample figures. Your results come from your own account.
salesforce-get-contact
salesforce-get-case
salesforce-add-case

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

Second cases for the same issue, on the wrong contact

Logging a case while a customer is on the phone means finding the contact, checking for an open case about the same thing and filling in priority, origin and account. Under pressure agents open a duplicate case or attach it to the wrong person.

Without PopdockAI

  • Search for the contact while the customer waits
  • Scroll their open cases for the same issue
  • Fill in priority, origin and account by hand
  • Duplicate cases split the history

With PopdockAI

  • The contact is found by email and never created
  • Open cases with a similar subject are flagged
  • You see the case, contact and account and confirm first
  • The new case number is read back to give the customer

The prompt

Use this prompt

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

Prompt
**Objective:** Open a case with subject `{subject}` for the contact with email `{contact-email}`, priority `{priority}` (default Medium).

**Step 1: Resolve the contact**

Call `salesforce-get-contact` with `email` set to `{contact-email}`. If none match, say so and stop (do not create a contact). If several match, list them with their accounts and ask which one.

**Step 2: Check for an existing case**

Call `salesforce-get-case` with `contact-email` set to `{contact-email}` and `closed` false. If an open case has a similar subject, show it and ask whether to create a new one anyway.

**Step 3: 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-case` once with subject, priority, status New, origin Phone unless the user says otherwise, contact-id and account-id from the contact.

**Step 4: Report**

The new case ID and then its case number (read it back with `salesforce-get-case` filtered by `contact-email` and `created-date.from` today).

**Rules & Guidelines:**

* `salesforce-add-case` is the only write tool this prompt may call, and only once.

**Validation:**

* If `salesforce-add-case` reports success false, show the error and stop.

Who it's for

One answer, three teams that use it

Support agents

Log the case while the customer is talking

Create the case in one message and read the case number back before the call ends.

Log a Salesforce case for lee@fabrikam.com: export to CSV times out, priority Medium.

Support team leads

Fewer duplicate cases in the queue

Similar open cases are flagged before a new one is created, so work is not split across records.

Does priya@contoso.com already have an open case about billing? If not, open one: duplicate charge on the March invoice.

Account managers

Raise issues for your customers correctly

Open a case on behalf of a customer, linked to the right contact and account, without learning the case form.

Open a High priority Salesforce case for dana@northwindtraders.com: users cannot reset passwords.

How it works

What PopdockAI does when you ask

You give the subject and the customer's email, and your AI assistant finds the contact and checks their open cases. The case is created only after you confirm.

01

Ask

You give the subject, the contact's email and optionally a priority.

Your AI tool

02

Check

It finds the contact and looks at their open cases for a similar subject.

salesforce-get-contact
salesforce-get-case

03

Confirm

You see the exact case, contact and account, and say yes.

No items found.

04

Create

It creates the case and reads back the case number.

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

Returns Salesforce support cases with their subject, status, priority, origin, owner, account, contact and whether they are escalated or closed. Filter by case number, subject, status, priority, owner, account, contact email, closed flag and created date.
run-action

salesforce-add-case

Opens a Salesforce case for an account and contact, with subject, description, type, priority, origin and status.
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 case per issue, with a number to quote back

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