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 "Act as a senior SEO copywriter. For the product 'Patagonia Nano Puff jacket', write: (1) a 60-word benefit-driven product description, (2) an SEO meta title under 60 characters, (3) a meta description under 155 characters, and (4) 8 long-tail keywords people actually search for. Return everything as clean Markdown with headings.",
13 "Search the web for the three most recent funding rounds (last 30 days) in the European AI-agent startup space. For each, return: company name, amount raised, lead investor, one-sentence description of what they do, and the source URL. Format as a Markdown table.",
14 "Read the page at https://en.wikipedia.org/wiki/Transformer_(deep_learning_architecture) and extract: (1) the year the architecture was introduced, (2) the paper title and authors, (3) the three core components in plain English, (4) two real-world products that use it today, (5) one well-known limitation. Return as a JSON object with exactly those five keys."
15 ]
16};
17
18
19const run = await client.actor("fayoussef/bulk-llm-runner").call(input);
20
21
22console.log('Results from dataset');
23console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
24const { items } = await client.dataset(run.defaultDatasetId).listItems();
25items.forEach((item) => {
26 console.dir(item);
27});
28
29