The discovery agent is the entry point of the sales pipeline. It converts your raw client requirements into a focused web search query, retrieves live results, and asks the LLM to extract 3-5 companies that are strong fits for your services. Each extracted lead is placed on theDocumentation 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.
pending_leads queue, where the supervisor picks them up one at a time and routes them through the rest of the pipeline.
State inputs
A free-text description of the services you offer and the kinds of companies you want to reach. The agent truncates this to 1,000 characters before passing it to the LLM.
State outputs
A list of discovered companies. Each item contains
company_name, industry, and reason.Reset to
null after discovery so the supervisor starts fresh.Reset to
null after discovery.Initialized to an empty list
[] to track processed leads across the run.Cleared to prevent stale data from a previous run.
Cleared to prevent stale data from a previous run.
Cleared to prevent stale data from a previous run.
Cleared to prevent stale data from a previous run.
Cleared to prevent stale data from a previous run.
Cleared to prevent stale data from a previous run.
What it does
Generate a search query
The agent sends
client_requirements (up to 1,000 characters) to the LLM and asks it to produce a short 5–8 word search query. The LLM returns only the query string — no preamble, no quotes — and the agent strips any residual Query: prefix with a regex.Search the web
The cleaned query is passed to
web_search with max_results=10. This returns a list of web results — titles, URLs, and snippets — that the LLM will use as raw lead candidates.Extract structured leads
The agent sends both
client_requirements and the raw search results to the LLM, asking it to identify 3–5 companies from the results that Webanix Solutions could approach. The LLM responds with strict JSON. The agent parses the response, strips any accidental markdown fences, and loads the lead list. On any parse error, pending_leads is set to an empty list and the error is logged.Tools used
web_search
Performs a live web search and returns up to 10 result objects containing title, URL, and snippet.
Output schema
The LLM is prompted to return strict JSON with no markdown and no preamble. The expected structure is:The agent strips
```json and ``` fences automatically before parsing, so minor LLM formatting deviations are handled gracefully.