RetailBox needed a more efficient way to prepare new HubSpot contacts for sales outreach.
Before automation, researching a newly acquired lead required manually investigating the associated company, reviewing publicly available business information, and determining whether the company warranted sales attention.
This process could take hours or, in some cases, days before a sales representative had enough context to begin outreach.
The objective was to reduce this preparation time by automatically gathering company information, using AI to organize it into useful CRM fields, and applying business rules to prioritize leads.
I developed an n8n workflow connecting HubSpot, company website retrieval, Gemini, and rule-based data processing.
When a new contact enters HubSpot, the workflow retrieves the relevant contact information and researches the associated company website. Gemini analyzes the available website content and generates a structured company profile.
JavaScript processing and field mapping then prepare the information for lead-priority evaluation and updating the corresponding HubSpot record.
The resulting workflow gives sales representatives company context and prioritization information directly in their existing CRM.
Project setting
The automation was designed to operate within RetailBox's existing HubSpot workflow rather than introducing a separate application for researching leads.
HubSpot remained the system where contacts were created, enriched, and accessed by the sales team.
The implementation combined AI-generated company analysis with conventional automation logic. Gemini handled interpretation of retrieved business information, while structured parsing, field mapping, and rule-based prioritization controlled how the resulting information was processed.
This distinction was important because the workflow needed both the flexibility of an LLM and predictable data updates within the CRM.