Table of Contents

How to build, test and publish an agent with the Landbot MCP

Desirée M Updated by Desirée M

Describe the conversation you want in everyday words, and your AI tool builds the Landbot agent through the Landbot MCP, lets you try it and publishes it when you approve. You don't need to know block names or how the builder works.

How to build an agent with the Landbot MCP

To build an agent, describe it in a new chat of an AI tool that has the Landbot MCP connected.

1️⃣ Open a new chat in your AI tool.

2️⃣ Describe the agent: who it talks to, what it asks, in what order, and what happens after each answer. For example:

Build a lead qualification agent for our website. Greet visitors, ask for their name, email and company size. Tell companies with more than 50 people that someone from sales will contact them, and thank everyone else. Save each lead to a Google Sheet.

3️⃣ Sign in to Landbot if your browser asks you to.

4️⃣ Wait while the agent is built. When it's ready, you get a plain-words summary of the conversation.

Claude's summary of a lead qualification agent: name, email, company size buttons and two endings

5️⃣ Choose whether to try the agent first or publish it. Visitors only see the agent after you approve publishing.

Your AI tool can create Web, WhatsApp, Facebook Messenger and APIchat agents. The web chat design and the walk-through on the share link apply to Web agents only.

How does your AI tool build a new agent?

Your AI tool builds a new agent in a fixed order, so nothing goes live until you approve:

1️⃣ Your AI tool builds the conversation.

2️⃣ Your AI tool switches the agent to the current web chat and applies the look you described. The agent isn't published yet, so no visitor sees it.

3️⃣ Your AI tool gives you a summary and asks once whether to publish the agent or let you try it first.

4️⃣ Once the agent is published, an AI tool that can open web pages tries every path of the conversation on the share link.

For an agent you already have, your AI tool names the agent and asks for your approval before changing it.
Not sure where to start? Say "just show me." Your AI tool offers to build a sample lead qualification agent and publish it after one approval, so you can try it right away.

Which Landbot blocks can your AI tool build?

As of 4 November 2026, your AI tool can build these Landbot blocks with the Landbot MCP:

● AI: AI Agent.

● Messages: Send a message, Media and Goodbye message.

● Questions: Buttons, Ask for a name, Ask a question, Ask for an email, Ask for a number, Ask for a phone, Ask for a date, Ask for a file, Ask for an address, Ask for a Url, Picture choice, Auto-complete, Yes/No, Rating, Opinion scale and Forms.

● Logic: Conditions, Set a field, Global keywords, Formulas, Jump to and Goal.

● Integrations: Send an email, Google sheets, Zapier, Calendly and n8n.

● Inbox & Builder tools: Human takeover, Close chat, Bricks, Add a note and Inactivity trigger.

● Low code: Webhook, Code and Code set.

● WhatsApp: Reply buttons and List buttons.

The Inactivity trigger block runs a flow of your choice when a visitor stops answering for a set number of minutes. An agent has one Inactivity trigger at most.
The Calendly, Code, Code set and Forms blocks work on the web chat only.
The Reply buttons and List buttons blocks work on WhatsApp only.
Some blocks need a paid plan. For example, the AI Agent, Conditions and Webhook blocks need the Starter plan or higher, and the Formulas block needs the Professional plan or higher. Before placing a block that needs a paid plan, your AI tool tells you which plan it needs. See Landbot pricing for what each plan includes.
A new Zapier block shows up in Zapier only after you test or publish the agent. Your AI tool adds the Zapier block to the agent, and you connect it to a Zap in Zapier.
The list changes as Landbot adds blocks. To see the current list, ask your AI tool: "Which Landbot blocks can you place?" It reads the list from Landbot every time.
Developers can read the block catalog through the Bots API: see Get blocks.

What happens when you ask for a block your AI tool can't build yet?

When you ask for a block the Landbot MCP doesn't support yet, your AI tool says the block isn't supported instead of using a different one. Add that block yourself in the Landbot builder. Landbot adds support for more blocks over time.

How to describe a Landbot agent so it's built right the first time

To get the agent right the first time, describe it in detail: the more specific your description, the fewer changes you need afterward. Include:

● The goal: what the agent is for, such as collecting leads or booking demos.

● The questions, in order: the exact information you need from each visitor.

● The paths: what happens after different answers, such as "if they choose Pricing, show our plans."

