> For the complete documentation index, see [llms.txt](https://docs.maiagent.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.maiagent.ai/maiagent-user-guide/maiagent-user-guide-en/application/voicecs/ivr-intent-recognition.md).

# IVR Customer Service Intent Recognition

**IVR (Interactive Voice Response) Customer Service Intent Recognition** refers to a technology application that combines AI voice processing technology, allowing users to interact with customer service systems through voice commands and automatically recognizing customer intent to provide corresponding services. In Taiwan, such systems are widely used in banking, telecommunications, healthcare, and other industries to improve service efficiency and customer experience.

## **Core Features and Process**

1. **Receive Voice Input**\
   After the customer calls, the system plays an automated voice menu (e.g., "Please briefly describe your needs, and we will provide assistance."). The customer does not need to press buttons to select options but instead directly expresses their needs through voice.
2. **Speech Recognition (ASR)**\
   The system uses Automatic Speech Recognition technology to convert speech into text. For example, if the customer says "I want to check my bill", the system converts the content into text input.
3. **Natural Language Understanding (NLU)**\
   The system uses Natural Language Understanding technology to analyze semantics and determine the user's actual needs. For example:
   * Vocabulary analysis: Keywords like "check" and "bill" indicate the need is related to billing.
   * Intent recognition: Determines the customer's purpose is to "check bill".
4. **Response and Routing**\
   The system provides corresponding services based on semantic analysis results, with the following possible options:
   * **Direct Response**: If the need can be handled automatically, e.g., "Your bill amount is NT$1,200, and the payment deadline is December 15th."
   * **Transfer to Agent**: If the need is more complex, the system automatically transfers to the corresponding department's customer service representative while providing a semantic summary to reduce redundant communication.

## **Technical Challenges and Limitations**

1. **Difficulty Understanding Diverse Expressions**
   * Users' language expressions may be non-standard, e.g., "What's going on with my bill?" or "What about the payment issue?" — such semantics can be somewhat ambiguous, and models like BERT sometimes <mark style="color:red;">**cannot precisely determine specific needs**</mark>.
   * In Taiwan, there is also the challenge of multi-language and multi-dialect mixing (Mandarin, Taiwanese, Hakka), and language model support for these languages is still insufficient.
2. **Limitations in Intent Granularity**
   * While modern NLP models can handle large volumes of text data, they cannot fully master specialized knowledge or unique intents in certain industries. For example, "I want to know the specific date of my last payment" may require connecting to different systems to answer correctly.
   * Even though BERT handles shorter conversation fragments well, long sentences or complex semantic expressions can confuse the model.
3. **Data Bias and Incomplete Corpora**
   * Training language models <mark style="color:red;">**requires massive localized corpora**</mark>. If data is insufficient or biased toward a single expression pattern, the model's adaptability to special contexts will be inadequate. For example, Taiwan-specific language habits like "top-up" or "skip number" may lack sufficient contextual corpora in the model.
4. **Context and Memory Limitations**
   * Customer conversations typically have contextual relevance, e.g., "About the payment mentioned earlier, I have another question" — such multi-turn conversations require the system to remember previous intents. Current NLP models have limited performance in this area.
   * If intent determination is wrong, users may have to restate their needs, causing frustration.
5. **Low Error Tolerance**
   * Customers have limited patience with customer service systems. If the voice system makes incorrect determinations, customers may become frustrated and ultimately request to speak with a human agent.

## Industry Status

Currently, many enterprises' voice customer service systems still use traditional button-based selection processes. Taking **SinoPac Bank's voice customer service system** as an example, its design thoroughly considers business diversity, providing multi-level menu options to guide users. However, there is still significant room for optimization and improvement in user interaction experience.

The emergence of LLM (Large Language Models) and RAG (Retrieval-Augmented Generation) has brought revolutionary changes to semantic recognition and the overall IVR system, making voice customer service systems smarter, more precise, and more adaptive, overcoming many limitations of traditional NLP technologies.

{% embed url="<https://bank.sinopac.com/MMA8/bank/service/cs-phonecall.html>" %}

<figure><img src="/files/4pp4Nzmfl8HCt2ZjhWrW" alt="" width="563"><figcaption></figcaption></figure>

## Solution

The following will guide you step by step through building a powerful semantic recognition assistant using MaiAgent's robust and precise LLM and RAG capabilities.

### Steps

#### 1. Data Preparation

{% hint style="info" %}
In the past, BERT required large amounts of labeled data for NLP tasks (such as intent recognition, sentiment analysis, etc.). Labeled data was typically created manually — for example, annotating sentences with intent categories or keywords — which was both time-consuming and expensive. Even with high-quality labeled data, the model's generalization ability was insufficient. When business needs or usage habits changed, the model needed to be re-labeled and retrained, which was a lengthy process.

The advantage of LLM and RAG is that they can fully combine generative language capabilities with the dynamic nature of real-time retrieval, eliminating dependence on labeled data, improving semantic recognition accuracy, reducing development and maintenance costs, and greatly improving user experience. This technology combination sets new industry standards for intelligent customer service and voice interaction, and is a key driver for future automation and personalized services.
{% endhint %}

The introduction of LLM and RAG has greatly simplified the labeled data preparation process. Now, you simply need to organize data into an Excel spreadsheet, list the intent categories, and upload this **banking customer service list** to the MaiAgent AI assistant's knowledge base to support the intelligent semantic recognition system.

<figure><img src="/files/W0EJmahukRqK9GwpjIxj" alt=""><figcaption><p>Banking service list (for intent recognition)</p></figcaption></figure>

#### **2. Define Role Instructions**

```markdown
# Role
You are MaiAgent Bank's semantic understanding robot.

# Output Format
Based on the user's conversation, understand the customer's desired service intent, determine the user's desired service intent from the knowledge base, and output it.

When the intent is clear, output only one intent; if there are multiple similar intents that cannot be distinguished, list up to 3 of the closest intents.

<example>
-<Code>:<Category> - <Subcategory>
</example>

<example>
-<Code>:<Category> - <Subcategory>
-<Code>:<Category> - <Subcategory>
...
</example>

<example>
N/A
</example>

# Output Restrictions
- Reply in Traditional Chinese
- Do not answer questions outside the knowledge base scope
- Output only the text within <example> and </example>, do not include other descriptions
- Output should not include <example> and </example>
- Answer based on knowledge base data; if unable to determine intent, use the text within the <example> below
```

#### 3. Start Using

### Usage Examples

#### Single-Turn Conversation

<figure><img src="/files/uPfsX0No0WwYwGcxamuB" alt=""><figcaption><p>Intent recognition example</p></figcaption></figure>

#### Multi-Turn Conversation

LLM and RAG technology resolves the bottleneck of multi-turn conversation intent recognition that was difficult with BERT.

<figure><img src="/files/Bq7kSbyJvLgx2KS3SQzE" alt=""><figcaption><p>Intent recognition multi-turn conversation example</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.maiagent.ai/maiagent-user-guide/maiagent-user-guide-en/application/voicecs/ivr-intent-recognition.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
