# 💥 Built a Complete Email Automation Claims Flow for Netcare Using Neutrinos Ecosystem — in Just 2 Days!

**URL:** https://community.neutrinos.com/t/built-a-complete-email-automation-claims-flow-for-netcare-using-neutrinos-ecosystem-in-just-2-days/906
**Category:** Showcase Your Work
**Tags:** neutrinos-ai-hub, neutrinos-alpha, neutrinos-platform
**Created:** [July 3, 2025, 11:15am UTC](https://community.neutrinos.com/t/built-a-complete-email-automation-claims-flow-for-netcare-using-neutrinos-ecosystem-in-just-2-days/906 "2025-07-03T11:15:39Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![dhishon](https://community.neutrinos.com/user_avatar/community.neutrinos.com/dhishon/32/293_2.png) [@dhishon](https://community.neutrinos.com/u/dhishon)
#### Post date: [July 3, 2025, 11:15am UTC](https://community.neutrinos.com/t/built-a-complete-email-automation-claims-flow-for-netcare-using-neutrinos-ecosystem-in-just-2-days/906/1 "2025-07-03T11:15:39Z")

</div>

Hey Teams 👋,

Thrilled to share a powerful POC I recently built at **Neutrinos** for one of our key clients, **Netcare**. The challenge? Create a **fully automated, email-based claims process** with zero manual steps.

I built it **from scratch in just 2 days** , and it leverages the best of both **custom development** and the **Neutrinos platform**. 💪

* * *

### 🧩 Client Ask:

Enable claimants to **submit documents via email** , and have the system:

1. Auto-validate documents
2. Extract data using OCR
3. Make business decisions automatically
4. Trigger case creation and visibility in UI

* * *

### 🛠 My Solution – Step by Step:

#### 📥 1. **Email Monitoring (Node.js + IMAP + Cron):**

- Wrote a **custom Node.js service** that checks incoming emails every 10 seconds.
- Validates if documents are attached.
- Handles 3 scenarios:
  - ✅ ID + Discharge Summary → move to next step
  - ⚠ Missing document → send email asking for the missing one
  - ❌ No attachment → send email instructing to resend

#### 📤 2. **Automated Replies (SMTP + Nodemailer):**

- Integrated **SMTP service** using **Nodemailer** to send dynamic, situation-based replies to claimants.

#### 🤖 3. **Document Extraction via Neutrinos AI Hub (OCR):**

- Forwarded documents to **AI Hub** for OCR-based data extraction.
- Parsed important fields like patient name, ID number, discharge date, etc.

#### 🔁 4. **Decisioning with Reels:**

- Integrated with the **Reels platform** to evaluate business logic and return outcomes like:
  - ✅ **STP** (Straight Through Processing)
  - ⚠ **No STP**
  - ❌ **Knockout**

#### 🧾 5. **Case Creation via Neutrinos Case Service:**

- Based on the Reels decision, triggered **Case Service API** to register the claim.
- Created a structured **Case Type** in JBPM.

#### 🖥 6. **Alpha Workbench UI:**

- All cases, outcomes, and statuses are visible in **Alpha Workbench**.
- Claim processing lifecycle (approval, rejection, undertakings) is managed via a clean and responsive UI built with Neutrinos’ Alpha UI tools.

* * *

### 💡 What Makes This Special:

✅ End-to-end automated pipeline  
✅ Reusable and scalable architecture  
✅ Deep integration with Neutrinos platform: **AI Hub** , **Reels** , **Case Services** , **Alpha Workbench**  
✅ Built entirely in **just 2 days**

* * *

### 🧰 Tech Stack:

- **Node.js||SSD** (custom logic + cron jobs)
- **IMAP/SMTP (Nodemailer)** for email handling
- **AI Hub (OCR)** for document extraction
- **Reels** for decisioning logic
- **Case Service API** for triggering case types , case creation.
- **Alpha Workbench** for UI display and workflow tracking

* * *

### 🙌 Special Thanks:

Big shoutout to \*\* @divyajot.singh \*\*, **@Gavin** , and the team for the support and collaboration throughout! 👏

* * *

📸 I’ll be adding **screenshots, sample flows, and email templates** below so you can see how the automation works visually.

Would love to get feedback or ideas from the community!

## @Eldho

 ![Submitting Claim](https://community.neutrinos.com/uploads/default/original/1X/38befb9ceb0e7061d4ac2243042cad7e8f4f4495.jpeg)

 ![After the case creation response to the claimant .](https://community.neutrinos.com/uploads/default/original/1X/7acbe630670f0817b55fdce348c849c49321cb7d.jpeg)

 ![Work Bench on the Alpha platform where the created case shows here](https://community.neutrinos.com/uploads/default/original/1X/2d1fe0839a46e93f9daa3968fe67240d83f094a6.jpeg)

 ![Overview of the extracted data](https://community.neutrinos.com/uploads/default/original/1X/befa4f9ecee45ca22d81eb17aa0aa65312511c37.jpeg)

 ![Decision](https://community.neutrinos.com/uploads/default/original/1X/f86a9f951e0d1d4166eeea9f1bd042da404f99be.jpeg)

 ![Decision](https://community.neutrinos.com/uploads/default/original/1X/2f4a958ee4792270fdccc47c94644bfd87e466c3.png)

 ![Demo JBPM flow.](https://community.neutrinos.com/uploads/default/original/1X/8a6bcf01b8d046691a3d529dba95dc2523bbb692.jpeg)

---

<div class="post-metadata">

### Author: ![Sam](https://community.neutrinos.com/letter_avatar_proxy/v4/letter/s/5f9b8f/32.png) [@Sam](https://community.neutrinos.com/u/Sam)
#### Post date: [July 3, 2025, 11:21am UTC](https://community.neutrinos.com/t/built-a-complete-email-automation-claims-flow-for-netcare-using-neutrinos-ecosystem-in-just-2-days/906/2 "2025-07-03T11:21:23Z")

</div>

🚀 Hats off to you, @dhishon

---

<div class="post-metadata">

### Author: ![jishnuanil](https://community.neutrinos.com/letter_avatar_proxy/v4/letter/j/b487fb/32.png) [@jishnuanil](https://community.neutrinos.com/u/jishnuanil)
#### Post date: [July 3, 2025, 12:03pm UTC](https://community.neutrinos.com/t/built-a-complete-email-automation-claims-flow-for-netcare-using-neutrinos-ecosystem-in-just-2-days/906/3 "2025-07-03T12:03:47Z")

</div>

Awesome work,keep up the momentum! 🤝 @dhishon

---

<div class="post-metadata">

### Author: ![Simphiwe](https://community.neutrinos.com/letter_avatar_proxy/v4/letter/s/3be4f8/32.png) [@Simphiwe](https://community.neutrinos.com/u/Simphiwe)
#### Post date: [July 10, 2025, 6:11pm UTC](https://community.neutrinos.com/t/built-a-complete-email-automation-claims-flow-for-netcare-using-neutrinos-ecosystem-in-just-2-days/906/4 "2025-07-10T18:11:26Z")

</div>

**🚀 Super impressive work, @dhishon!**

Really inspiring to see how you stitched everything together — from email ingestion to case creation — in such a short time.

Love the architecture:

- Email trigger via IMAP + Node
- Business logic using Reels
- Seamless UI flow through Alpha Workbench

I’m especially curious about the AI component. I haven’t explored Neutrinos AI Hub yet — would love it if you could break down how you used OCR in this setup. Sounds like a game-changer!

Thanks for sharing — this kind of post really helps us all level up 🙌
