The lead research agent transforms a bare company name into a rich intelligence dossier. For each lead the supervisor dispatches, the agent searches for the company online, scrapes its website, locates LinkedIn profiles of decision-makers, synthesizes possible contact email addresses, and asks the LLM to analyze everything into a structured research report. The results are stored inDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/vrashmanyu605-eng/Agentic_Sales-Markerting/llms.txt
Use this file to discover all available pages before exploring further.
lead_research (a JSON string) and enriched_leads (a list of contacts with email candidates).
State inputs
The name of the company to research. Set by the supervisor when it pops a lead from
pending_leads.State outputs
A JSON string containing the LLM’s structured analysis of the company. See output schema for the full field list.
A list of enriched contact objects built from LinkedIn profiles found for the company.
What it does
Search for the company
The agent calls
search_company(company_name), which returns a dict containing search_results (a list of web result objects), website_url (the company’s homepage URL), and website_content (pre-scraped text from the homepage).Find LinkedIn profiles
The agent calls
find_linkedin_profiles(company_name) to retrieve a list of LinkedIn profile objects for people associated with the company. Each object includes a title field (name and job title) and a linkedin_url.Extract the company domain
The agent parses
website_url using a regex to extract the root domain (e.g., acme.com). This domain is used as the base for email generation.Generate possible email addresses
For each LinkedIn profile, the agent splits the title on
- to isolate the person’s name, then calls generate_possible_emails(first_name, last_name, domain). The resulting email candidates are combined with the contact’s name and LinkedIn URL into an enriched_leads entry.Tools used
search_company
Searches for the company by name and returns web results, the website URL, and pre-scraped homepage content.
website_scraper
Scrapes a company’s website and returns its text content for LLM analysis.
linkedin_finder
Finds LinkedIn profiles for decision-makers at the target company.
email_generator
Generates a list of likely email address formats given a first name, last name, and company domain.