AI & MCP 6 min read

Using MCP to write a chatbot flow with Claude or Cursor

Let your AI assistant do the typing. With a scoped key and one config block, it can create and edit chatbot flows for you to review and record.

Writing a chatbot conversation by hand is mostly typing: every greeting, every branch, every fallback. If you already work with an AI assistant like Claude or Cursor, you can hand that part over. With MCP, your assistant can create and edit Bot Replayer flows directly, and you spend your time reviewing the conversation instead of drafting it.

What MCP is, in one paragraph

The Model Context Protocol is an open standard that lets an AI assistant call tools in other apps. Bot Replayer exposes an MCP server, so an assistant that speaks MCP can create a flow, edit its Ask and Say nodes, find flows by name or tag, read one back, tag it, and turn its public share link on or off — the same actions you'd do in the dashboard, limited by the permissions of the key you give it.

Step 1: create a scoped API key

In your organization's API keys page, create a key with only the flow permissions the assistant needs:

  • flows:view to let it read and find flows,
  • flows:create and flows:update to let it write them,
  • flows:delete only if you really want it to be able to remove flows.

Leave delete off and deletion simply isn't possible through that key. Keys are tied to one organization, rate-limited and logged like any other API key.

Step 2: add Bot Replayer as a remote MCP server

Paste the server address and your key into your client's MCP settings — in Claude Desktop, Claude Code or Cursor, look for "MCP" or "Connectors". The exact configuration to copy is on the MCP connection page. It's a remote server with a Bearer token, so there's nothing to install.

Step 3: describe the conversation

Now prompt it like you'd brief a copywriter. The more context, the better the first draft:

Create a flow called "Refund request" for an online shoe store. The customer says their order arrived in the wrong size. The bot asks for the order number, offers an exchange or a refund as two options, and confirms the next step. Keep every message under 25 words, friendly but not cute.

A few prompts that work well:

  • "Create a 5-step onboarding flow for a SaaS app, branching for technical vs. non-technical users."
  • "Rewrite the greeting in the 'Pizza Nostra' flow in Portuguese and make it shorter."
  • "Find all flows tagged support and make the fallback message apologise and offer a human."
  • "Turn on the share link for the refund flow and give me the URL."

The flow appears in your dashboard right away, as nodes on the canvas you can open and tweak.

Step 4: review it where it'll be seen

An assistant is great at drafting, but the judgement call — does this read like a real chat? — is yours. Open the flow, pick the platform it will be shown on, and press play. A flow written for a ChatGPT-style AI assistant demo reads very differently from one for a WhatsApp business bot, and you'll spot a too-long bubble the moment it plays.

Then iterate in the same chat: "the third bot message is too long, split it in two", "add a quick reply for 'talk to a human'".

Step 5: record or share

Video generation happens in the editor, not through the assistant: when the flow is right, record the 1080×1920 video there. Or have the assistant switch on the public share link and send the URL to whoever needs to see it.

What MCP doesn't do

It's worth being clear: a flow written over MCP is still a design, not a running bot. Nothing is sent to WhatsApp or any real channel, and the assistant can't run the flow against a real user. That's what makes it safe to let an AI loose on it — the worst case is a draft you edit.

If you're preparing a launch, combine this with the Product Hunt launch video guide: let the assistant write the flow, and spend your time on the edit.

Make the demo from this guide

Free up to 5 flows. No API, no webhook, no code.

Start for free →

Generators used in this guide

More guides