Skip to main content
AI services, such as Translation, Statistics, Sentiment analysis, backed by calls to Public Cloud providers.

Constructors

NSAIAgent()

Initializes a new instance of the NSAIAgent class.

Methods

DetectLanguage(String)

Given a (reasonably short) text, detect the language it is written in.
Returns: CRMScript.Global.String Example:

DetectSentiment(String)

Detect the sentiment of a (reasonably short) text. Sentiment analysis may cause a translation to be made, since sentiment analysis only supports a limited set of languages
Returns: CRMScript.NetServer.NSSentiment Example:

GetTrainingStatus()

Calling the HugoAI endpoint to fetch the current training status.
Returns: CRMScript.NetServer.NSCategorizationStatusResponse - Carrier to describe the current status of HugoAI categorization. Example:

GuessCategory(Integer)

Given a ticket’s ID, guess the ticket category it should be placed in.
Returns: CRMScript.Global.Integer - ticket category.
Currently this is based on the first message in the ticket.
Example:

TrainCategoryGuesser(Integer,Integer,Integer)

The category guesser training API will be called with an array of CategorizationTrainingItem during the (background, Batch) execution of this call.
Returns: CRMScript.Global.String Example:

Translate(String,String)

Translate a text from one language to another.
Returns: CRMScript.Global.String - translated text.
Language of the text is automatically detected.
Example: