1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "ledgerText": `client,site,contract,date,clientType,needs,preferences,tendencies,amount,status,deliveryPath,nextTime,leadTimeHours,askedAndReceived,cautions
12BloomCafe,CrowdWorks,C-101,2026-09-02,Cafe owner running Instagram,3 Instagram posts for the autumn menu,Warm beige tones; no stock-photo look,Replies within hours; friendly,6000,completed,/work/bloomcafe/2026-09,Send two color options first,26,Logo and menu photos (received),
13BloomCafe,CrowdWorks,C-118,2026-10-05,Cafe owner running Instagram,Halloween post and story,Same beige palette; short copy,Quick approval,4000,completed,/work/bloomcafe/2026-10,Keep the copy under 20 words,20,Logo already on file,
14Kito Design,Lancers,L-552,2026-09-15,Design agency (contest style),Spa campaign banner 1080x1080,Strict brief: colors and fonts fixed,Formal; does not announce results,1000,delivered,/work/kito/spa,Follow the brief exactly; no extra options,5,Brief PDF (received),Asked to continue on LINE
15Kito Design,Lancers,L-590,2026-10-20,Design agency (contest style),Winter banner set,Fonts fixed; NG word list,Slow replies,1000,not selected,/work/kito/winter,Check the NG words twice,4,,Invited to a paid course
16SunnyClinic,Coconala,K-77,2026-10-01,Small clinic,A4 flyer for flu shots,Clean white; large type for seniors,Careful; asks many questions,15000,completed,/work/sunny/flyer,Prepare a print-ready PDF and a PNG,48,Opening hours and map (received),
17SunnyClinic,Coconala,K-91,2026-11-02,Small clinic,Website banner for the new opening hours,Same layout as the flyer,Repeat client; trusts us,8000,in progress,/work/sunny/banner,Reuse the flyer colors,,Hours already received,`,
18 "client": "BloomCafe",
19 "request": "Christmas Instagram post with the same warm look"
20};
21
22
23const run = await client.actor("kotaro-project/client-history-brief").call(input);
24
25
26console.log('Results from dataset');
27console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
28const { items } = await client.dataset(run.defaultDatasetId).listItems();
29items.forEach((item) => {
30 console.dir(item);
31});
32
33