1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "company_name": "NextWave Logistics",
12 "company_info_or_website_text": "NextWave Logistics is a mid-sized regional freight forwarding company based in Texas. We specialize in cross-border warehousing, cold chain trucking, and last-mile B2B fulfillment. Currently operating 120 trucks with 3 regional hubs. Expanding our fleet across the southern border.",
13 "your_offer": "We provide an automated route optimization and fuel tracking IoT software that helps logistics companies cut fleet fuel costs by 18%."
14};
15
16
17const run = await client.actor("enchantingly_lockbox/b2b-cold-email-lead-outreach-ai-generator").call(input);
18
19
20console.log('Results from dataset');
21console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
22const { items } = await client.dataset(run.defaultDatasetId).listItems();
23items.forEach((item) => {
24 console.dir(item);
25});
26
27