# Inbox
---

Connect Chatbots to the Infobip contact center solution, [Inbox](https://www.infobip.com/docs/inbox). When there are complex questions or requests that the chatbot cannot manage, hand over the chat to a human agent.

You can do the following:

- **Transfer to agent as a fallback**: If the chatbot cannot understand what the end user wants, or the end user exceeds the defined number of unrecognized responses, transfer the chat to an agent [as a fallback option](#transfer-to-agent-as-fallback).
- **Use the To Agent element to transfer to agent**: In complex situations where human intervention is required, or when end users ask to speak to an agent, use the **To Agent** chatbot element to [transfer the chat to an agent](#use-the-to-agent-element-to-transfer-to-agent).
- **Hide attribute values from agents**: When you design the chatbot, determine whether attribute values are [visible to agents](#hide-attribute-values-from-agents) when a chat is transferred from the chatbot to an agent.
- **Track the conversation after handover**: Use the **conversationId** [predefined attribute](https://www.infobip.com/docs/automation-studio/chatbots/build-chatbots/attributes#predefined-attributes-attribute-types) to identify or track a conversation transferred from Chatbots to an agent in Inbox.

In Inbox, users with a Supervisor role can:

- **Monitor chatbot conversations**: Supervisors can monitor conversations and identify issues in the chatbot setup.
- **Take over chatbot conversations**: In case the chatbot cannot resolve end user queries, supervisors can transfer the conversation to an agent.

Chats cannot be redirected from an agent to a chatbot.

For information about [enabling Inbox](https://www.infobip.com/docs/inbox/get-started) in your Infobip account and using Chatbots with Inbox, see the [Inbox](https://www.infobip.com/docs/inbox) documentation.

---

## Transfer to agent as fallback

The fallback option is available only in some chatbot elements. See the documentation for [chatbot elements](https://www.infobip.com/docs/automation-studio/chatbots/chatbot-elements/channels) to identify whether an element supports fallback.

1. On the Infobip [web interface](https://portal.infobip.com//), go to **Automation Studio** > **Chatbots** and open your chatbot.
2. Find the element from which you want to redirect the end user to an agent.
3. In the **Fallback action** field, choose **Connect to agent**.
4. (Optional) In the **Fallback message** field, inform the end user that you are transferring the chat to an agent.

In the following example, the message to the end user is repeated 2 times. If the end user still does not provide a relevant response, the fallback action, **Connect to agent**, is applied.

---

## Use the To Agent element to transfer to agent

Use the [**To Agent**](https://www.infobip.com/docs/automation-studio/chatbots/chatbot-elements/core-elements#to-agent) chatbot element to transfer the chat to an agent in Inbox.

1. On the Infobip [web interface](https://portal.infobip.com//), go to **Automation Studio** > **Chatbots** and open your chatbot.
2. Identify the element from which you want to redirect the end user to an agent.
3. Drag and drop the **To Agent** element under the required element.
4. In the **To Agent** element, add [tags](https://www.infobip.com/docs/automation-studio/chatbots/chatbot-elements/core-elements#tags-to-agent) to add context to the conversation. This helps route the support request or chat to the right queue in Inbox.

IMPORTANT
The **To Agent** element ends the Chatbots session immediately.

---

## Hide attribute values from agents

You can hide attribute values so that agents cannot view these values in the context card and conversation history in Inbox.

1. On the Infobip web interface, go to **Automation Studio** > **Chatbots** and open your chatbot.
2. Go to the **Attributes** tab > **Attributes** section.
3. Go to the attribute for which you do not want agents to see the values.
4. Deselect the **Available to agents** field.