Connectors

/

Freshdesk

/

Freshdesk requester billing context from Salesforce
Report
Cross-Connector

Bring Salesforce billing context to a Freshdesk ticket

For finance and support teams who want a requester's open invoices and credit memos beside the ticket, just by asking their AI assistant.

Try PopdockAI free
Get a live demo
Freshdesk requester billing context from Salesforce
Pull the billing context for Freshdesk ticket 4127 from Salesforce.
Ticket 4127 is from Dana Whitfield at Contoso Ltd, who is linked to the Contoso Ltd account in Salesforce. - Outstanding balance: 3,450.00 across INV-1042 and INV-1051 - Overdue: INV-1042, due 3 Oct, balance 1,200.00 - Credit memos: CM-220, 300.00, dated 28 Sep - Read: the overdue invoice likely explains the dispute in the ticket Want the line items on INV-1042?
Freshdesk
Sample figures. Your results come from your own account.
freshdesk-get-tickets
freshdesk-get-contacts
salesforce-get-contact
salesforce-get-account
salesforce-get-invoice
salesforce-get-credit-memo

On this page

The problem

The problem

The prompt

Who it's for

How it works

Tools used

Connector

Freshdesk

Freshdesk
Run it on your own Freshdesk data.

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

Try PopdockAI free

The problem

Billing complaints answered without the invoices

When a customer complains about billing, the agent leaves the ticket, finds them in Salesforce and digs through invoices and credit memos. It takes several lookups, and it is easy to quote a balance without checking what is behind it.

Without PopdockAI

  • Copy the requester details from the ticket
  • Search Salesforce for the contact or account
  • Open invoices and credit memos one by one
  • Quote a balance without naming the invoices

With PopdockAI

  • The ticket requester and company are read from Freshdesk
  • The person or account is matched in Salesforce
  • Open invoices and credit memos give the balance
  • Every balance names its invoices, and nothing is changed

The prompt

Use this prompt

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

Prompt
**Objective:** Prepare billing context for Freshdesk ticket `{ticket-id}` by finding the requester's Salesforce account and its open invoices.

**Step 1: Read the ticket**

Call `freshdesk-get-tickets` with ticket-id. Note the subject, status, priority and requester-id. Then call `freshdesk-get-contacts` with contact-id set to the requester-id and note the email and company-id.

**Step 2: Find the contact in Salesforce**

Call `salesforce-get-contact` with email set to the requester email. If none is found, call `salesforce-get-account` with name.contains set to the Freshdesk company name. If still nothing, report that the requester is not in Salesforce and stop. If several accounts match, list them and stop.

**Step 3: Billing records**

Call `salesforce-get-invoice` with account-id and balance.min set to 0.01, and `salesforce-get-credit-memo` with account-id. Keep invoice-number, invoice-date, due-date, balance and status.

**Step 4: Report**

Ticket summary, account and contact found, total outstanding balance, overdue invoices (due-date before today), recent credit memos. Add 2 sentences on whether the billing data explains the ticket.

**Rules & Guidelines:**

* reshdesk-* tools are on the freshdesk server and salesforce-* tools are on the salesforce server; both servers must be connected.
* This prompt is read-only. Never call any freshdesk add, update, delete or reply tool (such as reshdesk-add-ticket-note, reshdesk-update-ticket, reshdesk-reply-to-ticket) or any salesforce add or update tool (such as salesforce-add-case, salesforce-add-contact, salesforce-update-account).

**Validation:**

* Never state a balance without naming the invoices behind it.
* If the ticket does not exist, say so and stop.

Who it's for

One answer, three teams that use it

Accounts receivable

See what a complaining customer owes

Outstanding balance, overdue invoices and recent credit memos come with the invoice numbers behind them.

What does the requester on Freshdesk ticket 5532 owe in Salesforce, and which invoices are overdue?

Support agents

Answer billing tickets with the facts

A short note says whether billing explains the ticket, so your reply is grounded in the real invoices.

Does billing explain Freshdesk ticket 6021? Check Salesforce invoices and credit memos for the customer.

Billing specialists

Check credits before issuing another

Recent credit memos are listed, so you can see if a credit has already been given.

Has the customer on Freshdesk ticket 4398 already received a credit memo in Salesforce this year?

How it works

What PopdockAI does when you ask

You give a ticket id and your AI assistant finds the requester in Salesforce and reports their billing position. It stops if there is no match or several accounts match.

01

Ask

You give a Freshdesk ticket ID.

Your AI tool

02

Read

It reads the ticket and finds the requester's email and company.

freshdesk-get-tickets
freshdesk-get-contacts

03

Match

It finds the person or account in Salesforce and stops if the match is missing or unclear.

salesforce-get-contact
salesforce-get-account

04

Report

You get outstanding balance, overdue invoices and credit memos for the account.

Your AI tool

What PopdockAI provides

The tools behind the answer

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

get-data

freshdesk-get-tickets

Returns tickets from Freshdesk, with filters on the fields that matter. Read-only.
get-data

freshdesk-get-contacts

Returns contacts from Freshdesk, with filters on the fields that matter. Read-only.
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.
get-data

salesforce-get-invoice

Returns Salesforce billing invoices with their account, invoice and due dates, totals, tax, payments applied and balance. Filter by invoice or document number, account, status, invoice date, due date, total and balance.
get-data

salesforce-get-credit-memo

Returns Salesforce billing credit memos with their account, status, totals, tax and applied, unapplied and remaining balance. Filter by credit memo or document number, account, status, credit date, total and balance.
Read only.Nothing in Freshdesk 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

Billing answers traced to named invoices

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