Inspiration
Farm teams make dozens of operational decisions from scattered notes: irrigation times, pest sightings, crop-health observations, equipment delays, labor constraints, and weather exposure. Those notes usually disappear into text threads or notebooks. We built TrellisAI so daily field logs become durable farm memory that an agent can reason over before recommending tomorrow's work.
What it does
TrellisAI lets a grower enter messy natural-language farm logs. Gemini extracts structured activities, observations, risk signals, and embedding text. MongoDB stores raw logs, structured events, field history, recommendations, tasks, and vector-ready memory in one operational layer. The agent queries that memory through MongoDB tools/MCP, ranks current field risks, generates a daily action plan, and lets the user approve recommendations into tasks.
How we built it
The public app is a Cloudflare Worker that serves the dashboard and proxies API calls. The backend is a TypeScript API deployed to Google Cloud Run. It uses Google Cloud Agent Builder for farm-log extraction, MongoDB for operational memory, and MongoDB MCP Server as the agent-accessible data tool layer. MongoDB aggregation pipelines rank risks across fields, and approved recommendations are written back as tasks.
MongoDB track fit
MongoDB is TrellisAI's persistent farm memory layer. We store raw logs, structured observations, field history, recommendations, tasks, and vector embeddings together so the agent can connect today's note to prior field context. MongoDB MCP gives the agent a real tool layer for inspecting collections, retrieving field history, aggregating risk signals, and writing approved recommendations or tasks back to MongoDB.
Google Cloud and Gemini use
TrellisAI is built around a Gemini extraction and planning loop. Gemini turns messy farm notes into strict structured JSON that the backend stores in MongoDB. Google Cloud Agent Builder hosts the agent workflow, uses Secret Manager for credentials, and the demo video voiceover was generated with Google Cloud Text-to-Speech.
Challenges
The main challenge was turning unstructured agricultural notes into a simple, auditable workflow instead of a chat-only demo. We needed the agent to preserve raw notes, create structured records, aggregate risk signals, and keep the grower in control before tasks are created.
Accomplishments
We built an end-to-end farm-memory loop: daily logs are saved, structured, embedded, queried, ranked, and converted into recommendations. The project includes deployable Cloud Run and Cloudflare Worker surfaces, MongoDB indexes, seed data, a vector index definition, MongoDB MCP configuration, generated visual assets, and a narrated demo video.
What we learned
Agentic farm workflows need memory more than conversation. MongoDB is useful here because operational records, semantic search vectors, and task state can live together and remain queryable by both the app and the agent tool layer.
What's next
Next steps are richer grower approval flows, weather API integration, photo-based scouting notes, field-specific thresholds, and real Atlas Vector Search retrieval for have we seen this before questions.
Built With
- cloudflare-workers
- gemini
- google-artifact-registry
- google-cloud
- google-cloud-agent-platform-runtime
- google-cloud-build
- google-cloud-run
- google-cloud-text-to-speech
- google-secret-manager
- mongodb
- mongodb-mcp-server
- mongodb-vector-search
- node.js
- typescript
- vertex-ai
- vertex-ai-veo-3.1
Log in or sign up for Devpost to join the conversation.