The Lead Data Problem
CRM leads often arrive with minimal information — just a name and email. Sales teams waste time researching companies before outreach. An AI enrichment agent automatically fills in company details, identifies decision makers, and scores lead quality.
What AI Enrichment Does
# AI Lead Enrichment Pipeline:
# 1. New lead created in Odoo CRM
# 2. AI agent triggers on lead creation
# 3. Extracts domain from email address
# 4. Researches company via web/APIs:
# - Company size and revenue
# - Industry and sector
# - Location and headquarters
# - Technology stack
# - Recent news and funding
# 5. Updates lead record in Odoo
# 6. Assigns lead score based on ICP matchEnrichment Data Points
# Data enriched on each lead:
# Company Information:
# - Legal name and trade name
# - Industry (mapped to Odoo industry tags)
# - Employee count range
# - Revenue range
# - Year founded
# - Headquarters location
# - Website URL
# Contact Information:
# - Job title and department
# - LinkedIn profile URL
# - Phone number (company switchboard)
# - Timezone
# Qualification Signals:
# - Uses competitor products?
# - Recent job postings (growth indicator)
# - Technology stack (ERP mentions)
# - Funding rounds (budget indicator)Odoo Integration
# Automated action on crm.lead create:
def enrich_lead(lead):
email = lead.email_from
domain = email.split('@')[1] if email else None
if not domain or domain in FREEMAIL_DOMAINS:
return # Skip gmail, yahoo, etc.
enrichment = ai_research_company(domain)
lead.write({
'partner_name': enrichment.get('company_name'),
'street': enrichment.get('address'),
'city': enrichment.get('city'),
'country_id': find_country(enrichment.get('country')),
'function': enrichment.get('job_title'),
'phone': enrichment.get('phone'),
'website': f'https://{domain}',
'description': enrichment.get('summary'),
'tag_ids': [(4, tag_id) for tag_id in map_tags(enrichment)],
'priority': score_lead(enrichment),
})Lead Scoring with AI
# AI-powered lead scoring:
# Factors and weights:
# Company size matches ICP: +30 points
# Industry match: +25 points
# Job title is decision maker: +20 points
# Uses competitor ERP: +15 points
# Recent funding: +10 points
# Business email (not freemail): +10 points
# Located in target geography: +10 points
# Score mapping to Odoo priority:
# 80-100: 3 stars (hot lead)
# 50-79: 2 stars (warm lead)
# 20-49: 1 star (cold lead)
# 0-19: 0 stars (low quality)Privacy Considerations
# Important compliance notes:
# - Only use publicly available data
# - Respect GDPR/privacy regulations
# - Allow leads to request data deletion
# - Do not store sensitive personal data
# - Log enrichment sources for audit trail
# - Rate-limit API calls to data providersDeployMonkey AI
DeployMonkey's AI agent can configure CRM lead enrichment workflows in your Odoo instance, connecting to enrichment APIs and scoring leads against your ideal customer profile.