NLU Extras Module

Hie folks. Dead simple question, how do we use the nlu extras module. I would love to connect Dialogflow until the native nlu has been debugged to a reasonable level of usability for huge datasets containing subtle changes per question.

@spgin @jbperron @EFF @sylvain @allardy @alex

Okay from what I got in the config.schema.json I edited the nlu-extras.json as follows.

{
  "$schema": "../../assets/modules/nlu-extras/config.schema.json",
  "primary": "'dialogflow-nlu'",
  "DialogflowConfig": {
    "enabled": true,
    "projectId": "dialogflow-chatbot-projectid",
    "serviceAccountEmail": "serviceaccount@chatbot.com",
    "serviceAccountPrivateKey": "blahBlah123"
  }
}

Of course I put the correct entries and cannot disclose them on this forum. What I wanna know id if I left out something here and the next steps I need to take to actually connect to dialogflow.

I am using Botpress 12.2.2 on a small talk bot.

@spgin I noticed that you seem to be the author of this module. Please, how do things work here?\

Hie folks. Still got my ears to the ground

Hey, I created a small guide for you here: https://drive.google.com/file/d/1SblpXM0G_QIUJdzSTRqB2dF78jXHSzVd/view?usp=sharing

Thank you for the guide. I followed it to the letter and was able to integrate Dialogflow. However, when I checked how my new Dialogflow agent was trained I noticed that the intents did not have responses. I am running Botpress 12.4.1 on Windows Server 2012 & Dialogflow API V2. My Botpress QnA has 293 questions

This is just a snippet of the errors I am getting:

10:49:48.216 DialogJanitor Skipping the current run, previous operation still running
10:49:53.722 LogDbPersister Error persisting messages [TimeoutError, Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?]
STACK TRACE
TimeoutError: Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?
    at Object.assign.acquireConnection.Bluebird.try.then.catch (C:\snapshot\build-windows\node_modules\knex\lib\client.js:345:17)
    at tryCatcher (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\util.js:16:23)
    at module.exports (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\catch_filter.js:17:41)
    at tryCatcher (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\util.js:16:23)
    at Promise.module.exports.Promise._settlePromiseFromHandler (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\promise.js:547:31)
    at Promise.module.exports.Promise._settlePromise (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\promise.js:604:18)
    at Promise.module.exports.Promise._settlePromise0 (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\promise.js:649:10)
    at Promise.module.exports.Promise._settlePromises (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\promise.js:725:18)
    at _drainQueueStep (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\async.js:93:12)
    at _drainQueue (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\async.js:86:9)
    at Async._drainQueues (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\async.js:102:5)
    at Immediate.Async.drainQueues [as _onImmediate] (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\async.js:15:14)
    at runCallback (timers.js:696:18)
    at tryOnImmediate (timers.js:667:5)
    at processImmediate (timers.js:649:5)
    at process.topLevelDomainCallback (domain.js:121:23)
10:49:58.216 DialogJanitor Skipping the current run, previous operation still running
10:50:08.216 DialogJanitor Skipping the current run, previous operation still running
10:50:08.218 DialogJanitor Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?
10:50:14.039 Launcher Unhandled Rejection [TimeoutError, Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?]
STACK TRACE
TimeoutError: Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?
    at Object.assign.acquireConnection.Bluebird.try.then.catch (C:\snapshot\build-windows\node_modules\knex\lib\client.js:345:17)
    at tryCatcher (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\util.js:16:23)
    at module.exports (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\catch_filter.js:17:41)
    at tryCatcher (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\util.js:16:23)
    at Promise.module.exports.Promise._settlePromiseFromHandler (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\promise.js:547:31)
    at Promise.module.exports.Promise._settlePromise (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\promise.js:604:18)
    at Promise.module.exports.Promise._settlePromise0 (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\promise.js:649:10)
    at Promise.module.exports.Promise._settlePromises (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\promise.js:725:18)
    at _drainQueueStep (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\async.js:93:12)
    at _drainQueue (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\async.js:86:9)
    at Async._drainQueues (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\async.js:102:5)
    at Immediate.Async.drainQueues [as _onImmediate] (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\async.js:15:14)
    at runCallback (timers.js:696:18)
    at tryOnImmediate (timers.js:667:5)
    at processImmediate (timers.js:649:5)
    at process.topLevelDomainCallback (domain.js:121:23)
