# 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 <a href="#step-1-creating-your-chatbot" id="step-1-creating-your-chatbot"></a>

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

<figure><img src="https://help.wotnot.io/~gitbook/image?url=https%3A%2F%2F360969599-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FsrMxU8nO3RjusUiYuXBB%252Fuploads%252Fp335n9eymNevU31PsAi8%252FCleanShot%25202024-06-21%2520at%252019.56.39.png%3Falt%3Dmedia%26token%3D18a410ff-c17e-478a-be76-ae76c3291c43&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=c9da9c6f&#x26;sv=1" alt=""><figcaption></figcaption></figure>

### Step 2: Add a talk to human action block <a href="#step-2-add-a-talk-to-human-action-block" id="step-2-add-a-talk-to-human-action-block"></a>

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.

Available on the **PREMIUM** plan and above.

<figure><img src="https://help.wotnot.io/~gitbook/image?url=https%3A%2F%2F360969599-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FsrMxU8nO3RjusUiYuXBB%252Fuploads%252Fsp8IbnZKrWvC0Cv7io97%252FCleanShot%25202024-06-21%2520at%252019.58.22.png%3Falt%3Dmedia%26token%3Db164447c-b79f-4b85-a625-a986b02f8395&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=45b66deb&#x26;sv=1" alt=""><figcaption></figcaption></figure>

### Step 3: Configure your assignment rules <a href="#step-3-configure-your-assignment-rules" id="step-3-configure-your-assignment-rules"></a>

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

<figure><img src="https://help.wotnot.io/~gitbook/image?url=https%3A%2F%2F360969599-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FsrMxU8nO3RjusUiYuXBB%252Fuploads%252FAgVCORKcxoO43C7TaHGR%252FCleanShot%25202024-06-21%2520at%252020.00.42.png%3Falt%3Dmedia%26token%3D7022e353-88a8-452c-a6c1-732efd6ee9d9&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=77d6363d&#x26;sv=1" alt=""><figcaption></figcaption></figure>

Learn more about assignment rules here 👇

\ <br>


---

# 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.wotsabot.ai/wotsabot-help-articles/live-chat/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.
