Agentic B2B Prospecting from Customer Data to Reviewed Leads
Most B2B sales teams can assemble a list of companies. The harder task is deciding which businesses deserve attention, finding a credible reason to approach them and giving a salesperson enough context to start a useful conversation.
An agentic B2B prospecting workflow connects those decisions. Historical pipeline data helps define the target customer. Company and contact research identifies potential matches. Public business events add context. Explainable scoring orders the review queue, while a person checks the evidence and decides what to do next.
ENGINE sponsored and supervised a National University of Singapore (NUS) Business Analytics capstone 2026 project involving six final-year students, resulting in the development of an Agentic B2B Prospecting Engine, or ABPE. The project brings these activities into a single application, from customer profiling through to reviewed leads and editable outreach drafts.
Put the prospecting framework into practice
Complete the form to access the framework, customer-profile worksheet and review checklist.
ENGINE and NUS Business Analytics capstone project team.
For founders, CEOs and sales leaders, it offers a concrete way to examine where AI can support prospecting, what information the workflow needs and which decisions should remain with the team. This article follows the nine steps documented in the project handover and explains the operational foundations behind them.
Figure 1. ABPE connects customer profiling, research and human review.
What the Agentic B2B Prospecting Engine does
ABPE is a Python application with a Streamlit interface. It combines historical pipeline analysis, Apollo company and contact data, web research through SerpAPI, AI-assisted interpretation and message drafting, and rule-based scoring. CSV downloads and Google Sheets exports make the reviewed output available outside the app.
Its five working areas are ICP Generator, Lead Discovery, Message Review, Dashboard and System Metrics. A user can inspect a target profile, run a small prospect search, open the evidence behind a lead, edit a message and export selected records.
The agentic element is the coordination of research and interpretation tasks around a defined workflow. It does not mean that every decision is made by an autonomous model. In ABPE, scoring rules, saved profile versions, source links and human review give the workflow a structure that users can inspect.
The current application does not send email or LinkedIn messages, run automatic follow-up sequences or replace a CRM. Its output is a researched shortlist and supporting drafts for a person to review. That boundary matters when deciding what a successful implementation should deliver.
Figure 2. The nine stages are documented in the ABPE handover.
Step 1 Build an ideal customer profile from historical pipeline data
The workflow starts with past sales activity. ABPE analyses historical records to suggest an ideal customer profile, or ICP, covering target industries, company sizes, geographies and contact roles.
The handover specifies eight input fields: Company Name, Company Size, Industry, Position, Country, Lead Source, Stage and Outreach Message Type. Consistent labels are important. If one record says “CEO” and another uses a different label for the same seniority, grouping rules need to reconcile them before the comparison is useful.
The analysis compares groups with the overall historical baseline. It treats Open, In Progress, Open Deal and Customer as positive engagement stages, while conversion means reaching Customer. These definitions describe how this project reads its data; they should not be mistaken for a universal definition of sales engagement.
For example, if 20% of all historical leads reached an engaged stage and 30% of one industry group did, that group has engagement lift of 1.5. This is an illustrative calculation, not an ENGINE performance result. A high lift based on a handful of records still needs cautious interpretation.
OpenAI turns the analysis into a readable profile, which is saved as a versioned snapshot. The user should review the proposed criteria before searching. A profile can reflect incomplete records, previous targeting choices or changes in the business, so historical patterns are a starting point for judgement rather than a prediction of future customers.
Apollo’s guidance on defining an ICP also starts with existing customer and deal data. The distinction is useful: company characteristics describe which organisations may fit, while contact roles help identify the people involved in a buying decision.
Application screenshot: ICP Generator presents the selected target industries, company sizes, geographies and contact roles. The historical-metrics area is excluded.
Step 2 Search for companies using the selected profile
In Lead Discovery, the user selects the ICP version for a run and requests a batch of leads. Selecting an older profile elsewhere in the app does not automatically select it for the next lead-generation run; the run’s targeting version must be checked separately.
ABPE searches Apollo for candidate companies, preferring companies that have not been processed before. The documented search is bounded to a pool of up to three pages of 100 companies, fetched progressively. If there are insufficient unseen candidates, older known companies can be revisited.
This creates a practical trade-off. A bounded search helps constrain provider activity, but the requested lead count is a target rather than a promise. Narrow criteria, limited contact coverage or an already explored candidate pool can produce fewer results.
For an initial review, the handover recommends starting small; the default batch is three leads. A small batch lets the team inspect the chosen market, role coverage and evidence quality before spending credits on more records. Increasing volume should follow a useful targeting decision, rather than compensate for an unclear one.
Step 3 Enrich company records and identify relevant contacts
Search results become more useful when they include enough detail to assess fit. ABPE adds available company attributes such as domain, employee count, location and industry, then looks for contacts matching the ICP’s roles and seniority.
Fallback lookups can improve coverage when the first contact search finds nobody. They do not guarantee that every company will have a suitable contact or a verified email address. Missing fields remain missing, and email availability depends on provider coverage and account permissions.
A sales leader should keep company relevance and contact accuracy separate. A company may be a strong target even when the contact information needs further research. Conversely, a valid email address does not establish that a company belongs in the target market.
At review time, confirm the company website, the contact’s current role and whether the record refers to the correct business. These checks become particularly important when similarly named companies operate in different countries or sectors.
Application screenshot: Lead Discovery brings together profile selection, filters, lead scores and export controls. Company and contact details are hidden for privacy.
Step 4 Research business events and preserve the sources
ABPE searches for public business events that may explain why a company deserves attention now. Supported categories include funding, hiring, expansion, partnerships, technology investment, leadership change and product launches.
SerpAPI locates relevant search results, and article retrieval can provide more context when a page is accessible. OpenAI extracts structured event information, including a summary, date and source link. The summary becomes the research hook visible alongside the lead.
A research hook should support a relevant conversation. For a fictional example, an announcement that a business is opening a regional office could justify asking how it plans to consolidate reporting across markets. It would not justify claiming that the company has a broken data platform or an approved analytics budget.
Public events are therefore contextual signals, not proof of purchase intent. Search snippets can omit important details, an article may describe an old event, and extraction can attach the wrong company to a story. The reviewer should open the original source, confirm the entity and date, and check that the interpretation follows from the evidence.
The application caches research to reduce repeated requests. That makes freshness checks important: a cached result may remain technically available after its usefulness for outreach has declined.
Step 5 Score the strength and freshness of the signals
The next stage turns researched events into a company signal score between zero and one. The rules consider recency, source quality, company match, relevance and the configured importance of the event category.
In the documented configuration, funding has importance 1.00, technology investment 0.85, expansion 0.80, hiring 0.75, leadership change 0.70, product launch 0.60 and partnerships 0.55. These are configurable project assumptions. They are not evidence that funding universally predicts a better sales opportunity than every partnership or product launch.
Recency uses a 90-day half-life, so the recency component halves after 90 days and halves again after another 90 days. Nearby duplicate signals are consolidated within a 14-day window to reduce the chance that repeated reporting of one event inflates its contribution.
For decision-makers, the important question is whether the score can be explained. A useful review should identify the event, its source, its age and its relevance to the offer. A single attractive number without that context would hide the assumptions the team needs to challenge.
Step 6 Combine customer fit and signal strength to rank leads
ABPE evaluates ICP fit across the requested industry, company-size range, geography and contact role. Requested dimensions carry equal weight; dimensions not requested are excluded. An unknown value does not count as a match, while coverage records how much requested information is known.
The documented lead-score calculation multiplies ICP fit by a factor that runs from 0.70 with no supporting signal to 1.00 with the strongest signal. Caps are then applied for mismatches or missing requested information. This keeps the ranking anchored in the target profile.
Consider two illustrative leads with complete information and no mismatches. A company with ICP fit of 100 and a signal score of 0.50 receives 85. The same perfect-fit company with no supporting signal receives 70. Recent evidence changes the review order without turning the score into a probability of winning a deal.
Confirmed mismatches can override the initial calculation. An industry mismatch caps the result at 39; another confirmed mismatch on a requested dimension can cap it at 59. Missing requested fit information can cap it at 69. A compelling announcement therefore cannot automatically rescue a company that fails the required profile.
The configured priority bands are High at 75 or above, Medium from 50 to 74, and Low below 50. The numerical score and its explanation deserve attention because the handover notes that a separate Message Review badge currently uses a different high-fit threshold.
Figure 3. Illustrative scores, not sales results or conversion probabilities.
Want to assess a similar workflow for your sales team? Explore ENGINE’s data and AI services to discuss your historical data, targeting requirements and review process before choosing the automation scope.
Step 7 Distinguish a new company from a new opportunity
Prospecting history needs to answer two questions: have we seen this company before, and have we already reviewed this particular event? ABPE keeps these identities separate, allowing a known company to return when a different business event creates a fresh reason to investigate it.
The application checks generated-company history in Google Sheets and compares the company and selected event with saved opportunity keys. The key uses normalised event details such as category, date and summary, with a source URL fallback. If there is no usable signal, it falls back to company-level identity.
This is a rule-based comparison. Reworded coverage or different dates can cause the same real-world event to appear different, and only the selected top event contributes to the opportunity key. Simultaneous requests can also create conflicts that local process locks do not fully prevent.
When every event is already known, the interface displays a no-new-opportunities notice with the scored batch. Users should read that notice before exporting. A familiar company name does not automatically mean duplication, but a new row does not automatically mean a genuinely new opportunity either.
Step 8 Review the evidence and edit the outreach draft
The human review stage connects the research to an appropriate next action. The user checks the company, contact, source and score explanation before opening Message Review.
Drafting uses the selected lead, its evidence and available aggregate historical messaging patterns. The project prompts the model for a short personalised message of roughly 90 to 110 words without invented facts. That request is a drafting instruction, so the actual wording still needs review.
A useful edit removes unsupported claims, verifies the research hook, replaces sender placeholders and makes the proposed conversation relevant to the recipient’s role. It should avoid pretending that a public announcement reveals the company’s internal problems.
Save Changes and Copy to clipboard do different jobs. Copying does not save the message. Saving stores the draft on the application instance, and the saved text reaches Google Sheets only when that lead is subsequently exported. A regenerated draft also needs to be reviewed and saved if it should replace the previous version.
One operational detail matters when historical records change: ICP analysis can use the live historical Google Sheet, while message-history patterns currently come from a local CSV. Updating the sheet alone does not refresh that CSV. The maintainer should keep both inputs aligned when the business expects the same historical context.
Application screenshot: Message Review provides an editable draft, a research-hook panel and save controls. Prospect-specific content is hidden for privacy.
Step 9 Export the reviewed leads with the right context
ABPE supports CSV and Google Sheets exports, but the selection rules differ. This is worth making explicit during operator training.
For CSV, exporting without a selection downloads the currently filtered rows. With a selection, it downloads selected rows that are also visible under the current filters. Google Sheets behaves differently: without a selection it exports the entire current batch, and with a selection it can export selected rows even when filters hide them.
The team should deliberately check selections and filters before each export. Treating both buttons as equivalent can result in transferring more or fewer leads than intended.
CSV contains 23 lead and research fields. Google Sheets exports additionally include saved-message information, including the saved text, revision and timestamp. The visible Selected_Leads worksheet is supported by hidden generation-history and export-audit worksheets. Those system tabs should remain intact because history checks and reconciliation depend on them.
Re-exporting a saved draft can update its existing exported message instead of adding a duplicate row. Export still does not send outreach, create a follow-up sequence or record the recipient’s response; those activities require a separate approved sales process.
What the dashboard can tell a sales leader
The Dashboard summarises generated leads, high-fit rows, saved messages and exports. These measures describe application activity. They should not be read as delivered messages, qualified meetings, revenue or a strict sales-conversion funnel.
A company can appear in more than one run while retaining one current saved draft. Export audit records can also differ from the number of visible spreadsheet rows. The practical response is to use each metric’s definition and inspect the relevant run rather than assume all counts represent unique companies moving through identical stages.
System Metrics adds provider-account information, stage timing, API usage, estimated cost and data-quality information where available. Missing information or a dash does not mean zero usage. The application’s budget indicator is a monitoring reference rather than an enforced spending limit.
To evaluate business value later, ENGINE would need an agreed connection between reviewed prospects and downstream outcomes, such as accepted opportunities or meetings. That outcome evaluation is separate from counting how often the application ran.
How to move from a capstone application to an owned business workflow
The handover supports three operating paths: use the hosted application, host the existing application independently, or run and modify the code locally. Each requires a named owner for data, access, billing and maintenance.
For independent hosting, the documented sequence is to confirm the approved repository and branch, check that credentials are excluded from source control, configure secrets, deploy the Streamlit entry point, connect historical data, run acceptance checks and configure access before sharing the application. Streamlit’s official guidance supports managing deployment secrets outside the repository.
Persistent storage needs particular attention. The current application keeps profiles, drafts and run records on the app instance. Streamlit Community Cloud does not guarantee local-file persistence, so exported spreadsheet rows and a Git repository are not a complete backup of the working application. An owner should retain the required runtime records and test restoration.
Before wider rollout, the project roadmap prioritises durable managed storage, authentication and roles, clearer workspace ownership and stronger controls for concurrent jobs and opportunity identity. The current app shares working files across users of an instance; hosting access alone does not create separate workspaces or prevent one user from overwriting another’s company draft.
Operational ownership also includes provider spending and data handling. Apollo credits, search allowance, AI usage, hosting and maintenance can contribute to cost. Historical records, contact information and research may pass through configured providers, so access, retention and approved processing arrangements should be reviewed before live use. The handover’s stored unit prices should not be presented as current quotations.
What has been tested and what still needs validation
The handover reports an automated test run on 9 November 2026 against the inspected working tree: 354 tests passed, two were skipped and five subtests passed. Coverage included search and enrichment, research and scoring, background jobs, exports, history and usage calculations.
These results support a statement about that code baseline. They do not establish a production acceptance result, a measured improvement in sales performance or a benchmark for live provider accuracy. The handover separately marks its live acceptance checks as pending execution and sign-off.
A useful next evaluation is a small, approved end-to-end run: confirm targeting, inspect company and event matches, review and save a draft, export a selected lead, re-export an update and reconcile the records. Access and backup restoration should also be checked before operational ownership is accepted.
Apply the framework to your own prospecting process
The ENGINE-supervised NUS capstone demonstrates a specific workflow design: start with historical evidence, preserve the source behind a prospecting hook, make the ranking explainable and keep a person responsible for outreach decisions.
For a founder or sales leader considering a similar project, the starting questions are practical. Which customer records are reliable? What makes a company relevant? Which public events genuinely support the offer? Who will verify a lead, maintain the data and own the follow-up after export?
Download the companion prospecting guide for a practical framework and review checklist. Complete the download form to access the PDF, or contact ENGINE to discuss an AI and data workflow built around your organisation’s systems and sales process.
Does ABPE send emails or LinkedIn messages automatically?
No. It prepares editable outreach drafts and exports lead information. A person must verify the company, contact and evidence, approve the wording and use an appropriate outreach channel separately.
Is the lead score a probability of making a sale?
No. It is a configurable prioritisation score combining ICP fit and public business signals, subject to caps. A score of 85 does not mean an 85% chance of conversion.
Can the same company appear more than once?
Yes. ABPE distinguishes company history from opportunity history, so a new business event can bring an existing company back for review. Rule-based event matching still needs human checks for duplicates and relevance.
What data does a similar project need?
This implementation uses historical pipeline fields covering company attributes, contact role, lead source, stage and outreach message type. A new implementation should first assess its own field quality, agreed outcome definitions, data permissions and targeting requirements.
How were ENGINE and NUS involved?
ENGINE sponsored and supervised an NUS Business Analytics capstone project involving six final-year students, resulting in the development of the Agentic B2B Prospecting Engine.