$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "rows": [
< {
< "company": "Stripe",
< "website": "stripe.com",
< "description": "Online payment processing platform for internet businesses.",
< "address": "354 Oyster Point Blvd, South San Francisco, CA 94080, USA"
< },
< {
< "company": "Bimbo",
< "website": "grupobimbo.com",
< "description": "Multinational bakery products manufacturer with brands like Bimbo, Marinela and Sara Lee.",
< "address": "Prolongación Paseo de la Reforma 1000, Santa Fe, 01210 Ciudad de México, CDMX"
< },
< {
< "company": "Shopify",
< "website": "shopify.com",
< "description": "Commerce platform that lets anyone start, manage and grow an online store.",
< "address": "151 O'Connor St, Ottawa, ON K2P 2L8, Canada"
< },
< {
< "company": "Mayo Clinic",
< "website": "mayoclinic.org",
< "description": "Nonprofit academic medical center focused on patient care, research and education.",
< "address": "200 First St SW, Rochester, MN 55905, USA"
< },
< {
< "company": "Siemens",
< "website": "siemens.com",
< "description": "Technology company focused on industry, infrastructure, mobility and healthcare.",
< "address": "Werner-von-Siemens-Straße 1, 80333 München, Germany"
< },
< {
< "company": "Cemex",
< "website": "cemex.com",
< "description": "Global building materials company producing cement, ready-mix concrete and aggregates.",
< "address": "Av. Ricardo Margáin Zozaya 325, San Pedro Garza García, N.L., Mexico"
< },
< {
< "company": "Duolingo",
< "website": "duolingo.com",
< "description": "Language-learning app with gamified lessons in 40+ languages.",
< "address": "5900 Penn Ave, Pittsburgh, PA 15206, USA"
< },
< {
< "company": "Zara (Inditex)",
< "website": "inditex.com",
< "description": "Fashion retailer operating Zara, Pull&Bear, Massimo Dutti and other apparel brands.",
< "address": "Avenida de la Diputación, 15143 Arteixo, A Coruña, Spain"
< },
< {
< "company": "Airbnb",
< "website": "airbnb.com",
< "description": "Online marketplace for short-term homestays and experiences.",
< "address": "888 Brannan St, San Francisco, CA 94103, USA"
< },
< {
< "company": "Tesla",
< "website": "tesla.com",
< "description": "Designs and manufactures electric vehicles, battery storage and solar products.",
< "address": "1 Tesla Road, Austin, TX 78725, USA"
< },
< {
< "company": "Rappi",
< "website": "rappi.com",
< "description": "Latin American on-demand delivery app for food, groceries and pharmacy.",
< "address": "Calle 93 #19-58, Bogotá, Colombia"
< },
< {
< "company": "Deloitte",
< "website": "deloitte.com",
< "description": "Professional services network providing audit, consulting, tax and advisory services.",
< "address": "1 New Street Square, London EC4A 3HQ, United Kingdom"
< }
< ],
< "columns": [
< {
< "name": "industry",
< "instruction": "Classify the company's industry.",
< "type": "enum",
< "options": [
< "Software & Internet",
< "Fintech",
< "Retail & E-commerce",
< "Food & Beverage",
< "Healthcare",
< "Manufacturing & Industrial",
< "Construction & Materials",
< "Automotive",
< "Travel & Hospitality",
< "Education",
< "Professional Services",
< "Other"
< ]
< },
< {
< "name": "city",
< "instruction": "Extract the city from the address. Return only the city name.",
< "type": "text"
< },
< {
< "name": "is_b2b",
< "instruction": "True if the company mainly sells to other businesses (B2B). False if it mainly sells to consumers (B2C). Decide from the description; do not return null unless the description is missing.",
< "type": "boolean"
< },
< {
< "name": "lead_score",
< "instruction": "Score from 1 to 10 how well this company fits as a potential customer for a B2B SaaS product (data, operations or automation software). 10 is an excellent fit (mid-market or enterprise software buyer). 1 is a poor fit (pure consumer brand with no likely software-buying team).",
< "type": "number"
< },
< {
< "name": "fit_reason",
< "instruction": "One sentence in English (max 20 words) explaining the lead_score.",
< "type": "text"
< }
< ]
<}
<EOF
$curl "https://api.apify.com/v2/actors/datatools-ai~ai-table-enricher/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'