Native Integration · LangChain & LlamaIndex · Sub-Second Latency

Deterministic Firmographics Tool for LangChain Agents.

Empower Python & TypeScript LLM chains with structured ~240-token company signals.

LangChain agents quickly run out of context when fed raw HTML scraping tools. TokenEnrich provides a typed StructuredTool that returns clean Pydantic JSON in 240 tokens.

Get 50 Free API Credits → ⬇ Download LangChain & LlamaIndex Template
Raw Scraping Congestion vs. Deterministic 240-Token Payload
Live Socket Execution
raw_dom_scrape.html
25,400 Tokens Burned
25,400 tokens $0.0762 / query 6.4s latency
company_signal.json
~240 Tokens Clean
262 tokens $0.00078 / query 0.14s latency
// Resolving signals...
TOKEN ARBITRAGE 98.5% prompt reduction inside LangChain & LlamaIndex.
Provision Free Key →

3 minutes to integrate LangChain & LlamaIndex.

Drop the configuration snippet directly into your workspace. No scraping proxies or browser drivers required.

1

Create Free API Key

Generate your self-serve API key in your console. 50 free live queries included with zero credit card required.

2

Paste Configuration Snippet

Copy the langchain_tokenenrich.py snippet on the right into your LangChain & LlamaIndex configuration.

3

Sub-Second Execution

Your LangChain & LlamaIndex agents receive live structured company intelligence in ~240 tokens without context clutter.

langchain_tokenenrich.py
from langchain.tools import tool
import httpx

@tool
def enrich_company(domain: str) -> dict:
    """Fetches verified tech stack, email provider, and hiring signals in 240 tokens."""
    r = httpx.get(f'https://tokenenrich.com/v1/enrich?domain={domain}', headers={'Authorization': 'Bearer ae_live_key'})
    return r.json()

# Bind to your ChatOpenAI or Claude model
agent = create_openai_tools_agent(llm, [enrich_company], prompt)

Why LangChain & LlamaIndex teams choose TokenEnrich

Engineered specifically for token-constrained agent loops and high-throughput outbound pipelines.

Context Minified

Prompt Token Efficiency

Minified ~240-token payloads prevent context saturation and eliminate 98.5% of prompt inference costs during high-frequency agent tool execution.

High Conviction

Verified Buying Signals

Extract live DNS MX mail providers, active Ashby/Greenhouse hiring signals, SOC 2 certifications, and 500+ technology footprints on the wire.

140ms Sockets

Sub-Second Wire Latency

Non-blocking asynchronous sockets and Redis caching deliver fresh wire lookups in 140ms and cached company firmographics in under 1ms.

100% Deterministic

Zero Hallucinations

All signals are strictly parsed from live DNS root servers and certified TLS certificates without synthetic LLM guesses.

50-Domain Batch

Parallel Concurrency

Enrich bulk lead tables and account lists concurrently in less than 1 second on the Growth Tier.

Self-Serve

$29/mo Transparent Pricing

No annual enterprise lock-in contracts or SDR calls. Upgrade, downgrade, or cancel anytime via Stripe Customer Portal.

Frequently Asked Questions

Everything you need to know about integrating TokenEnrich into LangChain & LlamaIndex with deterministic ~240-token payloads.

Integration

How do I install TokenEnrich into LangChain & LlamaIndex?

Simply create an API key in your TokenEnrich console and paste the configuration snippet shown above into your LangChain & LlamaIndex settings. It takes under 3 minutes with zero custom code.

Token Optimization

What is the difference between TokenEnrich and web scraping in LangChain & LlamaIndex?

Web scraping extracts raw HTML (15,000+ tokens) which congests context windows and multiplies prompt costs. TokenEnrich queries the network wire directly, delivering verified B2B firmographics in ~240 clean tokens in 140ms.

Batch Concurrency

Can I run bulk lookups on thousands of domains?

Yes. TokenEnrich offers a parallel batch endpoint (POST /v1/enrich/batch) capable of resolving up to 50 domains simultaneously in under 1 second.

Start enriching leads in LangChain & LlamaIndex in seconds.

50 free lookups included. Drop your API key directly into your workflow and eliminate prompt bloat today.

Get Free API Key → Read API Docs