Related Topics
ML and AI Custom Variables
Process Director v5.0 and higher supports custom variables for Machine Learning (ML) and Artificial Intelligence (AI) services. Some of the services are provided by third parties, and require external accounts to access those services, while others are integral to Process Director.
The Google sentiment service can analyze text submissions for the sentiment the text expresses. Passing a text string to the Google Sentiment service submits it for analysis, and the Service returns a double-precision number that ranges from -1.00 to 1.00. A value of 0 is a neutral sentiment. A negative value indicates negative sentiment, while a positive value indicates a positive sentiment. The closer to -1.00 or 1.00 the return value is, the more intense the sentiment expressed. For instance, a return value of 0.85 is a very positive sentiment.
Required Variables
To configure Process Director for the Google Sentiment service, the custom variables below must be configured:
This string variable contains the your private key for the Google Sentiment service. This value is provided to you by Google.
This string variable contains the email address you used as the client email address for the Google Sentiment service.
Optional Variables
This string variable contains the Project ID for the Google Sentiment service. This value is provided to you by Google.
GoogleSentiment_private_key_id
This string variable contains the Private Key ID for the Google Sentiment service. This value is provided to you by Google.
This string variable contains the Client ID for the Google Sentiment service. This value is provided to you by Google.
GoogleSentiment_client_x509_cert_url
This string variable contains the URL you used as the x509 Client Certificate for the Google Sentiment service.
Example
public override void SetSystemVars(BPLogix.WorkflowDirector.SDK.bp bp)
{
//The following vars are required:
bp.Vars.GoogleSentiment_private_key = @"YourPrivateKey";
bp.Vars.GoogleSentiment_client_email = "email@address.com";
//The following vars are optional:
bp.Vars.GoogleSentiment_project_id = "YourProjectID";
bp.Vars.GoogleSentiment_private_key_id = "YourPrivateKeyID";
bp.Vars.GoogleSentiment_client_id = "YourClientID";
bp.Vars.GoogleSentiment_client_x509_cert_url =
"https://YourClientCertURL.com";
}
Documentation Feedback and Questions
If you notice some way that this document can be improved, we're happy to hear your suggestions. Similarly, if you can't find an answer you're looking for, ask it via feedback. Simply click on the button below to provide us with your feedback or ask a question. Please remember, though, that not every issue can be addressed through documentation. So, if you have a specific technical issue with Process Director, please open a support ticket.