This page shows you how to build a lead generation MCP funnel withDocumentation Index
Fetch the complete documentation index at: https://docs.waniwani.ai/llms.txt
Use this file to discover all available pages before exploring further.
@waniwani/sdk. Lead gen is the simplest MCP funnel: a few questions, validation, and a handoff. Runs as a single MCP tool inside any MCP client.
What you’ll build
A lead capture flow that:- Asks for work email, with format validation
- Asks for role and use case
- Looks up the company by email domain (action node, no user prompt)
- Pushes to your CRM or webhook
Flow graph
Code
Register
Why this works as an MCP funnel
- No form, no friction. The user is already in ChatGPT or Claude. They never leave.
- The AI asks the questions in plain language. Better completion rate than a form.
- Validation runs server-side. If the email is malformed, the engine re-asks automatically.
- Enrichment happens silently.
lookup_companyis an action node, no user interaction.
Add funnel analytics
SetWANIWANI_API_KEY and every step is tracked. The funnel view shows three steps: Ask for email → Ask role + use case → Push to CRM (the labels are taken from each node’s label field). lookup_company uses hideFromFunnel: true because enrichment is plumbing, not a step the user can drop off at. See Tracking / Overview.