A client using WooCommerce and WooCommerce subscriptions needed to collect customer reviews on Trustpilot to build credibility and improve SEO performance. Manually sending review invitations is time-consuming and inconsistent, resulting in lower review collection rates and missed opportunities to collect customer feedback after purchases and consultations.
Solution
An automated Trustpilot review invitation system that sends product and service review requests triggered by WooCommerce orders and user events. The integration includes database tracking, cron-based scheduling, and REST API webhooks for comprehensive review management.
Technical Implementation
- Dual invitation types that support both product and service reviews based on order content.
- Order hook integration that triggers review invitations when orders reach specific completion statuses.
- User event triggers sending service review requests after consultation completions or account milestones.
- Custom database schema for tracking sent invitations and preventing duplicate requests.
- Cron job scheduling that manages delayed invitation sends for optimal timing after delivery.
- Logging infrastructure providing visibility into all Trustpilot API interactions and invitation sends.
- REST API webhooks for receiving Trustpilot events and updating invitation status.
- Admin configuration panel for managing API credentials, invitation timing, and trigger settings.
Results
Review collection rates increased through automated invitation timing that catches customers at optimal moments. The dual invitation system ensures both product and service reviews are collected based on order type. Businesses maintain a steady flow of fresh reviews without manual intervention, improving search rankings and customer trust.
