/
/
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.
On this page
Connector
Connect Freshdesk, pick your AI tool and paste the prompt.
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.
**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.
02
Read
It reads the ticket and finds the requester's email and company.
03
Match
It finds the person or account in Salesforce and stops if the match is missing or unclear.
04
Report
You get outstanding balance, overdue invoices and credit memos for the account.
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.
freshdesk-get-tickets
freshdesk-get-contacts
salesforce-get-contact
salesforce-get-account
salesforce-get-invoice
salesforce-get-credit-memo
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.
The outcome
Billing answers traced to named invoices
Related use cases
More ways to put this data to work
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.

.webp)
