# Building a bot with live chat

Chatbots are meant to automate the first level of conversations with users.

But sometimes, you need to offer users human assistance depending on the situation.

Here are the steps to add live chat to your chatbot:

## Step 1: Creating your chatbot

Goto Bot Builder -> Build a bot -> Inbound -> Web and build your chatbot flow.

<figure><img src="/files/XUSrOyBB6KS3dJ8jiDp0" alt=""><figcaption></figcaption></figure>

## Step 2: Add a talk to human action block

Now, add the 'Talk to human' action block at the point in the chatbot flow where you want to transfer the chat to a human agent.

{% hint style="info" %}
Available on the **PREMIUM** plan and above.
{% endhint %}

<figure><img src="/files/3qM2hWZvLIhkFGg8FWRF" alt=""><figcaption></figcaption></figure>

## Step 3: Configure your assignment rules

On the 'Talk to human' action block, add the assignment rules for the chat to be assigned to your agents.&#x20;

<figure><img src="/files/bgXxIuDiaSF8xIRpmsEm" alt=""><figcaption></figcaption></figure>

Learn more about assignment rules here :point\_down:

{% embed url="<https://help.wotnot.io/bot-builder/action-blocks/talk-to-human#assignment-rules>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.wotnot.io/getting-started/building-a-bot-with-live-chat.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
