1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "prompts": [
12 "Write a one-line cold email opener for Austin Dental Works, a cosmetic dentist in Austin, TX (austindentalworks.com).",
13 "Classify stripe.com (information technology & services, 12,000 employees) as one of: SaaS, Fintech, E-commerce, Agency, Other. Answer with one word.",
14 "Summarize this job posting in one sentence: Plant Controller at StevenDouglas, Houston, TX, posted 2026-11-19.",
15 "Write an email subject line under 8 words for Ronnie Fieg, Founder and CEO of Kith (kithnyc.com).",
16 "Is Moss Heating, Cooling & Plumbing in Dallas, TX a residential or commercial contractor? Answer residential, commercial or both, then one sentence why.",
17 "List three likely growth problems for QVC, a Shopify store in West Chester, PA with about $107M in monthly sales. One line each."
18 ]
19};
20
21
22const run = await client.actor("bulkleads/openrouter-alternative-bulk-llm").call(input);
23
24
25console.log('Results from dataset');
26console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
27const { items } = await client.dataset(run.defaultDatasetId).listItems();
28items.forEach((item) => {
29 console.dir(item);
30});
31
32