1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "mode": "items",
12 "items": [
13 {
14 "reviewId": "rev-low-1",
15 "businessName": "Acme Dental Austin",
16 "locationName": "Austin",
17 "rating": 1,
18 "reviewText": "Terrible service. I was overcharged and want a refund. The room felt unsafe and I will never again visit.",
19 "publishedAtDate": "2026-07-07T10:00:00.000Z",
20 "responseFromOwnerText": ""
21 },
22 {
23 "reviewId": "rev-mixed-1",
24 "businessName": "Acme Dental Round Rock",
25 "rating": 3,
26 "reviewText": "The dentist was helpful, but the wait was slow and the front desk ignored us.",
27 "publishedAtDate": "2026-07-06T16:00:00.000Z"
28 },
29 {
30 "reviewId": "rev-good-1",
31 "placeName": "Acme Dental Austin",
32 "stars": 5,
33 "text": "Great visit. The staff were friendly and helpful.",
34 "ownerResponse": "Thanks for visiting us!"
35 }
36 ],
37 "businessProfile": {
38 "brandName": "Acme Dental",
39 "locations": [
40 "Austin",
41 "Round Rock"
42 ],
43 "targetCategories": [
44 "Dental clinic"
45 ],
46 "escalationKeywords": [
47 "refund",
48 "injury",
49 "unsafe",
50 "legal"
51 ],
52 "urgentRatingThreshold": 2,
53 "defaultSlaHours": 48,
54 "autoThankRating": 5
55 },
56 "scrapedAt": "2026-07-08T00:00:00.000Z"
57};
58
59
60const run = await client.actor("rotvuvo/google-business-review-response-priority-scorer").call(input);
61
62
63console.log('Results from dataset');
64console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
65const { items } = await client.dataset(run.defaultDatasetId).listItems();
66items.forEach((item) => {
67 console.dir(item);
68});
69
70