[31388f42] Fix field naming: Use industry_ai and research_dossier from CE API

This commit is contained in:
2026-03-02 10:20:06 +00:00
parent aa1a8699e0
commit 035680b0d0
3 changed files with 74 additions and 6 deletions

View File

@@ -47,8 +47,8 @@ def generate_email_draft(lead_data, company_data, booking_link="https://outlook.
role = meta.get('role', 'Unbekannt')
# Data from Company Explorer
ce_summary = company_data.get('summary', 'Keine Details verfügbar.')
ce_vertical = company_data.get('vertical', 'Allgemein')
ce_summary = company_data.get('research_dossier') or company_data.get('summary', 'Keine Details verfügbar.')
ce_vertical = company_data.get('industry_ai') or company_data.get('vertical', 'Allgemein')
ce_website = company_data.get('website', '')
# Prompt Engineering