Trustpilot (Customer) ACTION
Fetch Service Reviews
Get private reviews for a business unit. Response includes customer email and order ID. See the documentation
- Action
- Read only
- OAuth
- SDK
- MCP
IMPLEMENTATION
Call this tool
Connect a user's Trustpilot (Customer) account once, then configure and run Fetch Service Reviews from your backend or agent.
import { PipedreamClient } from "@pipedream/sdk"
const pd = new PipedreamClient({
projectId: process.env.PIPEDREAM_PROJECT_ID!,
clientId: process.env.PIPEDREAM_CLIENT_ID!,
clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
projectEnvironment: "production",
})
const result = await pd.actions.run({
id: "trustpilot-fetch-service-reviews",
externalUserId: "{external_user_id}", // any stable ID for this user in your system
configuredProps: {
trustpilot: { authProvisionId: "apn_xxxxxxx" },
businessUnitId: "Business Unit ID",
language: "Language",
},
})
console.log(result)curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
-H "Content-Type: application/json" \
-H "X-PD-Environment: production" \
-H "Authorization: Bearer {access_token}" \
-d '{
"external_user_id": "{external_user_id}",
"id": "trustpilot-fetch-service-reviews",
"configured_props": {
"trustpilot": { "authProvisionId": "apn_xxxxxxx" },
"businessUnitId": "Business Unit ID",
"language": "Language"
}
}'// accessToken: mint a short-lived token with the Connect SDK — see the MCP guide
const transport = new StreamableHTTPClientTransport(
new URL("https://remote.mcp.pipedream.net/v3"),
{
requestInit: {
headers: {
Authorization: `Bearer ${accessToken}`,
"x-pd-project-id": "{project_id}",
"x-pd-environment": "production",
"x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
"x-pd-app-slug": "trustpilot",
},
},
},
)
const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)
const { tools } = await mcp.listTools()
// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
name: "trustpilot-fetch-service-reviews",
arguments: {
businessUnitId: "Business Unit ID",
language: "Language",
},
})SCHEMA
Inputs
Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.
| Property | Type | Description |
|---|---|---|
businessUnitId Business Unit ID | string | The unique identifier for your business unit on Trustpilot Required Dynamic |
language Language | string | Filter reviews by language (ISO 639-1 code) Optional |
page Page | integer | The page to retrieve. If the page number requested is higher than the available number of pages, an empty array will be returned. Optional |
stars Star Rating | string | Filter by reviews with a specific star rating. 1-5, separated by commas. Optional |
internalLocationId Internal Location ID | string | Filter by reviews with a specific location Optional |
perPage Per Page | integer | The number of reviews to retrieve per page Optional |
orderBy Order By | string | The order in which the results should be sorted Optional |
tagGroup Tag Group | string | Filtering reviews on Tag group Optional |
tagValue Tag Value | string | Filtering reviews on Tag value Optional |
ignoreTagValueCase Ignore Tag Value Case | boolean | Ignore tag value case Optional |
responded Responded | boolean | Filter reviews by responded state Optional |
referenceId Reference ID | string | Filter reviews by reference Id Optional |
referralEmail Referral Email | string | Filter reviews by referral email Optional |
reported Reported | boolean | Filter reviews by reported state Optional |
startDateTime Start Date Time | string | Filter reviews by datetime range. If no time is specified, then time is implicitly 00:00:00. Format: 2013-09-07T13:37:00 Optional |
endDateTime End Date Time | string | Filter reviews by datetime range. If no time is specified, then time is implicitly 00:00:00. Format: 2013-09-07T13:37:00 Optional |
source Source | string | Filter reviews by source Optional |
username Username | string | Filter reviews by user name Optional |
findReviewer Find Reviewer | string | Filter reviews by Find Reviewer requests (contacted or not contacted) Optional |
REFERENCE
Tool details
Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.
- Registry key
- trustpilot-fetch-service-reviews
- Version
- 0.1.2
- App
- Trustpilot (Customer)
- Authentication
- OAuth
- Read-only
- Yes
- Destructive
- No
- Open world
- Yes
- Source
- View on GitHub ↗