1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "mode": "analyze",
12 "deckInput": `Sample Startup Pitch:
13
14 Problem: Small businesses struggle with customer support automation, spending $50K+ annually on support staff.
15
16 Solution: Our AI-powered chatbot platform reduces support costs by 70% while improving response times.
17
18 Market: $8.5B TAM in SMB customer support software, growing 18% YoY.
19
20 Traction: 150 customers, $400K ARR, 25% MoM growth.
21
22 Team: 2 founders with 15 years combined experience in AI and SaaS.
23
24 Funding Ask: Raising $2M seed round for product development and sales team expansion.`,
25 "deckFile": "",
26 "batchMode": false,
27 "deckInputs": [],
28 "compareDecks": false,
29 "comparisonDeck2": "",
30 "comparisonDeck3": "",
31 "investorStage": "seed",
32 "investorFocus": "general",
33 "startupName": "Demo AI Startup",
34 "startupDescription": "An AI-powered customer support automation platform that helps small businesses reduce support costs by 70% while improving response times and customer satisfaction scores.",
35 "problemStatement": "",
36 "solutionStatement": "",
37 "targetMarket": "",
38 "businessModel": "",
39 "teamInfo": "",
40 "tractionInfo": "",
41 "competitorInfo": "",
42 "fundingAsk": "",
43 "industry": "saas",
44 "generateFromUrl": "",
45 "projectName": "",
46 "includeValuation": true,
47 "detectRedFlags": true,
48 "estimateDuration": true,
49 "generateCharts": true,
50 "generateRewrites": true,
51 "findInvestors": true,
52 "competitiveIntel": true,
53 "generateQA": true,
54 "executiveSummary": true,
55 "tailorForInvestor": "",
56 "aiProvider": "claude",
57 "apiKey": "",
58 "notifySlackWebhook": "",
59 "notifyDiscordWebhook": "",
60 "notifyEmail": ""
61};
62
63
64const run = await client.actor("actor_researcher.48/pitchdeck-analyzer-generator-pro-v-1").call(input);
65
66
67console.log('Results from dataset');
68console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
69const { items } = await client.dataset(run.defaultDatasetId).listItems();
70items.forEach((item) => {
71 console.dir(item);
72});
73
74