1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "businessName": "TechStartup Inc.",
12 "whatPromoting": "Our AI-powered project management tool that helps teams collaborate 3x faster with automated workflows and intelligent task prioritization.",
13 "benefits": "Save 10+ hours per week on project coordination, reduce miscommunication by 70%, increase team productivity, and get real-time insights into project progress.",
14 "goal": "Partnership",
15 "tone": "Professional yet approachable, confident but not pushy",
16 "additionalNotes": "Focus on the time-saving aspect. Avoid technical jargon. Include a soft CTA.",
17 "urlPromoting": "",
18 "whoYouPitchingTo": "",
19 "socialProof": "",
20 "nameOfRecipient": "",
21 "painPoint": "",
22 "language": "English"
23};
24
25
26const run = await client.actor("onescales/pitches-pro").call(input);
27
28
29console.log('Results from dataset');
30console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
31const { items } = await client.dataset(run.defaultDatasetId).listItems();
32items.forEach((item) => {
33 console.dir(item);
34});
35
36