This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// USE THIS CODE, COMPLETE, IN A COGNIGY.AI 'NLU CONNECTOR' OF TYPE 'COGNIGY', FOR THE 'TRANSFORMER FUNCTIONS': | |
// BE SURE TO 'ENABLE POST NLU TRANSFORMER' IN THE NLU CONNECTOR CONFIG, ABOVE THE SOURCE CODE: | |
createNluTransformer({ | |
/** | |
* This transformer is executed when receiving the output from the | |
* NLU engine, before executing the Flow. | |
* | |
* @param text The text from the message. |