Case study

Reliable farming answers on WhatsApp for producers in the Río Lempa watershed

The SRL-Agente assistant profile on WhatsApp Business

Challenge

Producers and extension staff in the watershed needed timely agronomic guidance, but in-person technical assistance can't cover every question.

What we did

We designed and launched an AI assistant that answers from expert-validated knowledge, brings in climate information and logs every conversation for human review.

Outcome

An always-available assistance channel, with answers traceable to their sources and an improvement cycle driven by expert review.

Technology

  • RAG
  • WhatsApp Business
  • Gemini
  • PostgreSQL + pgvector
  • Natural language processing
  • Climate data

DAP's role. DAP designed the solution and supports its operation. Intellectual property is governed by the agreement with the client.

Architecture

How it works

The assistant answers questions about crops, pests, diseases, soil, irrigation and farm management, based on the program's technical materials. It has two parts: one prepares that knowledge and the other answers each question that arrives on WhatsApp.

When a farmer asks

  1. WhatsApp message

    The farmer types, sends a voice note or a photo of the crop to the assistant's official WhatsApp Business account.

  2. Verified intake

    A service receives the message from Meta's API, checks its signature and puts it in a queue.

  3. Preparing the question

    Voice notes are transcribed automatically and photos are added to the question.

  4. Understanding the question

    Crops, pests, symptoms or doses are recognized, along with the intent of the question.

  5. Searching validated content

    The most relevant passages in the knowledge base are retrieved and ranked by what is being asked.

  6. Answering

    A language model drafts the answer from those passages and sends it on WhatsApp.

How the knowledge is prepared

  1. Sources

    The team picks institutional technical documents and videos from shared folders.

  2. Processing

    Text is extracted from each document and split into passages. Each video contributes its transcript and a description of what it shows.

  3. Enrichment

    Each passage is tagged with a versioned agricultural taxonomy: terms, synonyms, relations, facets and intents.

  4. Index

    Passages are turned into vectors and stored in a database with semantic search.

  • It introduces itself as an automated assistant and shares a privacy notice from the first message.
  • Anyone who prefers to talk to a person gets the program team's contact.
  • The taxonomy and extraction rules are edited from an admin panel, with no code changes.
  • If the visual analysis of a video fails, processing continues with its transcript.
  • Every incoming message is validated with a cryptographic signature, and credentials are kept out of the code.
  • It can run Gemini on Google AI Studio or on Vertex AI without changing the rest of the system.

More of our work

Coffee Cloud dashboard with a map of Guatemala and indicators
Challenge
Coffee-farming families were making management decisions without access to climate information or timely technical assistance.
Outcome
An internationally recognized farmer-information model (MIT Technology Review Innovators Under 35, Cracking the Nut 2017).
AI agents and assistants for landscapes
~6,000coffee farmers reached
INATrace v2 dashboard with monthly coffee deliveries and producer filters, using demo data
Challenge
People using INATrace, the open agricultural traceability platform, ran into friction in the previous interface: long forms, tables that did not fit on a phone, text left in English, and a heavy public page for anyone scanning a product's QR code.
Outcome
A new interface that replaces every screen, works with the same backend and requires no data migration. On phones, the public page a QR code opens is 82% lighter.
Traceability, MRV/dMRV and verification
82%lighter public page on phones

Next step

What outcome do you need to prove in the next 12 months?

Tell us about your challenge. In a first conversation we'll see whether a diagnostic makes sense for your organization.

Book a diagnostic →