> ## Documentation Index
> Fetch the complete documentation index at: https://docs.waniwani.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Introduction

> Open-source SDK for MCP funnels. Build sales funnels, lead generation, booking, and quote flows on top of your MCP server.

`@waniwani/sdk` lets you build multi-step conversational funnels on top of any MCP server. A single MCP tool drives the conversation: it asks the next question, validates the answer, branches on state, and persists progress across calls. ChatGPT, Claude, and any other MCP-capable client become the front-end.

## What people build with it

<CardGroup cols={2}>
  <Card title="Sales funnels" icon="filter" href="/sdk/guides/sales-funnel">
    Qualify intent, capture lead data, route to the right next step.
  </Card>

  <Card title="Lead generation" icon="user-plus" href="/sdk/guides/lead-generation">
    Collect email, role, and use case. Push to your CRM.
  </Card>

  <Card title="Booking flows" icon="calendar" href="/sdk/guides/booking">
    Pick a service, pick a slot, confirm. Branch on availability.
  </Card>

  <Card title="Insurance and pricing quotes" icon="shield" href="/sdk/guides/insurance-quote">
    Collect details, validate, return a quote with widget cards.
  </Card>
</CardGroup>

## How it works

You declare a flow as a typed state graph. The graph compiles to one MCP tool that the model can call. The engine runs the graph, pauses to ask questions, branches on state, and resumes on the next tool call. Nothing in the model has to carry state between turns.

The flow engine is open source. Set `WANIWANI_API_KEY` to connect the [Waniwani Platform](/sdk/platform/overview), which adds hosted state, tracking, funnel analytics, knowledge base, and a chat widget on top.

## Next

Head to the [Quickstart](/sdk/quickstart) to get a flow running in under 5 minutes, or jump straight into [building a funnel](/sdk/guides/funnels).
