Add Shopify order context to new Freshdesk tickets

By General Input

Every 15 minutes, look up the customer's recent Shopify orders and drop a private note on new Freshdesk tickets so agents skip the alt-tab.

Integrations

  • Freshdesk
  • Shopify

Type

Agentic Task

Categories

  • Customer Support
  • Operations

Build me an agent workflow that gives my Freshdesk support agents instant Shopify order context on every new ecommerce ticket, so they don't have to alt-tab into the Shopify admin to look up a customer's order history.

Trigger: cron, every 15 minutes.

On each run, do the following:

1. Use Freshdesk List Tickets to fetch tickets created in the last 30 minutes. Filter to tickets whose source is email or portal, and skip any ticket that already has the tag "shopify-context".

2. For each remaining ticket, take the requester's email address and call Shopify Search Customers on that email.

3. If no matching Shopify customer is found, use Freshdesk Add Note to Ticket to post a short private note that says "No matching Shopify customer found for this requester", then use Freshdesk Update Ticket to add the tag "shopify-context" so we don't re-check this ticket next run. Move on to the next ticket.

4. If a Shopify customer is found, use Shopify Get Customer Orders to pull their order history.

5. Compose a concise private agent note using Freshdesk Add Note to Ticket with private=true. The note should contain:

- A one-line header with the customer's lifetime order count and total spend so the agent can gauge VIP status.

- A callout at the very top of the note if the customer has 3 or more refunds in the last 90 days, or an open unfulfilled order older than 7 days. If neither is true, skip the callout.

- A short list of the customer's 5 most recent orders, each line showing order number, order date, financial status, fulfillment status, and total.

- A brief note highlighting any currently open or unfulfilled orders and any refunds in the last 90 days.

Keep the note tight and scannable. This is an internal cheat sheet for the agent, not a customer-facing reply.

6. After the note is posted, use Freshdesk Update Ticket to add the tag "shopify-context" so this ticket is not enriched again.

Guardrails: never post a public reply, only private notes. Never modify ticket status, priority, or assignee. If a Shopify or Freshdesk call errors on a specific ticket, log the error and continue with the remaining tickets. Do not send anything to the customer.

Related prompts

Explore more prompts
Receiving dock console for inspecting and restocking Loop returnsSee which influencer creators actually drove Shopify salesMorning dispatch board for your local delivery runsAnswer Instagram and Messenger DMs with the order on screenWhite glove queue for the VIP customers waiting on youReturns and warranty claim desk that follows your policyFraud lookup desk for any email, phone, IP address or linkReview high risk Shopify orders before anything gets pickedFraud review desk for the Shopify orders you should holdMorning repricing console for Shopify with margin-safe rules