In Cognigy 2025.25.0, transformers will start using the axios library for handling HTTP requests internally instead of request-promise. This change occurs to improve security and maintainability. The following HTTP request options will still be supported:
- URL configuration —
uri, url
- Request method —
method
- Request headers and configuration —
headers
- Request body —
form, json
- Query parameters —
qs, qsStringifyOptions
- Authentication —
auth
- Connection and network —
proxy, maxRedirects, gzip, encoding
If you use other HTTP request options, review your transformer code to ensure it is compatible with the axios library before the release of Cognigy 2025.25.0.
The Execution Finished Transformer converts the Flow output after a Flow execution has finished. The return value of the execution finished transformer is sent to the Endpoint. This transformer applies only to REST-based Endpoints using the output transformer.
You can configure the execution finished transformer in the handleExecutionFinished function in the Endpoint settings or via CLI.
The following table shows an overview of the function arguments:
Endpoint Configuration Object
endpoint Object Properties
Return Values
The return value of the execution finished transformer depends on the Endpoint type you are using. There is no validation of the execution finished transformer return value. If the execution finished transformer returns a falsy value, the output isn’t sent to the Endpoint.
The execution finished transformer takes the outputs array from the output transformer and sends it to the Endpoint. For example, if you’re using the execution finished transformer in a REST Endpoint, the return value format must meet the REST Endpoint response format (text, data, userId, sessionId).
Here is an example of the correct return format for a REST Endpoint:
Last modified on August 18, 2026