What you need
- A funnel with traffic. The steps come from
step()calls in your app. If you haven’t set that up yet, run the project setup prompt first. - The
wendungMCP server connected to your agent. The connection prompt registers it, or add it yourself as described in Agent setup. You sign in through OAuth; there are no keys to paste. - Your agent running in the repository of the app that sends the events, so it can read the code behind each step.
What your agent can look up
The MCP server gives your agent read access to the same funnel, user, and ingest data you see in the dashboard. You don’t need to name tools in your prompts. Your agent picks them from your question.
Segments cover country, city, device type, browser, operating system, plan, and traffic source. Plan comes from the
plan trait you pass to identify(). User timelines list event names, times, sessions, location, and device. They leave out event properties and traits.
Investigate a drop-off
Each step below is one prompt. Your agent keeps the context between them, so you can also ask for the whole investigation at once.1
Find the step that loses the most users
Prompt
2
Check whether a segment explains it
Prompt
3
Find out when it started
Prompt
4
Look at what users did
Prompt
5
Rule out a tracking problem
Prompt
step() call that a refactor removed or renamed, not users who stopped. Daily trends show the drop for that step. Ingest health and logs cover the whole project: they show whether requests arrive and why rejected ones failed. Funnel alerts email workspace owners when this happens.6
Change the code and check the result
Ask your agent to propose a fix in the code behind the step, and review the diff as you would any other change. After it ships, give the funnel enough traffic to compare, then ask:
Prompt
Start from a link or an alert
Funnel links from the dashboard carry the project ID, funnel ID, and date range, for examplehttps://dashboard.wendung.app/projects/<projectId>/funnels/<funnelId>?from=...&to=.... Paste one into your prompt and your agent queries that funnel and period directly.
Funnel alert emails include such a link and a prompt you can paste as it is. See Investigate with your agent.
Read the results with care
- Small numbers mislead. A step that 12 users reached can swing 20 points from one week to the next. Ask your agent for the user counts behind every rate.
- The data shows when and where, not why. A drop that lines up with a commit is a lead, not proof. Check it against the code and, where you can, against what users told you.
- Queries are limited to 90 days. A single query covers at most 90 days and can’t reach past your plan’s data retention. Agents split longer periods into several queries.