# How to Maximize Customer Service Potential with AI Agent

{% hint style="success" %}
In this use case article, you’ll discover how to automatically assign Contacts to an AI Agent whenever a Contact starts a conversation.
{% endhint %}

The AI Agent enables businesses to engage with customers instantly by providing quick responses to low-level conversations involving basic product information (e.g., FAQ’s), policies (e.g., return policy), basic troubleshooting steps for common technical issues or errors, etc. By taking over such routine conversations, the AI Agents free up human agents for more complex conversations and tasks.

The AI Agent also serves as a solution to the scalability problems most businesses face during expansion.

#### Benefits <a href="#benefits" id="benefits"></a>

* AI Agent operates around the clock, providing instantaneous customer support irrespective of time zones or business hours. It also reduces customers’ wait time and helps increase customer satisfaction.
* The AI Agents can manage multiple conversations simultaneously and ensure the business can scale up without additional resources when required.
* AI Agents provide consistent responses based on programmed logic, ensuring that users receive uniform and accurate information regardless of the time or agent.
* AI Agents automate routine and time-consuming tasks so that human agents can focus on more complex tasks

#### Workflow Setup <a href="#workflow_setup" id="workflow_setup"></a>

To use the **Assignment: AI Agent** workflow template, select **Workflows** > click **+ Add Workflow** > select **Assignment: AI Agent** > click **Use Template**.

Workflow Steps and their functions:

1. **Trigger:** The Workflow starts whenever a Contact opens a conversation.
2. **AI Agent**: The **AI Agent** step is triggered so the AI Agent can respond to the Contact’s query.

<figure><img src="https://files.helpdocs.io/9e3syfbzn8/articles/55pq29h4gi/1701915788036/screenshot-2023-12-07-at-10-22-41-am.png" alt=""><figcaption></figcaption></figure>

The following values have been set in the fields:

* **Objective**: **Answer Questions** has been set as the AI Agent’s objective for the conversation with the Contact.
* **Knowledge Sources**: From the **Knowledge Source** dropdown list, select a Knowledge Source suitable for the AI Agent to respond to the Contact’s query or add a new Knowledge Source using the **Add Knowledge Source** link.
* **Advanced Settings**: The **Add Contact Idle Branch** toggle has been enabled and the default time of 15 min has not been changed. Turning this toggle on adds another branch called **Failure: Idle branch,** which closes the conversation after 15 minutes of inactivity.Before closing the conversation, the Workflow sends a message to the Contact that the conversation can be opened again by sending a message.

<figure><img src="https://files.helpdocs.io/9e3syfbzn8/articles/55pq29h4gi/1701915745924/screenshot-2023-12-07-at-10-20-58-am.png" alt=""><figcaption></figcaption></figure>

The conversation continues until one of the branch options is met:

<figure><img src="https://files.helpdocs.io/9e3syfbzn8/articles/55pq29h4gi/1701914924949/untitled-38.png" alt=""><figcaption></figcaption></figure>

* **Success**: The condition for this branch is met when the AI Agent and Contact have successfully concluded their conversation and the AI Agent has satisfied all the queries.

<figure><img src="https://files.helpdocs.io/9e3syfbzn8/articles/55pq29h4gi/1701914948009/untitled-39.png" alt=""><figcaption></figcaption></figure>

* **Failure: Others**: The condition for this branch is met when an unexpected technical issue has occurred, e.g., Channel disconnected, Respond AI credits run out, etc. The Contact is sent a message that they are being re-directed to the human agent for further correspondence.

<figure><img src="https://files.helpdocs.io/9e3syfbzn8/articles/55pq29h4gi/1701915032288/untitled-41.png" alt=""><figcaption></figcaption></figure>

<figure><img src="https://files.helpdocs.io/9e3syfbzn8/articles/55pq29h4gi/1701915021021/untitled-41.png" alt=""><figcaption></figcaption></figure>

* **Failure: Idle**: The condition for this branch is met when the conversation has been idle for more than 15 minutes. The Contact is sent a message that the conversation is closing because it has been idle, but they can open it again by sending a message.

<figure><img src="https://files.helpdocs.io/9e3syfbzn8/articles/55pq29h4gi/1701915055404/untitled-42.png" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
Once you have completed the setup and provided the AI Agent with appropriate Knowledge Sources, click **Save** and **Publish** to activate the Workflow. The AI Agent can now converse with Contacts when a Contact opens a conversation.
{% endhint %}


---

# 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.is-messenger.com/ismessenger/automate-conversations/how-to-maximize-customer-service-potential-with-ai-agent.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.