● The ending: what visitors see or get at the end.

● Where answers go: a Google Sheet, an email, a Calendly booking or a person on your team.

● The tone: friendly, formal or playful, and the language to use.

What does your AI tool give you when an agent is ready?

Every build with the Landbot MCP ends with a summary from your AI tool that includes:

● The conversation, step by step: what visitors go through, where the conversation splits and where it ends.

● Decisions you didn't make: wording, checks or settings that were chosen for you. Read this list first: it's the part you're most likely to want to change.

● Where the agent stands: whether anything in it needs fixing, and whether it's published, sent to its test link or neither.

● Links: the link to open the agent in the Landbot builder and, for a Web agent, the share link visitors get once it's published.

The builder link is for looking at the flow. If you had the builder open while your AI tool was working, reload it first: an older tab still has the old flow and would save it back over the new one.

What is the difference between testing and publishing?

Testing lets you try the agent privately. Publishing makes it live for every visitor.

● Test: the agent's test link shows the new version, and some AI tools can also show it right in the chat. Your visitors still see the old version.

● Publish: every visitor gets the new version of the conversation on every channel the agent uses. Design changes waiting in the agent's draft go live at the same time.

● Leave it as a draft: nothing changes until you decide.

Your AI tool asks for your approval before each publish. A yes covers that one publish: after a later change, you're asked again.

How does your AI tool test an agent?

Your AI tool tests a published Web agent by chatting with it on its share link, if the AI tool can open web pages. It follows every path to the end with fake details, such as "Test Visitor," then checks the main path again at phone width. Each test chat appears in your Landbot inbox.

On the Sandbox plan and during the 14-day trial, a Web agent's share link opens a safety page before the chat. Select Continue to chat to start the conversation. See How to launch and share your agent.

Before the agent is published, or when your AI tool can't open web pages, you test it yourself. Your AI tool lists each path and what to answer to take it: follow each one to the end, on a computer and on a phone.

How to change an agent you already have

To change an agent you already have, ask for the change in plain words, for example: "Add a question asking for their phone number after the email." Your AI tool names the agent being changed and asks for your approval before changing it, and again before publishing it.

Don't edit the agent in the Landbot builder while your AI tool is changing it. If a builder tab was open, refresh it before making changes, or the builder can overwrite the new changes.

How to add an AI Agent block

To add an AI Agent block, ask your AI tool for it in the chat, for example: "After saving the lead, ask if they have a question. Answer from our FAQ, and hand over to a person if you can't." An AI Agent block answers visitors' open questions with AI, then sends them back to your flow.

Your AI tool sets up the AI Agent for you: its instructions, the data it saves, its buttons and when it hands the visitor back to the flow. It can also add sources to the AI Agent's Knowledge Base: text you paste in the chat, a link to a public page or document, or a document from your computer (PDF, Word, Markdown, plain text, RTF or HTML, up to 5 MB).

Sending a document from your computer works only in AI tools that can run commands on your computer, such as Claude Code or Codex.

Your AI tool can also add REST API actions to the AI Agent, so it can call your own APIs during a conversation, for example to look up an order. Your AI tool writes each action and names the headers that carry a credential, such as an API key. You enter those values in Landbot, from a link your AI tool sends you, so they never go through the chat.

If an action moves to another scheme, host or port, Landbot empties its credentials. Enter them again in Landbot.

The AI Agent goes live separately from your agent:

● New Knowledge Base sources are live as soon as Landbot has read them, with no publish needed.

● New and changed API actions apply right away to the conversations that reach the AI Agent afterwards.

● Other changes to the AI Agent wait in a draft until your AI tool publishes the AI Agent, after your approval.

Only add sources and API actions that are ready for your visitors. They reach your live agent right away.

How to change how the web chat looks

To change how the web chat looks, describe the look you want, for example: "Make it look like our website" or "Use a dark theme with our brand blue." Your AI tool writes the design as Custom CSS and applies it through the Landbot MCP.

On an agent that was never published, the new design applies right away. On a published agent, the new design goes to the agent's draft, and visitors see it the next time the agent is published: by your AI tool after your approval, or from the Landbot builder. For details, see How to style your Landbot web chat with the Landbot MCP.

Was this article helpful?

How to get started with the Landbot MCP

How to fix common problems with the Landbot MCP