10:50:28.216 DialogJanitor Skipping the current run, previous operation still running
10:50:38.217 DialogJanitor Skipping the current run, previous operation still running
10:50:43.333 Launcher Unhandled Rejection [TimeoutError, Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?]
STACK TRACE
TimeoutError: Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?
    at Object.assign.acquireConnection.Bluebird.try.then.catch (C:\snapshot\build-windows\node_modules\knex\lib\client.js:345:17)
    at tryCatcher (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\util.js:16:23)
    at module.exports (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\catch_filter.js:17:41)
    at tryCatcher (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\util.js:16:23)
    at Promise.module.exports.Promise._settlePromiseFromHandler (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\promise.js:547:31)
    at Promise.module.exports.Promise._settlePromise (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\promise.js:604:18)
    at Promise.module.exports.Promise._settlePromise0 (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\promise.js:649:10)
    at Promise.module.exports.Promise._settlePromises (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\promise.js:725:18)
    at _drainQueueStep (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\async.js:93:12)
    at _drainQueue (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\async.js:86:9)
    at Async._drainQueues (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\async.js:102:5)
    at Immediate.Async.drainQueues [as _onImmediate] (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\async.js:15:14)
    at runCallback (timers.js:696:18)
    at tryOnImmediate (timers.js:667:5)
    at processImmediate (timers.js:649:5)
    at process.topLevelDomainCallback (domain.js:121:23)
10:50:44.039 Launcher Unhandled Rejection [TimeoutError, Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?]
STACK TRACE
TimeoutError: Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?
    at Object.assign.acquireConnection.Bluebird.try.then.catch (C:\snapshot\build-windows\node_modules\knex\lib\client.js:345:17)
    at tryCatcher (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\util.js:16:23)
    at module.exports (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\catch_filter.js:17:41)
    at tryCatcher (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\util.js:16:23)
    at Promise.module.exports.Promise._settlePromiseFromHandler (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\promise.js:547:31)
    at Promise.module.exports.Promise._settlePromise (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\promise.js:604:18)
    at Promise.module.exports.Promise._settlePromise0 (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\promise.js:649:10)
    at Promise.module.exports.Promise._settlePromises (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\promise.js:725:18)
    at _drainQueueStep (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\async.js:93:12)
    at _drainQueue (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\async.js:86:9)
    at Async._drainQueues (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\async.js:102:5)
    at Immediate.Async.drainQueues [as _onImmediate] (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\async.js:15:14)
    at runCallback (timers.js:696:18)
    at tryOnImmediate (timers.js:667:5)
    at processImmediate (timers.js:649:5)
    at process.topLevelDomainCallback (domain.js:121:23)
10:50:48.216 DialogJanitor Skipping the current run, previous operation still running
10:50:53.732 LogDbPersister Error persisting messages [TimeoutError, Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?]
STACK TRACE
TimeoutError: Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?
    at Object.assign.acquireConnection.Bluebird.try.then.catch (C:\snapshot\build-windows\node_modules\knex\lib\client.js:345:17)
    at tryCatcher (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\util.js:16:23)
    at module.exports (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\catch_filter.js:17:41)
    at tryCatcher (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\util.js:16:23)
    at Promise.module.exports.Promise._settlePromiseFromHandler (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\promise.js:547:31)
    at Promise.module.exports.Promise._settlePromise (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\promise.js:604:18)
    at Promise.module.exports.Promise._settlePromise0 (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\promise.js:649:10)
    at Promise.module.exports.Promise._settlePromises (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\promise.js:725:18)
    at _drainQueueStep (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\async.js:93:12)
    at _drainQueue (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\async.js:86:9)
    at Async._drainQueues (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\async.js:102:5)
    at Immediate.Async.drainQueues [as _onImmediate] (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\async.js:15:14)
    at runCallback (timers.js:696:18)
    at tryOnImmediate (timers.js:667:5)
    at processImmediate (timers.js:649:5)
    at process.topLevelDomainCallback (domain.js:121:23)
10:50:58.218 DialogJanitor Skipping the current run, previous operation still running
10:51:08.218 DialogJanitor Skipping the current run, previous operation still running
10:51:14.039 Launcher Unhandled Rejection [TimeoutError, Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?]
STACK TRACE
TimeoutError: Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?
    at Object.assign.acquireConnection.Bluebird.try.then.catch (C:\snapshot\build-windows\node_modules\knex\lib\client.js:345:17)
    at tryCatcher (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\util.js:16:23)
    at module.exports (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\catch_filter.js:17:41)
    at tryCatcher (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\util.js:16:23)
    at Promise.module.exports.Promise._settlePromiseFromHandler (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\promise.js:547:31)
    at Promise.module.exports.Promise._settlePromise (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\promise.js:604:18)
    at Promise.module.exports.Promise._settlePromise0 (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\promise.js:649:10)
    at Promise.module.exports.Promise._settlePromises (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\promise.js:725:18)
    at _drainQueueStep (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\async.js:93:12)
    at _drainQueue (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\async.js:86:9)
    at Async._drainQueues (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\async.js:102:5)
    at Immediate.Async.drainQueues [as _onImmediate] (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\async.js:15:14)
    at runCallback (timers.js:696:18)
    at tryOnImmediate (timers.js:667:5)
    at processImmediate (timers.js:649:5)
    at process.topLevelDomainCallback (domain.js:121:23)
