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 "title": "Best tool for managing support handoffs in a SaaS startup?",
15 "selftext": "We are a 12 person SaaS team outgrowing shared Gmail. Any recommendations for customer support software with Slack workflow automation?",
16 "subreddit": "SaaS",
17 "author": "founder_anne",
18 "permalink": "/r/SaaS/comments/abc123/best_tool_for_support_handoffs/",
19 "score": 42,
20 "numComments": 18,
21 "createdUtc": 1783497600
22 },
23 {
24 "postUrl": "https://www.reddit.com/r/CustomerSuccess/comments/switch1/zendesk_pricing/",
25 "title": "Zendesk pricing is getting brutal for our small support team",
26 "body": "We are frustrated with Zendesk and looking for an alternative to handle approvals and customer handoff workflows before this quarter.",
27 "community": "CustomerSuccess",
28 "username": "opslead",
29 "upvotes": 15,
30 "commentsCount": 9
31 },
32 {
33 "title": "Intercom billboard spotted downtown",
34 "text": "Saw an Intercom billboard today. Interesting marketing campaign.",
35 "subreddit": "marketing",
36 "author": "observer"
37 }
38 ],
39 "targetProfile": {
40 "productName": "Acme SupportDesk",
41 "productCategory": "customer support software",
42 "targetCustomers": [
43 "saas",
44 "startup",
45 "support team",
46 "agency"
47 ],
48 "targetSubreddits": [
49 "SaaS",
50 "Entrepreneur",
51 "CustomerSuccess"
52 ],
53 "competitors": [
54 "Zendesk",
55 "Intercom",
56 "Freshdesk"
57 ],
58 "painKeywords": [
59 "too expensive",
60 "handoff",
61 "approval workflow",
62 "slow support",
63 "migration"
64 ],
65 "solutionKeywords": [
66 "helpdesk",
67 "support",
68 "crm",
69 "workflow",
70 "automation"
71 ],
72 "negativeKeywords": [
73 "homework"
74 ],
75 "disallowedSubreddits": [
76 "jobs"
77 ]
78 },
79 "processedAt": "2026-07-08T00:00:00.000Z"
80};
81
82
83const run = await client.actor("rotvuvo/reddit-buyer-intent-lead-priority-scorer").call(input);
84
85
86console.log('Results from dataset');
87console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
88const { items } = await client.dataset(run.defaultDatasetId).listItems();
89items.forEach((item) => {
90 console.dir(item);
91});
92
93