Lead Enrichment Module

Auto-enrich Lead/Opportunity information from email addresses using Odoo IAP service.

Lead Enrichment module auto-fills company information from Lead email addresses, including company name, address, phone, country.

Uses IAP (In-App Purchase) service to lookup company data, saving manual data entry time and increasing accuracy.

Lead Enrichment
IAP
CRM Automation
Data Quality

Key Features

Key points

  • Auto-fill company information from Lead email addresses.

  • Retrieve data: company name, address, phone, country, state.

  • Support manual or automatic scheduled enrichment.

  • Batch process multiple Leads simultaneously.

  • Only consume IAP credits on successful enrichment.

  • Log enrichment results in Lead chatter.

  • Never overwrite existing data, only fill empty fields.


How It Works

Module uses Odoo IAP service to lookup company information based on email domain. Example: from contact@company.com, system looks up company.com information and auto-fills Lead fields.

Steps

  • 1. Lead has valid email address and not yet enriched.

  • 2. System checks email is not from email provider (Gmail, Yahoo).

  • 3. Send request to IAP service with email domain.

  • 4. Receive company data and auto-fill Lead fields.

  • 5. Mark "Enrichment done" and log result in chatter.


System Requirements

Key points

  • Modules iap_crm and iap_mail must be installed.

  • IAP account with sufficient credits.

  • Lead/Opportunity must have valid email address.

  • Email not from public email providers.


Core Terminology

FieldsDescription
EnrichAction to enrich Lead info from email.
Lead EnrichmentFeature to auto-fill company information.
Enrichment doneMark Lead as enriched.
Reveal IDID from Clearbit to track data source.
IAP CreditsPayment unit for IAP service.
Allow manual enrichConfig to allow button enrichment.

Enrich Button Display Conditions

Enrich button only displays on Lead when all following conditions are met.

Display Conditions

ConditionRequired ValueDescription
Lead is activeactive = TrueLead not archived
Has email addressemail_from != FalseLead must have email
Email is validemail_state != incorrectEmail validated
Not yet enrichediap_enrich_done = FalseNot enriched before
No Reveal IDreveal_id = FalseNo Clearbit data yet
Not wonprobability != 100Lead not converted to customer

Manual Lead Enrichment

Enrich one or multiple Leads by clicking Enrich button. Each successful enrichment consumes 1 IAP credit.

Key points

  • Enrich multiple Leads: Select multiple Leads → Action → Enrich.

  • Batch processing: System processes 50 Leads per batch.

  • Only fill empty fields: Existing data not overwritten.

Steps

  • 1. Open Lead/Opportunity to enrich or select multiple Leads from list.

  • 2. Check Enrich button displays in top bar.

  • 3. Click Enrich button to start enrichment process.

  • 4. System validates email and sends request to IAP service.

  • 5. Company information auto-fills empty fields.

  • 6. Result logged in Lead chatter.


Auto-filled Data

After successful enrichment, following fields auto-fill if empty.

Data Mapping

Lead FieldIAP SourceDescription
CustomernameCompany name
StreetlocationStreet address
CitycityCity
Zippostal_codePostal code
Countrycountry_codeCountry (auto-matched)
Statestate_codeState (auto-matched)
Phonephone_numbers[0]First phone number
Reveal IDclearbit_idID from Clearbit

Automatic Enrichment

Enable automatic mode for system to auto-enrich new Leads every 24 hours via CRON job.

Key points

  • CRON runs every 24 hours (default), finds new unenriched Leads.

  • Processes Leads created in last 24 hours with valid email.

  • Batch size: 50 Leads per processing.

  • Disable automatic: Select Manual mode to disable CRON job.

Steps

  • 1. Go to CRM → Configuration → Settings.

  • 2. Find Lead Enrichment section.

  • 3. Select Automatic or Manual mode.

  • 4. Click Save to save configuration.


Configure CRON Job

Change automatic run frequency and processing parameters via Scheduled Actions.

Steps

  • 1. Go to Settings → Technical → Automation → Scheduled Actions.

  • 2. Find CRM: enrich leads (IAP).

  • 3. Edit Execute Every (default 24 Hours).

  • 4. Enable/disable Active to control CRON.

  • 5. Click Save to save changes.

CRON Parameters

ParameterDefaultDescription
Execute Every24 HoursAutomatic run frequency
enrich_hours_delay24Only enrich Leads created in last N hours
batch_size50Number of Leads per batch

Manage IAP Credits

Key points

  • Check balance: CRM → Configuration → Settings → Buy Credits.

  • Buy credits: Select suitable package and pay via Odoo IAP.

  • Cost: 1 credit per successful enrichment.

  • No credit consumed: Invalid email, email provider, no data found, system error.

  • Out of credits notification: "Not enough credits for Lead Enrichment".


Notifications and Results

After each enrichment, system logs result in Lead chatter with different notifications per case.

Notification Types

CaseNotificationCredits
SuccessLead enriched based on email address1 credit
Invalid emailEmail address does not look valid0 credit
No data foundNo company data found or email is provider0 credit
Out of creditsNot enough credits for Lead Enrichment0 credit
System errorAn error occurred during lead enrichment0 credit

Credit Optimization Tips

Key points

  • Validate email before enrichment to avoid waste.

  • Avoid personal emails: Gmail, Yahoo, Hotmail return no company info.

  • Use manual mode for tight cost control.

  • Enrich multiple Leads at once to save time.

  • Prioritize enriching important high-value Leads.


Ensure Data Quality

Key points

  • Check information after enrichment to ensure accuracy.

  • Fill important information before enrichment to avoid overwrite.

  • Update manually if IAP data is inaccurate.

  • Track success rate to assess Lead source quality.

  • Combine with Lead Scoring to assess Lead quality.


Common Error Handling

Errors and Solutions

ErrorCauseSolution
Invalid emailEmail wrong format or non-existentContact customer to confirm email
No data foundSmall or new company, not in databaseEnter information manually
Out of creditsUsed all IAP creditsBuy more credits or prioritize important Leads
Email providerEmail from Gmail, Yahoo, HotmailRequest company email from customer

Security and Compliance

Key points

  • Do not share Reveal ID: Internal ID, not for customer display.

  • Check access rights: Only sales staff should have enrichment rights.

  • GDPR compliance: Ensure permission to use customer email for lookup.

  • Data protection: IAP information encrypted and secured.


Sales Process Integration

Key points

  • Enable automation to not miss any Lead.

  • Integrate enrichment into Lead processing workflow.

  • Track enriched Leads to assess effectiveness.

  • Use enrichment data to classify and prioritize Leads.

  • Combine with automation rules to auto-assign Leads after enrichment.