10:51:18.218 DialogJanitor Skipping the current run, previous operation still running
10:51:18.219 DialogJanitor Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?
10:51:20.150 Mod[analytics] Error running update: Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?
10:51:38.231 DialogJanitor Skipping the current run, previous operation still running
10:51:44.039 Launcher Unhandled Rejection [TimeoutError, Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?]
STACK TRACE
TimeoutError: Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?
    at Object.assign.acquireConnection.Bluebird.try.then.catch (C:\snapshot\build-windows\node_modules\knex\lib\client.js:345:17)
    at tryCatcher (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\util.js:16:23)
    at module.exports (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\catch_filter.js:17:41)
    at tryCatcher (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\util.js:16:23)
    at Promise.module.exports.Promise._settlePromiseFromHandler (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\promise.js:547:31)
    at Promise.module.exports.Promise._settlePromise (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\promise.js:604:18)
    at Promise.module.exports.Promise._settlePromise0 (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\promise.js:649:10)
    at Promise.module.exports.Promise._settlePromises (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\promise.js:725:18)
    at _drainQueueStep (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\async.js:93:12)
    at _drainQueue (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\async.js:86:9)
    at Async._drainQueues (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\async.js:102:5)
    at Immediate.Async.drainQueues [as _onImmediate] (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\async.js:15:14)
    at runCallback (timers.js:696:18)
    at tryOnImmediate (timers.js:667:5)
    at processImmediate (timers.js:649:5)
    at process.topLevelDomainCallback (domain.js:121:23)
10:51:48.232 DialogJanitor Skipping the current run, previous operation still running
10:51:53.749 LogDbPersister Error persisting messages [TimeoutError, Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?]
STACK TRACE
TimeoutError: Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?
    at Object.assign.acquireConnection.Bluebird.try.then.catch (C:\snapshot\build-windows\node_modules\knex\lib\client.js:345:17)
    at tryCatcher (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\util.js:16:23)
    at module.exports (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\catch_filter.js:17:41)
    at tryCatcher (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\util.js:16:23)
    at Promise.module.exports.Promise._settlePromiseFromHandler (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\promise.js:547:31)
    at Promise.module.exports.Promise._settlePromise (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\promise.js:604:18)
    at Promise.module.exports.Promise._settlePromise0 (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\promise.js:649:10)
    at Promise.module.exports.Promise._settlePromises (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\promise.js:725:18)
    at _drainQueueStep (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\async.js:93:12)
    at _drainQueue (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\async.js:86:9)
    at Async._drainQueues (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\async.js:102:5)
    at Immediate.Async.drainQueues [as _onImmediate] (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\async.js:15:14)
    at runCallback (timers.js:696:18)
    at tryOnImmediate (timers.js:667:5)
    at processImmediate (timers.js:649:5)
    at process.topLevelDomainCallback (domain.js:121:23)
10:51:58.232 DialogJanitor Skipping the current run, previous operation still running
10:52:08.231 DialogJanitor Skipping the current run, previous operation still running
10:52:14.051 Launcher Unhandled Rejection [TimeoutError, Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?]
STACK TRACE
TimeoutError: Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?
    at Object.assign.acquireConnection.Bluebird.try.then.catch (C:\snapshot\build-windows\node_modules\knex\lib\client.js:345:17)
    at tryCatcher (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\util.js:16:23)
    at module.exports (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\catch_filter.js:17:41)
    at tryCatcher (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\util.js:16:23)
    at Promise.module.exports.Promise._settlePromiseFromHandler (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\promise.js:547:31)
    at Promise.module.exports.Promise._settlePromise (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\promise.js:604:18)
    at Promise.module.exports.Promise._settlePromise0 (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\promise.js:649:10)
    at Promise.module.exports.Promise._settlePromises (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\promise.js:725:18)
    at _drainQueueStep (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\async.js:93:12)
    at _drainQueue (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\async.js:86:9)
    at Async._drainQueues (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\async.js:102:5)
    at Immediate.Async.drainQueues [as _onImmediate] (C:\snapshot\build-windows\node_modules\knex\node_modules\bluebird\js\release\async.js:15:14)
    at runCallback (timers.js:696:18)
    at tryOnImmediate (timers.js:667:5)
    at processImmediate (timers.js:649:5)
    at process.topLevelDomainCallback (domain.js:121:23)
10:52:18.232 DialogJanitor Skipping the current run, previous operation still running
10:52:28.236 DialogJanitor Skipping the current run, previous operation still running
10:52:28.238 DialogJanitor Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?

No answers