AI_CLASSIFY (Beta)
Applies to: ✅ Data 360 SQL ❌ Tableau Hyper API
Analyzes text and classifies it into the best matching category from a list of categories you define.
<input_text>: The text to classify.<input_categories>: A text array of categories with at least one unique value. An empty category list results in theInput categories cannot be emptyvalidation error message.
After analyzing the input_text, returns the category with the highest confidence score from the input_categories.
- The
input_categoriesparameter must be constant across all rows in the query. input_textmust be a non-NULL value. AddNON_NULLto theWHEREclause in your SQL statement to avoidNULLvalue errors.- Function requests time out after 30 seconds.
Classify issues in an automobile repair center based on the type of issue.
Returns:
| issuesIdentified__c | category |
|---|---|
| Electrical system failure causing intermittent starting and dashboard warnings | Electrical |
| Shock absorber replacement due to oil leakage and poor ride quality | Chassis |
| Engine overheating issue traced to failed radiator and thermostat replacement | Engine |
| Exhaust system repair and catalytic converter replacement | Engine |
| Steering system malfunction requiring tie rod and power steering pump replacement | Chassis |
Returns only the rows matching the defined classification.
Returns all reported vehicle issues related to the engine.