> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# NSCategorizationStatusResponse

> Carrier to describe the current categorization training status for a tenant in HugoA. Carrier object for CategorizationStatusResponse.

Carrier to describe the current categorization training status for a tenant in HugoA. Carrier object for CategorizationStatusResponse.

## Constructors

### NSCategorizationStatusResponse()

```crmscript theme={null}
NSCategorizationStatusResponse
```

Initializes a new instance of the NSCategorizationStatusResponse class.

## Methods

## GetContextIdentifier()

```crmscript theme={null}
String GetContextIdentifier()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Context-identifier to identify customer.

**Example:**

```crmscript theme={null}
NSCategorizationStatusResponse thing;
String contextIdentifier = thing.GetContextIdentifier();
```

## GetCurrentModel()

```crmscript theme={null}
NSCategorizationModelDetails GetCurrentModel()
```

**Returns:** [CRMScript.NetServer.NSCategorizationModelDetails](CRMScript.NetServer.NSCategorizationModelDetails) - Current model information.

**Example:**

```crmscript theme={null}
NSCategorizationStatusResponse thing;
NSCategorizationModelDetails currentModel = thing.GetCurrentModel();
```

## GetPreviousModel()

```crmscript theme={null}
NSCategorizationModelDetails GetPreviousModel()
```

**Returns:** [CRMScript.NetServer.NSCategorizationModelDetails](CRMScript.NetServer.NSCategorizationModelDetails) - Previous model information.

**Example:**

```crmscript theme={null}
NSCategorizationStatusResponse thing;
NSCategorizationModelDetails previousModel = thing.GetPreviousModel();
```

## GetStatus()

```crmscript theme={null}
String GetStatus()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Determines if a training is running, finished, or unavailable.

**Example:**

```crmscript theme={null}
NSCategorizationStatusResponse thing;
String status = thing.GetStatus();
```

## SetContextIdentifier(String)

```crmscript theme={null}
Void SetContextIdentifier(String contextIdentifier)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSCategorizationStatusResponse thing;
String contextIdentifier;
thing.SetContextIdentifier(contextIdentifier);
```

## SetCurrentModel(NSCategorizationModelDetails)

```crmscript theme={null}
Void SetCurrentModel(NSCategorizationModelDetails currentModel)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSCategorizationStatusResponse thing;
NSCategorizationModelDetails currentModel;
thing.SetCurrentModel(currentModel);
```

## SetPreviousModel(NSCategorizationModelDetails)

```crmscript theme={null}
Void SetPreviousModel(NSCategorizationModelDetails previousModel)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSCategorizationStatusResponse thing;
NSCategorizationModelDetails previousModel;
thing.SetPreviousModel(previousModel);
```

## SetStatus(String)

```crmscript theme={null}
Void SetStatus(String status)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSCategorizationStatusResponse thing;
String status;
thing.SetStatus(status);
```


## Related topics

- [NSAIAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSAIAgent.md)
- [Namespace CRMScript.NetServer](/en/automation/crmscript/reference/CRMScript.NetServer.md)
- [SuperOffice.WebApi.Data.CategorizationStatusResponse](/en/api/reference/webapi/SuperOffice.WebApi.Data.CategorizationStatusResponse.md)
- [Categorization](/en/ai/learn/categorization.md)
- [Automate lead categorization](/en/lead/admin/category-automation.md)
- [SuperOffice.WebApi.Agents.AIAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.AIAgent.md)
