# FoodTech & Agriculture Intelligence AI (`visita/foodtech-agriculture-intelligence`) Actor

Turn raw news into AgTech alpha. Scrape top sources (AgFunder, FoodDive), and analyze with AI for Impact Scores (0-100), Emerging Tech, and Commodities. Features "Scrape-First" reliability, Brave Search fallback, and instant Discord alerts.

- **URL**: https://apify.com/visita/foodtech-agriculture-intelligence.md
- **Developed by:** [Visita Intelligence](https://apify.com/visita) (community)
- **Categories:** AI, News, Agents
- **Features:** Limited permissions
- **Stats:** 5 total users, 0 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $7.00 / 1,000 llm analyses

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## 🌾 FoodTech & Agriculture Intelligence Pipeline

**Turn raw AgTech news into actionable market intelligence.**

This Actor is a high-performance intelligence agent that monitors the web's top FoodTech, Agriculture, and Sustainability sources (AgFunder, FoodDive, Precision Farming Dealer, etc.). It doesn't just "scrape" news—it reads, analyzes, and structures it into specific data points like **Commodities**, **Emerging Technologies**, and **Impact Scores** using state-of-the-art AI.

***

### 🚀 Why Use This Actor?

Most scrapers just give you a title and a link. **We give you structured intelligence.**

#### 🧠 **1. AI-Powered AgTech Analyst**

Every article is processed by a Large Language Model to extract niche-specific data:

- **🚜 Key Companies:** Automatically extracts players mentioned (e.g., *"John Deere", "Beyond Meat", "Cargill"*).
- **🧬 Technologies:** Identifies specific tech (e.g., *"Precision Fermentation", "Vertical Farming", "CRISPR"*).
- **🌽 Commodities:** Extracts crops or inputs mentioned (e.g., *"Soy", "Nitrogen Fertilizer", "Alternative Protein"*).
- **💯 Impact Score (0-100):** Instantly filter noise. Know if a story is "Routine PR" (10/100) or "Industry Shifting" (90/100).

#### 🛡️ **2. "Unblockable" Architecture**

AgTech and trade sites often have strict blocking. We use a robust **"Scrape-First, Search-Fallback"** engine:

1. **Attempt 1:** High-speed direct scraping of the article HTML.
2. **Attempt 2:** If blocked (403/429), the Actor automatically queries **Brave Search API** to reconstruct the context from rich snippets.
   *You always get data, never a blank page.*

#### 📢 **3. Real-Time Market Alerts**

Connect a **Discord Webhook** to automatically post beautiful, color-coded alerts for high-impact news directly to your team's server.

***

### 🛠️ Setup & Configuration (Critical)

\###Configure Inputs\*\*
| Field | Description |
| :--- | :--- |
| **News Source** | Choose from pre-curated high-quality feeds (AgFunderNews, FoodNavigator, Green Queen) or provide a custom RSS URL. |
| **Max Articles** | Limit the number of items to process (Recommended: 10-50 per run). |
| **Search Region** | Bias the fallback search engine to a specific country (e.g., USA `US`, Brazil `BR`, France `FR`). |
| **Discord Webhook** | (Optional) Paste a Discord Webhook URL to receive instant alerts for high-score news. |

***

### 📊 Data Output

The Actor saves results to the **Apify Dataset**. We provide a rich **Table View** in the console for instant scanning.

#### **JSON Example**

```json
{
  "title": "Iron Ox Launches New Mobile Robot for Vertical Farms",
  "url": "[https://example.com/agtech/iron-ox-launch](https://example.com/agtech/iron-ox-launch)",
  "published": "2025-11-30T10:00:00Z",
  "content_type": "AgTech Innovation",
  "impact_score": 85,
  "sentiment": "Growth",
  "companies": ["Iron Ox", "Plenty"],
  "technologies": ["Robotics", "Vertical Farming", "AI"],
  "commodities": ["Leafy Greens"],
  "summary": "Iron Ox has unveiled a new autonomous mobile robot designed to optimize yield in hydroponic vertical farms, signaling a shift towards fully automated CEA.",
  "data_source_method": "Direct Scraper"
}
```

***

### 💰 Pricing & Monetization

This Actor uses a **Pay-Per-Event** model.

- **Event:** `article-summary`
- **Cost:** You are charged a small fee for every successfully analyzed article.
- *Note:* You are NOT charged for failed scrapes or duplicates.

***

### 👨‍💻 For Developers

This Actor is built on a modular Python architecture using **LangGraph** for workflow orchestration.

- **Reliability:** Includes a `runTestMode` for zero-cost integration testing (passes Apify QA automatically).
- **Tech Stack:** Python 3.11, Pydantic, OpenAI SDK (OpenRouter), BeautifulSoup4, Brave Search API.

**Legal Disclaimer:** *This tool provides information for educational and research purposes only. It does not constitute investment advice.*

# Actor input Schema

## `source` (type: `string`):

Select the news feed to monitor.

## `customFeedUrl` (type: `string`):

If 'Custom' is selected, paste the RSS URL here.

## `maxArticles` (type: `integer`):

Articles to process per run.

## `country` (type: `string`):

Biases the fallback search engine towards a specific country.

## `discordWebhookUrl` (type: `string`):

Optional: Send high-impact alerts directly to Discord.

## `runTestMode` (type: `boolean`):

ENABLE THIS to run a fast system check without using AI credits. Returns dummy data.

## Actor input object example

```json
{
  "source": "all",
  "customFeedUrl": "",
  "maxArticles": 1,
  "country": "ALL",
  "discordWebhookUrl": "",
  "runTestMode": true
}
```

# Actor output Schema

## `overview` (type: `string`):

View structured FoodTech & Ag data in a sortable table.

## `json_feed` (type: `string`):

Direct link to the raw JSON data for developers/integrations.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "source": "all",
    "customFeedUrl": "",
    "maxArticles": 1,
    "country": "ALL",
    "discordWebhookUrl": "",
    "runTestMode": true
};

// Run the Actor and wait for it to finish
const run = await client.actor("visita/foodtech-agriculture-intelligence").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "source": "all",
    "customFeedUrl": "",
    "maxArticles": 1,
    "country": "ALL",
    "discordWebhookUrl": "",
    "runTestMode": True,
}

# Run the Actor and wait for it to finish
run = client.actor("visita/foodtech-agriculture-intelligence").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "source": "all",
  "customFeedUrl": "",
  "maxArticles": 1,
  "country": "ALL",
  "discordWebhookUrl": "",
  "runTestMode": true
}' |
apify call visita/foodtech-agriculture-intelligence --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,visita/foodtech-agriculture-intelligence"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/TNInWhWCnRd4gPMAZ/builds/gr17Hyc9H5WxTSfoz/openapi.json
