Commit Graph

5 Commits

Author SHA1 Message Date
efaa43858d [31388f42] Feature: Integrate Roboplanet Contact Forms into Lead Engine
This commit integrates the Roboplanet website contact form submissions into the Lead Engine, allowing them to be processed alongside TradingTwins leads.

Key changes:
- **Database Schema Update (db.py):** Added a new source column to the leads table for tracking lead origin (TradingTwins or Website-Formular). Includes a migration check to safely add the column.
- **Improved HTML Parsing (ingest.py):** Refined the `parse_roboplanet_form` function to accurately extract data from the specific HTML structure of Roboplanet contact form emails.
- **Enhanced Ingestion Logic (trading_twins_ingest.py):**
    - Renamed `fetch_tradingtwins_emails` to `fetch_new_leads_emails` and updated it to fetch emails from both lead sources.
    - Modified `process_leads` to dynamically select the correct parser based on email subject.
    - Ensured `source` field is correctly populated and `is_low_quality` checks are applied for both lead types.
- **UI Enhancement (app.py):** Updated the Streamlit UI to visually distinguish lead types with icons and improved the "Low Quality Lead" warning message.

This feature enables a unified processing pipeline for different lead sources and provides better visibility in the Lead Engine dashboard.
2026-03-02 19:19:01 +00:00
04013920ee [31388f42] Final session polish: Refined UI, improved ingest parsing, and completed documentation 2026-03-02 15:10:12 +00:00
0734256c11 [31388f42] Fix NameError in reply generator and implement free-mail quality detection 2026-03-02 13:04:10 +00:00
c9c2572104 [31388f42] Implement Expert Response Generator with Gemini & CE integration 2026-03-02 08:46:22 +00:00
Jarvis
30c19a546e Add lead-engine source code to main repo 2026-01-31 17:25:19 +00:00