1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "brief": "A SaaS that lets small restaurants manage online reservations and no-shows with automatic SMS reminders. Audience: independent restaurant owners in Europe. Tone: warm, modern, trustworthy.",
12 "requireFreeOn": [
13 "com"
14 ],
15 "tlds": [
16 "com",
17 "io",
18 "ai"
19 ],
20 "platforms": [
21 "x",
22 "youtube",
23 "tiktok",
24 "telegram",
25 "github",
26 "linkedin",
27 "bluesky",
28 "substack",
29 "npm"
30 ],
31 "languages": [
32 "English",
33 "Italian"
34 ]
35};
36
37
38const run = await client.actor("agentsgearbox/brand-name-generator").call(input);
39
40
41console.log('Results from dataset');
42console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
43const { items } = await client.dataset(run.defaultDatasetId).listItems();
44items.forEach((item) => {
45 console.dir(item);
46});
47
48