<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Parth Deshpande</title>
    <description>The latest articles on DEV Community by Parth Deshpande (@parth_deshpande_48b3d5ba8).</description>
    <link>https://dev.to/parth_deshpande_48b3d5ba8</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4078683%2F16f4d3e7-379c-42fd-8da1-8fbe5d1e14bb.jpg</url>
      <title>DEV Community: Parth Deshpande</title>
      <link>https://dev.to/parth_deshpande_48b3d5ba8</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/parth_deshpande_48b3d5ba8"/>
    <language>en</language>
    <item>
      <title>Building AgriAlert: A Proactive Marathi AI Voice Assistant for Indian Farmers</title>
      <dc:creator>Parth Deshpande</dc:creator>
      <pubDate>Sat, 15 Aug 2026 08:40:14 +0000</pubDate>
      <link>https://dev.to/parth_deshpande_48b3d5ba8/building-agrialert-a-proactive-marathi-ai-voice-assistant-for-indian-farmers-1j17</link>
      <guid>https://dev.to/parth_deshpande_48b3d5ba8/building-agrialert-a-proactive-marathi-ai-voice-assistant-for-indian-farmers-1j17</guid>
      <description>&lt;p&gt;🌾 1. The Mission: Voice AI for the Backbone of Bharat&lt;br&gt;
In rural Maharashtra, timely access to agricultural insights can make or break a harvest. Sudden unseasonal rainfall, fast-spreading crop diseases, and fluctuating Mandi prices directly impact a farmer's livelihood. While modern digital tools exist, digital literacy and complex smartphone UIs often stand in the way.&lt;/p&gt;

&lt;p&gt;To bridge this divide, I spent the last 10 days building AgriAlert under the Farm &amp;amp; Field track of the #VoiceForBharat Challenge.&lt;/p&gt;

&lt;p&gt;AgriAlert is a Marathi AI voice assistant designed to provide real-time weather advisories, Mandi market rates, crop care guidance, and proactive disaster warnings through voice conversations on the web and direct mobile phone calls.&lt;/p&gt;

&lt;p&gt;⚙️ 2. High-Level System Architecture&lt;br&gt;
AgriAlert is built on a real-time conversational voice pipeline:&lt;/p&gt;

&lt;p&gt;[ Farmer Voice Input (Web/Phone) ]&lt;br&gt;
               │&lt;br&gt;
               ▼&lt;br&gt;
[ STT: LiveKit Multi-Locale Speech-to-Text ]&lt;br&gt;
               │&lt;br&gt;
               ▼&lt;br&gt;
[ Brain: LLM with Domain Prompt, Guardrails &amp;amp; Memory ]&lt;br&gt;
      ├── SQLite DB (Caller profile, land size, crops)&lt;br&gt;
      ├── Tools: Mandi Rates &amp;amp; Weather APIs&lt;br&gt;
      ├── Telephony: Outbound SIP Calling&lt;br&gt;
      └── Specialist Agent: Deep Agronomy Handoff&lt;br&gt;
               │&lt;br&gt;
               ▼&lt;br&gt;
[ TTS: Murf Falcon (Pooja - Marathi) ]&lt;br&gt;
               │&lt;br&gt;
               ▼&lt;br&gt;
[ Real-Time Audio Output (&amp;lt;500ms Latency) ]&lt;/p&gt;

&lt;p&gt;🚀 3. Key Features Built Across the 10 Days&lt;br&gt;
Ultra-Fast Regional Voice: Powered by Murf Falcon, the Marathi voice (Pooja) speaks naturally in Devanagari Marathi with near-zero latency, understanding code-mixed terms like "pesticide", "urea", and "weather".&lt;/p&gt;

&lt;p&gt;Strict Guardrails: Programmed to never guess market prices without verified sources, and strictly refuses to prescribe toxic chemicals without human expert validation.&lt;/p&gt;

&lt;p&gt;Long-Term Caller Memory: Uses an SQLite database to remember returning farmers, their district, and their primary crops upon explicit consent.&lt;/p&gt;

&lt;p&gt;Tool Chaining &amp;amp; Live Data: Automatically pulls the caller's saved district to fetch live weather forecasts and Mandi prices without making the farmer repeat themselves.&lt;/p&gt;

&lt;p&gt;Proactive Outbound Calls: Uses LiveKit SIP integration to automatically call farmers on their mobile phones when severe weather alerts are issued.&lt;/p&gt;

&lt;p&gt;Human Escalation (KVK Integration): Generates traceable support tickets for complex issues, routing them directly to agricultural extension officers.&lt;/p&gt;

&lt;p&gt;Call Analytics Dashboard: Tracks success rates, total calls, and call outcomes in real time while enforcing zero PII retention.&lt;/p&gt;

&lt;p&gt;Multi-Agent Specialist Handoff: Seamlessly transfers complex disease diagnosis calls to a dedicated Crop Problem Specialist Agent.&lt;/p&gt;

&lt;p&gt;🛠️ 4. Key Challenges &amp;amp; How I Solved Them&lt;br&gt;
Devanagari vs. Romanized Script: Early tests occasionally produced Romanized Marathi (e.g., 'namaste' instead of 'नमस्ते'), which caused TTS pronunciation issues. I resolved this by enforcing strict system prompt constraints requiring all Marathi responses to be strictly in native Devanagari script.&lt;/p&gt;

&lt;p&gt;Tool Chaining Latency: Calling multiple tools sequentially added noticeable delays. By pre-fetching caller metadata on session connection and passing cached district data into API calls, latency was kept well under conversational thresholds.&lt;/p&gt;

&lt;p&gt;Proactive Call Opt-outs: Outbound calls can easily feel intrusive. I structured the opening script to immediately state who is calling, why (weather warning), and how to opt out within the first two sentences.&lt;/p&gt;

&lt;p&gt;💻 5. Quickstart Guide: Run Your Own Voice Agent&lt;br&gt;
Prerequisites&lt;br&gt;
Python 3.10+&lt;/p&gt;

&lt;p&gt;Murf API Key (with Murf Falcon access)&lt;/p&gt;

&lt;p&gt;LiveKit Cloud Project &amp;amp; API Keys&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Clone the Starter Code&lt;br&gt;
Bash&lt;br&gt;
git clone &lt;a href="https://github.com/murf-ai/murf-livekit-starter.git" rel="noopener noreferrer"&gt;https://github.com/murf-ai/murf-livekit-starter.git&lt;/a&gt;&lt;br&gt;
cd murf-livekit-starter&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Configure Environment Variables&lt;br&gt;
Create a .env file in the root directory:&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Code snippet&lt;br&gt;
LIVEKIT_URL=your_livekit_url&lt;br&gt;
LIVEKIT_API_KEY=your_api_key&lt;br&gt;
LIVEKIT_API_SECRET=your_api_secret&lt;br&gt;
MURF_API_KEY=your_murf_key&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Run the Agent
Bash
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python src/agent.py dev&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;🔮 6. What's Next?&lt;br&gt;
Expanding language models to support multi-lingual pan-India deployment (Hindi, Tamil, Telugu, Gujarati).&lt;/p&gt;

&lt;p&gt;Direct integration with official state government agricultural databases and soil testing APIs.&lt;/p&gt;

&lt;p&gt;Github Repo: &lt;a href="https://github.com/code-with-parth/AgriAlert" rel="noopener noreferrer"&gt;https://github.com/code-with-parth/AgriAlert&lt;/a&gt;&lt;/p&gt;

</description>
      <category>agents</category>
      <category>ai</category>
      <category>devchallenge</category>
    </item>
  </channel>
</rss>
