Connectors

/

Freshdesk

/

Freshdesk and WooCommerce customer history by email
Report
Cross-Connector

One timeline of tickets, orders and refunds for a customer

For support agents who want Freshdesk tickets and WooCommerce orders and refunds for one email, just by asking their AI assistant.

Try PopdockAI free
Get a live demo
Freshdesk and WooCommerce customer history by email
Show me the full history for dana@northwindtraders.com from Freshdesk and WooCommerce for the last 180 days.
Dana has 7 orders and 4 tickets, and one ticket followed a refund within a day. - Orders: 7, total spend 1,260, refunded 85 - Tickets: 4, 1 open, average rating 4 out of 5 - Timeline: order 2 Oct, refund 9 Oct, ticket opened 10 Oct - Names: the same in both systems Want the full timeline in date order?
Freshdesk
Sample figures. Your results come from your own account.
freshdesk-get-contacts
freshdesk-get-tickets
freshdesk-get-satisfaction-ratings
woocommerce-get-customer
woocommerce-get-order
woocommerce-get-refund

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

Answering without knowing what was bought or refunded

Support and order history live in Freshdesk and WooCommerce, so agents answer without knowing what a customer bought, had refunded or complained about. Rebuilding the sequence means lining up dates by hand.

Without PopdockAI

  • Search Freshdesk for tickets and ratings
  • Search WooCommerce for orders and refunds
  • Line up dates across both systems
  • Miss that a ticket followed an order

With PopdockAI

  • Tickets and ratings are read from Freshdesk
  • Orders and refunds are read from WooCommerce for the same email
  • Everything merges into one dated timeline with totals
  • A few observations are added, 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:** Produce a single support and purchase history for the customer with email `{email}`, covering the last `{lookback-days}` days (default 180).

**Step 1: Freshdesk side**

Call `freshdesk-get-contacts` with `email` set to `{email}`. If there is no contact, note that and use the email directly in the next call. Call `freshdesk-get-tickets` with `requester-email` set to `{email}` and `created-at.from` set to today minus `{lookback-days}` days. If a contact was found, call `freshdesk-get-satisfaction-ratings` with its `user-id`.

**Step 2: WooCommerce side**

Call `woocommerce-get-customer` with `email` set to `{email}`. Call `woocommerce-get-order` with `customer-email` set to `{email}` and `created-date.from` set to the same start date. Call `woocommerce-get-refund` with `customer-email` set to `{email}` and the same start date.

**Step 3: Report**

Report: who the customer is (name, company, contact type), counts of tickets by status, average satisfaction rating if any, order count and total spend, total refunded, and a merged timeline of tickets, orders and refunds in date order. Finish with one or two observations, such as tickets opening shortly after an order or a refund without a ticket.

**Rules & Guidelines:**

* `freshdesk-get-contacts`, `freshdesk-get-tickets` and `freshdesk-get-satisfaction-ratings` are on the Freshdesk server. `woocommerce-get-customer`, `woocommerce-get-order` and `woocommerce-get-refund` are on the WooCommerce server.
* The email address is the only key shared by both systems. Compare it case-insensitively.
* Read-only. Never call any Freshdesk write tool (`freshdesk-add-ticket`, `freshdesk-add-ticket-note`, `freshdesk-reply-to-ticket`, `freshdesk-update-ticket`, `freshdesk-delete-ticket`, `freshdesk-add-contact`, `freshdesk-update-contact`, `freshdesk-delete-contact`, `freshdesk-add-company`, `freshdesk-update-company`, `freshdesk-delete-company`, `freshdesk-add-group`, `freshdesk-update-group`, `freshdesk-delete-group`, `freshdesk-add-time-entry`, `freshdesk-update-time-entry`, `freshdesk-delete-time-entry`) or any WooCommerce write tool (`woocommerce-add-order`, `woocommerce-update-order`, `woocommerce-add-order-note`, `woocommerce-add-refund`, `woocommerce-send-order-details`, `woocommerce-add-customer`, `woocommerce-update-customer`, `woocommerce-add-product`, `woocommerce-update-product`, `woocommerce-update-product-variation`, `woocommerce-add-coupon`, `woocommerce-update-coupon`).

**Validation:**

* If the customer exists in only one system, say so plainly and report that side alone.
* If the two systems show different names for the same email, report both.

Who it's for

One answer, three teams that use it

Support agents

Answer with the order history in view

See what the customer bought and had refunded around each ticket, so you reply about the right order.

What did eva@contoso.com order in WooCommerce before opening her Freshdesk ticket?

Store managers

Spot tickets that follow orders

Observations such as tickets opening soon after an order point you at products or steps causing trouble.

Show me orders, refunds and tickets for ben@fabrikam.com over the last 90 days in date order.

Customer service leads

See total spend and refunds at a glance

Order count, total spend and total refunded give context before you approve another refund.

How much has sam@northwindtraders.com spent and had refunded in WooCommerce, and what tickets has he raised?

How it works

What PopdockAI does when you ask

You give an email and a period, and your AI assistant merges tickets, orders and refunds in date order. Email is the only key, and differing names are shown, not merged.

01

Ask

You give a customer email and how many days to look back.

Your AI tool

02

Support

It reads the Freshdesk contact, tickets and satisfaction ratings.

freshdesk-get-contacts
freshdesk-get-tickets
freshdesk-get-satisfaction-ratings

03

Orders

It reads the WooCommerce customer, orders and refunds for the same email.

woocommerce-get-customer
woocommerce-get-order
woocommerce-get-refund

04

Timeline

It merges everything in date order with totals and a few observations.

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

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

freshdesk-get-tickets

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

freshdesk-get-satisfaction-ratings

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

woocommerce-get-customer

Returns WooCommerce customer accounts with name, billing address, role and whether they have paid for an order. Filter by email, id, last name, billing country or state, role and created date range.
get-data

woocommerce-get-order

Returns WooCommerce orders with status, totals, discounts, shipping, payment method and paid date. Filter by status, customer email or id, order number, created date range, total range or billing last name.
get-data

woocommerce-get-refund

Returns WooCommerce refunds with amount, reason, who made them and whether the gateway returned the money. Filter by order, customer, amount range and date range.
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

Tickets, orders and refunds in one timeline

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