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 "competitorName": "Acme CRM",
15 "source": "G2",
16 "rating": 2,
17 "reviewTitle": "Powerful automations, painful onboarding",
18 "reviewText": "The workflow builder is flexible, but onboarding took weeks. Our RevOps team struggled with integrations and reporting exports. Support was slow when the sync broke.",
19 "pros": "Automation rules are powerful once configured.",
20 "cons": "Onboarding, integrations, reporting, and support were painful.",
21 "date": "2026-06-28",
22 "role": "RevOps Manager",
23 "companySize": "51-200",
24 "reviewUrl": "https://reviews.example/g2/acme-crm/onboarding-gap"
25 },
26 {
27 "competitorName": "Acme CRM",
28 "source": "G2",
29 "rating": 5,
30 "reviewTitle": "Reliable dashboard for the sales team",
31 "reviewText": "The dashboards are reliable and the team likes the clean UI. We still wish implementation was faster for smaller teams.",
32 "pros": "Reliable dashboards and clean UI.",
33 "cons": "Implementation can be slow.",
34 "date": "2026-06-20",
35 "role": "Sales Ops Lead",
36 "companySize": "11-50",
37 "reviewUrl": "https://reviews.example/g2/acme-crm/reliable-dashboard"
38 },
39 {
40 "competitorName": "GrowthStack",
41 "source": "Capterra",
42 "rating": 3,
43 "reviewTitle": "Good product, pricing surprise at renewal",
44 "reviewText": "Good automation and templates, but pricing jumped at renewal. The billing page was confusing and integrations with our data warehouse needed custom work.",
45 "pros": "Templates and automation saved time.",
46 "cons": "Pricing, billing clarity, and data integrations were weak.",
47 "date": "2026-06-12",
48 "role": "Founder",
49 "companySize": "1-10",
50 "reviewUrl": "https://reviews.example/capterra/growthstack/pricing-renewal"
51 }
52 ],
53 "yourProduct": "Lightweight CRM automation platform for SaaS teams that need fast onboarding, clean integrations, and transparent pricing",
54 "targetCompetitors": [
55 "Acme CRM",
56 "GrowthStack"
57 ],
58 "targetSegments": [
59 "RevOps",
60 "SaaS founders",
61 "sales operations"
62 ],
63 "themeKeywords": [
64 "data warehouse",
65 "renewal"
66 ],
67 "scrapedAt": "2026-07-07T00:00:00.000Z"
68};
69
70
71const run = await client.actor("rotvuvo/saas-review-gap-battlecard-scorer").call(input);
72
73
74console.log('Results from dataset');
75console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
76const { items } = await client.dataset(run.defaultDatasetId).listItems();
77items.forEach((item) => {
78 console.dir(item);
79});
80
81