The Trustpilot (Customer) API lets you tap into the rich pool of customer review data on Trustpilot. You can use it to automate the process of collecting and managing reviews, responding to feedback, and analyzing customer sentiment. With Pipedream's integration, you can trigger workflows based on new reviews, aggregate review data for analysis, and sync Trustpilot data with other services like CRMs, support tickets, and marketing tools.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
trustpilot: {
type: "app",
app: "trustpilot",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://invitations-api.trustpilot.com/v1/private/business-units/${this.trustpilot.$auth.business_unit_id}/templates`,
headers: {
Authorization: `Bearer ${this.trustpilot.$auth.oauth_access_token}`,
},
})
},
})
Manage New Reviews in Real Time: When a new review is posted on Trustpilot, use Pipedream to trigger a workflow that sends a notification to a Slack channel or an email to the customer service team. This enables immediate acknowledgment or action concerning the customer's feedback.
Aggregate Reviews for Reporting: Schedule a daily workflow on Pipedream that collects all the new reviews, summarizes the sentiment and star rating, and creates a report in Google Sheets. This allows for easy monitoring of customer satisfaction trends over time.
Automate Review Response: Craft a workflow that, upon receiving a new review, checks the star rating. If it's below a certain threshold, automatically draft a response or create a support ticket in Zendesk to ensure that a customer service rep engages with the unhappy customer promptly.
Trustpilot (Customer) uses OAuth authentication. When you connect your Trustpilot (Customer) account, Pipedream will open a popup window where you can sign into Trustpilot (Customer) and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Trustpilot (Customer) API.
Pipedream requests the following authorization scopes when you connect your account:
GET
https://authenticate.trustpilot.com/
?
client_id={{custom_fields.api_key}}
&
redirect_uri={{oauth.redirect_uri}}
&
state={{oauth.state}}
&
response_type=code
&
scope={{oauth.space_separated_scopes}}
POST
https://api.trustpilot.com/v1/oauth/oauth-business-users-for-applications/accesstoken
content-type: application/x-www-form-urlencoded
accept: application/json
redirect_uri={{oauth.redirect_uri}}
&
grant_type=authorization_code
&
code={{oauth.code}}
POST
https://api.trustpilot.com/v1/oauth/oauth-business-users-for-applications/accesstoken
content-type: application/x-www-form-urlencoded
accept: application/json
grant_type=refresh_token
&
refresh_token={{oauth.refresh_token}}