What can you do with it?

Automatically categorize text, documents, or other content into predefined or custom categories. Useful for organizing data, routing requests, or analyzing content types. The command can either use your provided categories or intelligently create its own based on the content.

How to use it?

Basic Command Structure

/classification [content] [optional-parameters]

Parameters

Required:

  • content - The text or content to classify

Optional:

  • categories - List of possible categories or classification criteria (if not provided, AI will create appropriate categories)

  • file - File URL containing content to classify

Response Format

The command returns:

{
  "category_name": ["item1", "item2"],
  "another_category": ["item3", "item4"],
  "metadata": {
    "total_items": "number of items classified",
    "categories_created": "number of categories"
  }
}

Examples

Basic Usage

/classification
content: The product arrived damaged and customer service was unhelpful
categories: positive, negative, neutral

Classify customer feedback into sentiment categories.

Advanced Usage

/classification
content: I can't log into my account and need to reset my password
categories: billing, technical, account, feature request, other

Route support tickets to appropriate departments based on content.

Specific Use Case

/classification
content: $40 lunch with mom, $250 dinner with AcmeCo group, $12 present for cousin Jimmy, $1000 booth for Amazon Invent conference

Let AI automatically create categories (business/personal) for expense classification.

Notes

The classification command supports both predefined categories and automatic category generation. When categories are not specified, the AI will analyze the content and create appropriate groupings. Supports various content types including text, lists, and file inputs.