We are using Generic HTTP(S)/JSON Connector to connect to custom endpoint. The problem is that our bot requires an empty message for initialization. This is essential to properly start conversation.
Possible solution
This is relatively easy to fix. Additional condition can be added to check if SIMPLEREST_INIT_TEXT is an empty string. Here is the block of code with applied suggestion:
if (this.caps[Capabilities.SIMPLEREST_INIT_TEXT] || this.caps[Capabilities.SIMPLEREST_INIT_TEXT] === "")
It solved the problem for me. And in case SIMPLEREST_INIT_TEXT property is not present at botium.json configuration file at all - the condition won't evaluate and everything remains the same.
Could you add this modification to SimpleRestContainer.js?
Drawback
This would probably require some modification for Botium Box, so that Initial conversation text
field could tell the difference between an empty text and null (maybe additional checkBox).
We are using Generic HTTP(S)/JSON Connector to connect to custom endpoint. The problem is that our bot requires an empty message for initialization. This is essential to properly start conversation.
Possible solution This is relatively easy to fix. Additional condition can be added to check if SIMPLEREST_INIT_TEXT is an empty string. Here is the block of code with applied suggestion:
if (this.caps[Capabilities.SIMPLEREST_INIT_TEXT] || this.caps[Capabilities.SIMPLEREST_INIT_TEXT] === "")
It solved the problem for me. And in case SIMPLEREST_INIT_TEXT property is not present at botium.json configuration file at all - the condition won't evaluate and everything remains the same.Could you add this modification to SimpleRestContainer.js?
Drawback This would probably require some modification for Botium Box, so that Initial conversation text field could tell the difference between an empty text and null (maybe additional checkBox).