Table of Contents

Close chat block

Desirée M Updated by Desirée M

The Close chat block closes a conversation in your Landbot Inbox automatically, at the point of the flow where you place it. Finished conversations get the status Closed, so they drop out of the open conversations your team is working through.

The Close chat block doesn't close the chat window or the visitor's browser tab. It only marks the conversation as closed in the Inbox, and the visitor doesn't see anything happen.

How to add a Close chat block

To add a Close chat block, open the block menu and pick Close chat under Inbox & Builder tools:

1️⃣ Click the output of the block that ends the conversation, or the + button at the top left of the builder.

2️⃣ Open Inbox & Builder tools.

3️⃣ Click Close chat.

Landbot Building Blocks menu with the Inbox & Builder tools group open and the Close chat block in it

The Close chat block has nothing to set up. Once it's connected, every conversation that reaches it is closed.

Where to put the Close chat block in your flow

Put the Close chat block right after the last message of each path where the conversation is done. If your flow has several endings, connect each of them, so no finished conversation stays open by mistake.

The Close chat block also has an output, so the flow can carry on after it. Use it for work the visitor doesn't need to see, such as sending the answers to another tool with a Webhook block. The next block runs straight away, and the conversation stays closed.

Example: close the chat after a booking

In this example, a bike repair shop agent, Spoke & Wheel, books a tune-up: it asks for the visitor's name and drop-off time and confirms the booking with a Send a message block. Then the Close chat block closes the conversation, and a Webhook block sends the booking to the shop's booking system:

Bike repair booking flow where the confirmation message leads to a Close chat block and then a Webhook block

When Omar books a tune-up for Saturday morning, the Spoke & Wheel agent gives three results:

● In the chat, Omar reads "All set, Omar! Your tune-up is booked for Saturday morning. See you at the shop 🔧". Nothing shows that the chat was closed.

● In the Inbox, the conversation is marked as closed.

● In the booking system, the Webhook block delivers Omar's name, Saturday morning and the service, tune-up, after the chat is already closed.

Bike repair chat that ends with the booking confirmation, with no sign that the chat was closed

How to find closed conversations in the Inbox

To find closed conversations, open the Inbox and set the status filter above the conversation list to Closed. The filter works in Chats, for every conversation, and in Channels, for one agent's conversations. When you open a closed conversation, a Closed chat label shows at the top. The Inbox Section Guide explains the rest of the Inbox.

Landbot Inbox filtered by Closed, showing Omar's bike repair conversation with the Closed chat label

What reopens a closed conversation?

A closed conversation reopens as soon as someone writes in it:

● The visitor sends a new message: the conversation is open again, and it stays unassigned.

● A teammate replies from the Inbox: the Closed chat label disappears, and the conversation is assigned to the teammate who replied.

Messages and other blocks the agent runs after the Close chat block don't reopen the conversation. To close a reopened conversation from the Inbox, click End.

To hand a conversation to your team instead of closing it, use the Human takeover block.

📱 For WhatsApp

The Close chat block works the same way on WhatsApp.

💬 For Facebook Messenger

The Close chat block works the same way on Facebook Messenger.

Was this article helpful?

Conditions block: check dates, visitors and team members online

How to ask a question based on a variable not being set (empty URL params)