# \[Enterprise] Chat Routing by Topic

This guide explains how to set up your chatbot to send emails to Sales Development Representatives (SDRs) or relevant sales personnel when a prospect expresses interest in a service.

***

## Step 1: From your Chatbots, go to Actions (⋮) > 'Edit Chatbot'

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

## Step 2: Under 'Advanced' Settings > select 'Add Tab'

<figure><img src="/files/9sF0idc7VwplLIo89rpm" alt=""><figcaption><p>Click on 'Add Tag'</p></figcaption></figure>

## Step 3: Set Up 'Add Tag' Feature

The '**Add Tag**' feature provides three custom fields where you can input information to guide the chatbot in identifying when a sales prospect asks about specific topics.

<figure><img src="/files/iu6yXnoNDYGS4hGNqMNh" alt=""><figcaption><p>Input Tag Details into Fields</p></figcaption></figure>

#### Tag Name

The Tag Name is the label assigned to a topic mentioned by a user during their conversation with the AI chatbot.

It acts as a trigger for topic detection, flagging the chat when the keyword or related topics are mentioned. Once flagged under the Tag Name, a summary of the AI conversation with the lead is sent to the Sales Development Representative via email.

#### Description

The description should provide further contextual information for the AI chatbot to better identify when a Tag Topic is being brought up by the end user.

#### Emails to Notify when Tag is Detected

Enter the email addresses of the individuals or sales representatives who should be notified when a user's conversation is flagged by the AI under the Tag Name.

You can add multiple emails, separated by commas.

#### Auto Tag

Enabling the '**Auto Tag**' feature allows Wonderchat to automatically tag conversations when a Topic Tag is mentioned by the user during the conversation.

If this feature is disabled, the chatbot administrator would have to manually assign tags to each chat log.

## Step 4: Confirm Details and Click 'Save'

<figure><img src="/files/dzFzX8dz35xhEXhaHkPb" alt=""><figcaption><p>Example of how this feature works using "Pricing" as the tag topic.</p></figcaption></figure>

## Step 5: Try it out on your Chatbot

Once this is set up, you can go ahead and chat with your bot about the specific topic.

{% hint style="info" %}
SDRs will receive an email routing notification only when a prospect **provides their email** **address** during the chat.

When testing this feature, be sure to enter your email information while chatting with the chatbot.
{% endhint %}

When the chatbot detects the mentioned topic during a chat with a lead, it will route the lead's information and chat history to your SDR or the relevant sales representative.

They can then respond directly and continue the conversation with the lead from their inbox.

***

If you have any more questions, feel free to reach out to us at <mark style="color:purple;">**<support@wonderchat.io>**</mark>


---

# 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://docs.wonderchat.io/setup-guides/collecting-leads-with-your-chatbot/for-enterprise-users-how-to-route-chats-by-topic-to-sales-representatives.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.
