Skip to main content
This page shows you how to build a sales funnel MCP app with @waniwani/sdk. The funnel runs as a single MCP tool inside ChatGPT, Claude, or any MCP client. The engine handles state and branching server-side.

What you’ll build

A sales funnel that:
  1. Qualifies intent: learn, evaluate, or buy
  2. Captures lead info: email, company, role, team size
  3. Branches by stage: different next steps for “evaluating” vs. “ready to buy”
  4. Hands off to your CRM: call your API in the last action node

Flow graph

Code

Register on your MCP server

That’s it. The funnel is now a tool the AI client can call. The engine runs the graph, pauses on interrupts, branches by intent, and calls your CRM in push_to_crm.

Patterns this uses

  • Conditional edges. Different paths by intent. See Flows / Edges.
  • Multi-field interrupts. Capture several fields per turn. See Flows / Interrupts.
  • Action nodes. push_to_crm runs without user interaction. See Flows / Nodes.

Add funnel analytics

Set WANIWANI_API_KEY and every node visit is tracked. The dashboard shows step-by-step drop-off across qualify_intent → capture_* → push_to_crm. See Tracking / Overview.

Next

Build a lead generation MCP

Build a booking MCP app

Build an insurance quote MCP

Flows reference