# Trigger a classification

Source: https://developer.avalara.com/products/self-serve-tariff-code/integration-guides/classyvue-integration-guide/fmv9501025054163/

Guide: ClassyVue integration guide

# Trigger a classification

Triggering a classification starts the interactive disambiguation flow in the ClassyVue widget. Learn how to call `ccce.classify()` with the product description and classification parameters to retrieve a tariff code.

Once the widget is initialised, call `ccce.classify()` to start a classification. The function accepts a parameters object, a success callback, and an optional abort callback. The parameters object defines the product to classify, the destination country, the language, and the classification mode.

Pass the product description and classification parameters to `ccce.classify()` as follows:

```
functionclassify() {
  ccce.classify(
    {
      product: 'cotton t-shirt',  // product name or descriptiondestination: 'US',          // ISO-2 country codeorigin: 'IN',               // ISO-2 country of originlang: 'EN-US',              // UI languageuseKeyboard: true,
      hs6: false,
      importMode: false// false = export schedule (Schedule B / CN)
    },
    onClassifyComplete,           // success callback
    onClassifyAbort               // cancel callback
  );
}
```

For a full list of supported parameters and their default values, see [Classify( ) parameters](/classyvue-integration-guide/fje2963599331856/ "Reference information for the parameters accepted by ccce.classify(), including the product description, destination country, classification mode, and callback functions.").

-   **[Classify( ) parameters](/classyvue-integration-guide/fje2963599331856/)**  
    Reference information for the parameters accepted by `ccce.classify()`, including the product description, destination country, classification mode, and callback functions.