Margo

LangChain integration

Build a LangChain agent that finds verified local business leads

Margo exposes a clean lead generation API and a machine-readable skill endpoint so LangChain agents can discover, call, and process verified local business leads on demand.

What your agent can do

Prospecting agent

Take an ICP description, call Margo, and return a formatted lead list in one conversational turn.

Research and outreach agent

Find leads with Margo, research each company, and draft personalised outreach emails.

CRM enrichment agent

Enrich an existing CRM record with Google Maps data, review scores, and verified contact info.

Daily lead brief

Pull new leads every morning, score by website gaps, ratings, and social presence, then send the best prospects to Slack.

Example LangChain tool

from langchain.tools import Tool
import requests

def get_margo_leads(query: str) -> str:
    response = requests.post(
        "https://www.margoleads.io/api/v1/leads/generate",
        headers={"Authorization": "Bearer YOUR_API_KEY"},
        json={"keyword": query, "limit": 25}
    )
    leads = response.json()["leads"]
    return f"Found {len(leads)} leads. First result: {leads[0]['businessName']}"

margo_tool = Tool(
    name="MargoLeadFinder",
    func=get_margo_leads,
    description="Find verified local business leads from Google Maps."
)

Frequently asked questions

Does Margo expose a LangChain-native tool manifest?

Yes. GET /api/v1/skill returns a machine-readable JSON manifest for automatic tool discovery and parameter parsing.

Which Margo plan gives API access?

The Business plan includes full API access. For development testing, contact support for sandbox access.

Can I use Margo with LangGraph?

Yes. Margo is a standard HTTP tool and works with LangChain-compatible frameworks including LangGraph and custom agents.

Start free

Get verified leads without the manual work.

Get API access