Table of Contents

How to style your Landbot web chat with the Landbot MCP

Desirée M Updated by Desirée M

Describe the look you want in one sentence, such as "make it look like our website" or "dark, with our brand blue," and your AI tool restyles your Landbot web chat through the Landbot MCP. It writes the design as Custom CSS and applies it to your agent.

What can your AI tool change in your web chat's design?

Your AI tool changes these parts of the web chat with Custom CSS:

● Colors: background, text, accent color, message bubbles and buttons.

● Mode: light or dark.

● Shape: square, soft or rounded corners, and boxed or underlined answer fields.

● Fonts: any system font or Google Font.

● Details: spacing, button states and scrollbars.

Your AI tool also changes these parts in the web chat's settings, not with CSS:

● Header: the title and the avatar.

● Browser tab: the page title.

● Hints: the hint texts of the text box and the buttons.

● Back button: your AI tool keeps it visible on every device, including phones and touch-screen laptops, so visitors can change an answer.

Custom CSS doesn't change the logo, the message avatars or animations.

With a dark look, the page still shows white for a moment while it loads, with a spinner in the button color set in the builder's Design settings. Custom CSS doesn't reach that loading screen.

How to style your web chat with the Landbot MCP

To style your web chat, ask your AI tool for the look in the chat where the Landbot MCP is connected.

1️⃣ Describe the look in one sentence, or give a reference: your website's address, a well-known brand, or "light" or "dark." For example: "Make my lead qualification agent's chat dark, with our brand blue."

2️⃣ If your AI tool asks about the mode, colors or corners, answer in a few words. For an agent you already have, your AI tool asks for your approval before changing the design.

3️⃣ Your AI tool writes the design as Custom CSS and applies it to the agent. The new CSS replaces the web chat's previous Custom CSS.

4️⃣ Check the new look on a computer and on a phone. An AI tool that can open web pages checks it for you on the agent's share link once the design is live, including the text box visitors type in. Otherwise, check it yourself: on the share link if the design is live, or with Preview in the Landbot builder if it's still in the draft.

Landbot web chat in a dark theme with blue answer bubbles and company size buttons
The web chat's text box has two layouts. On a touch screen, the send button sits at the end of the text. With a mouse, the send button sits under the text. Check the text box on both a computer and a phone.
For a new agent, describe the look in the same request, for example "build it and make it look like our website." Your AI tool styles the agent before publishing it, so visitors see the new look from the first question.

Is the new design live right away?

Whether a new design is live right away depends on whether the agent was already published:

● Agent never published: the new design applies right away. No visitor can see the agent yet.

● Agent already published: the new design goes to the agent's draft. Visitors see it the next time the agent is published: by your AI tool after your approval, or from the Landbot builder.

To see a design that's still in the draft, select Preview in the Landbot builder.
Publishing the agent puts live every change waiting in its draft, not only the new design. Your AI tool asks for your approval before it publishes.
In the same conversation, you can ask your AI tool to put the previous design back. After the conversation ends, the previous design is gone, so keep a copy if you might want it back.

How to add a messaging-app look or a step-by-step form

To add a messaging-app look or a step-by-step form, ask your AI tool for it by name, for example "Add the step form behavior." The Landbot MCP has two ready-made behaviors that go beyond colors and fonts:

● Messaging app: reply buttons inside the message bubble, message times, a "Today" label and "typing…" under the header name.

● Step form: a progress bar, a "2 of 5" counter and letter keys (A, B, C) for buttons.

Your AI tool adds the behavior to your web chat through the Landbot MCP, the same way it applies a design. Once the behavior is live, an AI tool that can open web pages tries it on the agent's share link, on a computer and a phone. The agent still works without it: the chat just keeps its regular look.

Adding a behavior keeps any Custom JS your web chat already has.
To add a behavior yourself, ask your AI tool for the code. Then paste it in the Landbot builder: Design › Custom code › Add JS, then Apply and Publish.

How to paste the design into the Landbot builder yourself

To apply the design yourself, ask your AI tool for the CSS, then paste it in the Landbot builder:

1️⃣ Open the agent in the Landbot builder and go to Design › Custom code › Add CSS.

2️⃣ Delete everything in the field and paste the new CSS. Replace the old CSS instead of adding to it.

3️⃣ Select Apply, then Publish.

Why doesn't the new design show on the web chat?

A new design from your AI tool doesn't show on the web chat for one of these reasons:

● The design is still in the draft. On a published agent, the new design shows only after the agent is published again: by your AI tool after your approval, or from the Landbot builder.

● The agent uses the previous web chat version. Custom CSS only works on the current web chat. Your AI tool switches the agents it creates to the current version, and asks first before switching an agent you already have.

● A builder tab published an older design. Publishing from a builder tab opened before the change puts the older design back. Refresh the tab before publishing.

Was this article helpful?

How to fix common problems with the Landbot MCP