Queue Trustpilot review invitations for every Shopify order
Every new order queues a Trustpilot review invitation timed to land about a week after checkout, and logs it to your tracking sheet.
Poll my Shopify store for order events. Each time a new order comes in, I want a Trustpilot review invitation queued automatically, so nobody on my team has to remember to ask for reviews.
Before anything else, filter the order out if it is cancelled, if it is fully refunded, or if it has no customer email address on it. Skip those orders silently and do not log them as invitations. From every remaining order, take the buyer's email address, their first name, and the order number.
Resolve my Trustpilot business unit once using Find Business Unit with my store's domain, then call List Invitation Templates to get the invitation email templates available to that business unit. Pick the template I have configured by name, falling back to the first available template if that name is not found. Do not create a new template.
Then call Send Email Invitations for that business unit. Pass the buyer's email address and first name as the recipient, pass the chosen template, and pass the order number as the reference id so every review that comes back ties to a real purchase. Set the preferred send time to roughly seven days after the order was placed, so the invitation lands after the parcel has arrived rather than at checkout.
After each invitation is queued, use Google Sheets Append Values to add a row to my tracking tab recording the order number, the customer email, the scheduled send date, and the template that was used.
Two implementation notes. The Trustpilot invitation endpoints live on a different host from the main API, https://invitations-api.trustpilot.com/v1, and they are private endpoints, so they need a bearer token minted through the client credentials exchange rather than the plain api key header. Also keep track of which order numbers have already been invited, so a re-polled order never produces a duplicate invitation. If Trustpilot rejects an individual invitation, log the failure and keep processing the remaining orders.
What does this prompt do?
- Watches your Shopify store for new orders and picks up the buyer's first name, email address, and order number.
- Schedules a Trustpilot review invitation to go out about a week later, so it lands after the parcel has arrived rather than at checkout.
- Ties each invitation to the real order number, so the reviews you collect count as verified purchases.
- Logs every invitation to a Google Sheets tab and quietly skips cancelled orders, fully refunded orders, and anyone without an email address.
What do I need to use this?
- A Shopify store you can connect
- A Trustpilot Business account on a plan that includes review invitations
- At least one invitation email template already set up in Trustpilot
- A Google Sheets spreadsheet with a tab for tracking invitations
How can I customize it?
- Change the delay. Seven days suits most parcels, but you can shorten it for digital goods or stretch it for made-to-order items.
- Pick a different invitation template, or choose between templates based on what the customer bought or which store they ordered from.
- Add your own skip rules, for example ignoring wholesale orders, test orders, or repeat buyers you have already asked this month.
FAQs
When does the review invitation actually reach the customer?
Will the reviews count as verified?
What happens with cancelled or refunded orders?
Do I need to write the invitation email?
Can I see which invitations went out?
Related templates
Every weekday at 10am, an AI voice agent phones your most overdue Xero accounts, logs what each customer promised, and reports back to finance in Slack.
See every Google Maps listing you manage on one screen, ranked worst first, with an audit button that writes the fix list for you.
Your team picks a template, finds the customer, checks they are safe to email, then sends it, with every send logged where the whole team can see it.
Every night at 2am, pull the contacts on your open and won deals and block them from your cold outreach before the next send goes out.
Build every text campaign in one screen: check who is actually reachable, see a realistic send plan, then watch delivery land row by row.
See every LinkedIn ad account's spend against the budget you committed to, catch overspend early, and rebalance without rebuilding a spreadsheet.
Stop remembering to ask for reviews.
Let every Shopify order queue its own Trustpilot invitation, timed for the moment the parcel lands.