This n8n workflow enriches inbound web leads and adds them to Odoo CRM. It receives each lead through a header-authenticated webhook, researches the person and the company with Tavily, and scores the lead with Google Gemini. It then creates a lead record in Odoo.
The webhook accepts a POST request and returns a 400 error if required fields such as email and name are missing. Otherwise it responds right away with HTTP 202 and continues processing in the background. The workflow cleans and normalizes fields such as budget, company/domain and technologies, then builds targeted Tavily queries. It searches for both the person and the company/domain and compiles the results into one context summary.
Gemini receives the lead data and the Tavily context and returns a structured result: a score, a justification, Odoo-ready HTML notes, and a personalized email subject and body. The workflow compares the score to a threshold you configure and classifies the lead as hot or cold. It applies the matching Odoo tag and priority, and creates the lead with the AI-generated description. Only hot leads get the personalized email, which is sent through Resend.
- Integrations
- Odoo, Tavily (Bearer token), Google Gemini/PaLM (API key), Resend (Bearer token), Webhook
- n8n nodes
- webhook, if, set, code, odoo, sticky note
- Input
- POST request to a webhook with header authentication
- Required fields
- Email and name; returns 400 if missing
- Response
- Immediate HTTP 202, then background processing
- Enrichment
- Tavily searches for the person and the company/domain
- AI output
- Score, justification, Odoo-ready HTML notes, email subject and body
- Qualification
- Configurable score threshold sorts leads into hot or cold, with matching Odoo tag and priority
- Email
- Personalized email sent through Resend for hot leads only
- Use cases
- Scoring and routing website or SaaS leads into Odoo CRM, enriching leads with public web context, and outreach only for hot leads