1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "boardInput": {
12 "company": "Example Packaging Ltd.",
13 "periodEnd": "2026-08",
14 "currency": "USD",
15 "type": "sme",
16 "audience": "board",
17 "owners": {
18 "revenue": "Sales Director",
19 "profitability": "CFO",
20 "cash": "CFO",
21 "workingCapital": "CFO",
22 "leverage": "CFO"
23 },
24 "monthly": [
25 {
26 "month": "2026-06",
27 "revenue": 980000,
28 "revenueBudget": 920000,
29 "cogs": 680000,
30 "ebitda": 118000,
31 "ebitdaBudget": 130000,
32 "netProfit": 61000,
33 "cash": 1420000,
34 "operatingCashFlow": -10000,
35 "capex": 30000,
36 "receivables": 2000000,
37 "inventory": 950000,
38 "payables": 680000,
39 "financialDebt": 1950000
40 },
41 {
42 "month": "2026-07",
43 "revenue": 1000000,
44 "revenueBudget": 940000,
45 "cogs": 700000,
46 "ebitda": 120000,
47 "ebitdaBudget": 135000,
48 "netProfit": 63000,
49 "cash": 1350000,
50 "operatingCashFlow": -40000,
51 "capex": 25000,
52 "receivables": 2150000,
53 "inventory": 980000,
54 "payables": 670000,
55 "financialDebt": 1950000
56 },
57 {
58 "month": "2026-08",
59 "revenue": 1020000,
60 "revenueBudget": 960000,
61 "cogs": 715000,
62 "ebitda": 121000,
63 "ebitdaBudget": 140000,
64 "netProfit": 64000,
65 "cash": 1260000,
66 "operatingCashFlow": -60000,
67 "capex": 25000,
68 "receivables": 2300000,
69 "inventory": 1000000,
70 "payables": 660000,
71 "financialDebt": 1900000
72 },
73 {
74 "month": "2026-09",
75 "revenueBudget": 980000,
76 "ebitdaBudget": 145000
77 }
78 ],
79 "kpis": [
80 {
81 "name": "Revenue growth %",
82 "area": "revenue",
83 "owner": "Sales Director",
84 "weight": 50,
85 "min": 10,
86 "target": 20,
87 "max": 30,
88 "actual": 24,
89 "direction": "higher",
90 "unit": "%"
91 },
92 {
93 "name": "DSO (days)",
94 "area": "workingCapital",
95 "owner": "CFO",
96 "weight": 50,
97 "min": 70,
98 "target": 55,
99 "max": 45,
100 "actual": 68,
101 "direction": "lower",
102 "unit": "days"
103 }
104 ],
105 "actions": [
106 {
107 "action": "Rewrite credit terms for the top 10 customers",
108 "owner": "CFO",
109 "due": "2026-08-31",
110 "status": "open"
111 }
112 ],
113 "thesis": null,
114 "sources": {
115 "aylik": "Trial balance and management accounts, Jan-Aug 2026",
116 "kpi": "2026 CEO scorecard",
117 "aksiyonlar": "Board resolution log"
118 }
119 }
120};
121
122
123const run = await client.actor("bloom-consulting/board-dashboard").call(input);
124
125
126console.log('Results from dataset');
127console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
128const { items } = await client.dataset(run.defaultDatasetId).listItems();
129items.forEach((item) => {
130 console.dir(item);
131});
132
133