Tongyi-Xiaomi-Analysis specializes in information extraction from dialogues, scenario classification, and satisfaction analysis. It excels at handling complex quality inspection rules, supports custom analysis standards, and provides powerful multi-turn dialogue understanding and semantic reasoning.
Core features
- Information extraction: Automatically extracts key information from unstructured dialogues, such as time, location, product, issue description, and customer requests. Typical applications: Automating work order population, updating CRM customer information, and classifying and archiving issues.
- Scenario classification: Identifies the business scenario of a dialogue and supports custom scenario categories. Typical applications: Automatically routing dialogues to specialized teams, tracking inquiry volume by scenario, and optimizing service processes for specific scenarios.
- Satisfaction analysis: Determines customer satisfaction levels based on custom rules and supports multi-dimensional evaluation. Typical applications: Evaluating agent performance, monitoring service quality, and improving customer experience.
- Complex quality inspection: Supports complex quality inspection rules, including nested conditions and logical reasoning, to accurately enforce enterprise-specific standards. Typical applications: Performing quality inspections in highly regulated industries like finance and healthcare, checking multi-step business processes, and verifying compliance with complex scripts.
- Multi-turn dialogue understanding: Automatically connects context across turns to accurately resolve references and dependencies, grasping the user's true intent in a multi-turn exchange. Typical applications: Analyzing dialogues in complex business processes, understanding intent in long conversations, and extracting context-dependent information.
- Deep semantic understanding: Accurately identifies implied meanings, emotional tones, and subtext in a conversation. Typical applications: Monitoring customer sentiment, detecting potential complaints, and identifying sales opportunities.
Scope
- Supported regions: Only China (Beijing) is supported. You must use an API Key from this region.
- Supported languages: The conversation analysis models only support Chinese dialogues.
-
Supported models:
- tongyi-xiaomi-analysis-flash: Designed for structured analysis tasks such as information extraction and scenario classification. Suitable for low-latency online analysis and cost-sensitive offline tasks.
- tongyi-xiaomi-analysis-pro: Designed for complex logical reasoning and deep semantic understanding. Suitable for scenarios such as quality inspection with multi-condition nested rules and multi-turn dialogue analysis with strong contextual dependencies. Compared to the Flash model, it offers stronger reasoning and understanding but at a higher cost and latency.
- The models support implicit cache. Cache-hit tokens are billed according to the implicit cache billing rules.
Model selection
Use case | Recommended model | Model advantages | Recommendations |
|---|---|---|---|
Fast information extraction and scenario classification | tongyi-xiaomi-analysis-flash | Low latency and cost. Suitable for high-frequency, real-time calls. | Use for standardized extraction and classification tasks that do not involve complex reasoning. |
Standard quality inspection | tongyi-xiaomi-analysis-flash | Accurately understands dialogue semantics and sentiment, supports custom evaluation rules, and meets most quality inspection needs. | Use for quality inspection scenarios with clear rules. For complex business logic, use the pro model. |
Complex logical quality inspection | tongyi-xiaomi-analysis-pro | Stronger reasoning capabilities, supporting complex business rules such as nested conditions and contextual dependencies. | Higher cost than the flash model. Use for scenarios that require extremely high accuracy, such as finance and healthcare. |
In-depth multi-turn dialogue analysis | tongyi-xiaomi-analysis-pro | Stronger dialogue understanding capabilities, accurately understanding references and implied intent. | Use for scenarios that require a global understanding, such as post-sales ticket analysis and complaint root-cause analysis. |
Quick start
Usage suggestions
-
Standardize dialogue content format: Organize dialogue content in the format of
[Turn] Role: Content. Using a standard format helps the model parse the dialogue structure and accurately identify speaker roles, turn order, and contextual references. Example:
-
Write clear rules: Clear analysis rules are key to the model's accuracy. Vague or contradictory rules can lead to unexpected analysis results.
Tips for writing rules:
- Be specific and actionable: Avoid vague descriptions. For example, instead of "good service attitude," use "responded promptly and used polite language."
- Define priorities: When there are multiple rules, define their priorities and execution order to resolve potential conflicts and ensure the model can make a clear judgment.
- Provide positive and negative examples: Include positive and negative examples in your rules to help the model accurately understand the evaluation criteria.
- Use special markers for key terms: When a business term has a definition that differs from its common understanding, use a special marker (such as an abbreviation) to replace the term. This prevents the model from interpreting it based on general knowledge.
-
Set API parameters: Conversation analysis tasks typically require deterministic and accurate results. Use the following parameter settings:
temperature: Set to0.0so the model returns the same result for the same input every time, ensuring analysis consistency.top_k: Set to1so the model always selects the highest-probability token, avoiding randomness.
-
Control the output format: To ensure parsable and controllable analysis results, specify the output format in the
prompt. If necessary, provide an output example.
Code examples
Prerequisites: Obtain an API Key. If you use an SDK, install the latest version of the SDK.
- OpenAI-compatible
- DashScope
Feature examples
Each feature example provides runnable content. To try out a feature, replace the content in the code sample.
- Dialogue information extraction
- Scenario classification
- Satisfaction analysis
- Complex quality inspection
- Multi-turn dialogue understanding
- Deep semantic understanding
- Automatic ticket system population
- CRM customer information updates
- Problem classification and archiving
content example: