Skip to content

Instantly share code, notes, and snippets.

View peternann's full-sized avatar

Peter Nann peternann

View GitHub Profile
@peternann
peternann / CognigyNLUTransformer.js
Created April 5, 2020 11:18
Cognigy integration with Amazon Connect/Lex via Cognigy.AI Transformers
// 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.