Commit Graph

4 Commits

Author SHA1 Message Date
afd3b96d08 [31388f42] Fix: Centralize Lead Parsers in ingest.py
This commit finalizes the centralization of lead parsing logic.
- Moves  from  to .
- Moves  from  to .
- Ensures  is imported in  for  generation.
- Corrects all necessary imports in  to use functions from .
This addresses the  and improves modularity.
2026-03-02 19:38:56 +00:00
f51aeb49d7 [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
7e51ef97e8 [31388f42] Implement end-to-end email ingest for Tradingtwins leads via MS Graph API 2026-03-02 07:39:46 +00:00
Jarvis
382e1fca86 Add lead-engine source code to main repo 2026-01-31 17:25:19 +00:00