Intent Detection Agent is an open-source system for discovering B2B sales prospects from live web signals. It transforms natural language queries into ranked company lists by orchestrating web search, signal ingestion, classification, and scoring in a modular multi-agent pipeline.
- Multi-agent pipeline: Structured workflow using LangGraph
- Knowledge graph integration: Neo4j-based company–signal relationships
- Semantic search: Vector retrieval with Qdrant
- Explainable scoring: Transparent fit-score computation
- API-based deployment: FastAPI backend for real-world integration
The system consists of four main stages:
- Web Search – Collects real-time signals from the web using Perplexity API
- Ingestion – Cleans, deduplicates, and stores signals (Neo4j + Qdrant)
- Classification – Assigns signal type and sentiment using LLM + rules
- Scoring – Aggregates signals into company-level fit scores
Pipeline flow:
web_search → ingest → classify → score
- Reduces manual prospect research from 2–3 hours → < 1 minute
- Estimated cost per query: ~$0.11
- Enables scalable B2B lead generation and market intelligence workflows
- Backend: Python, FastAPI
- Orchestration: LangGraph
- Databases: Neo4j (graph), Qdrant (vector)
- APIs: OpenAI, Perplexity
- Frontend: Next.js, TypeScript
-
Python 3.11+
-
Node.js 18+
-
PostgreSQL-compatible database
-
API keys for:
- OpenAI
- Perplexity
git clone https://github.com/1Ninad/Intent-Detection-Agent.git
cd Intent-Detection-AgentInstall backend dependencies:
pip install -r requirements.txtRun backend:
uvicorn app.main:app --reloadRun frontend:
cd frontend
npm install
npm run devbackend/
frontend/
evaluation/
backend/– Core pipeline and APIfrontend/– UI for query input and resultsevaluation/– Sample outputs and evaluation artifacts
- Classification accuracy: 63.3%
- Sentiment accuracy: 96.7%
- Average cost: ~$0.11/query
- Depends on external APIs (OpenAI, Perplexity)
- Performance may vary with web signal quality
- Latency primarily influenced by web search stage
- Improve classification accuracy for minority signal types
- Reduce end-to-end latency
- Expand domain-specific signal taxonomies
- Improve reproducibility packaging
This project is licensed under the MIT License.