1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "clientsCsv": `client,domain,brand,competitors,questions,keywords
12Help Scout,helpscout.com,Help Scout,Zendesk | zendesk.com; Freshdesk | freshworks.com; Intercom | intercom.com,What is the best help desk software for a small business?; What is the best customer support tool for a SaaS startup?; What is the most affordable help desk software?,help desk software; shared inbox software
13Pipedrive,pipedrive.com,Pipedrive,HubSpot | hubspot.com; Salesforce | salesforce.com; Zoho CRM | Zoho | zoho.com,What is the best CRM for a small sales team?; Which CRM is easiest to set up for a startup?; What is the best CRM for B2B sales pipelines?,sales pipeline software; crm for small business`,
14 "agencyName": "Northwind Digital",
15 "engines": [
16 "chatgpt",
17 "perplexity",
18 "gemini",
19 "google_ai_mode"
20 ]
21};
22
23
24const run = await client.actor("wrenfield-data/agency-ai-visibility-reports").call(input);
25
26
27console.log('Results from dataset');
28console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
29const { items } = await client.dataset(run.defaultDatasetId).listItems();
30items.forEach((item) => {
31 console.dir(item);
32});
33
34