diff --git a/lib/tasks/cognigy/index.js b/lib/tasks/cognigy/index.js index f164282e..5d21b490 100644 --- a/lib/tasks/cognigy/index.js +++ b/lib/tasks/cognigy/index.js @@ -277,7 +277,7 @@ class Cognigy extends Task { this.logger.info({text}, 'received text'); this._enqueueTask(async() => { // todo inject the session config into the say task - const sayTask = this._makeSayTask(text); + const sayTask = this._makeSayTask({text}); await sayTask.exec(cs, ep, this); }); }