I finally got the time to try upgrading from 2.4 to 2.5 and have found an difference that is breaking a lot of what I have in place for intent handling because it is getting multiple intent messages for the same session.
I am using slot files for handling list of things but I want the intent to return the value with a specific entity name. Instead I get two intent responses, one with the name I want and one with the slot list name. In 2.4 I used to only get the single response for the entity “info”.
An example below the common/whatsubject file has a list of things my nodered system knows about and can answer and for the what intent I want it to merely respond with intent as what and a slot for what info is asked for.
[What]
question = (what | whats | what is | whats the | what is the)
($common/whatsubject {info}) is it [in ($common/room) {room}] [please]
[please] tell me [] [is] [the] ($common/whatsubject {info}) [in ($common/room) {room}] [is]
[the] ($common/whatsubject {info}) [in ($common/room) {room}] [please]
($common/whatsubject {info}) [please]
($common/whatsubject {info}) in ($common/room) {room} [please]
how ((hot | cold | warm | cool) {info:temperature}) is it [in ($common/room) {room}] [please]
how ((humid) {info:humidity}) is it [in ($common/room) {room}] [please]
This returns two intent messages in MQTT one with entity value common/whatsubject and one with entity info. Everything else is pretty much the same, including session ids etc.
An example below if I ask “What is the date”
hermes/intent/What {“input”: “what is the date”, “intent”: {“intentName”: “What”, “confidenceScore”: 1.0}, “siteId”: “Room7”, “id”: “2f92a4c0-76c3-474c-83c3-6e0353c07020”, “slots”: [{“entity”: “common/whatsubject”, “value”: {“kind”: “Unknown”, “value”: “date”}, “slotName”: “info”, “rawValue”: “date”, “confidence”: 1.0, “range”: {“start”: 12, “end”: 16, “rawStart”: 12, “rawEnd”: 16}}], “sessionId”: “2f92a4c0-76c3-474c-83c3-6e0353c07020”, “customData”: null, “asrTokens”: [[{“value”: “what”, “confidence”: 1.0, “rangeStart”: 0, “rangeEnd”: 4, “time”: null}, {“value”: “is”, “confidence”: 1.0, “rangeStart”: 5, “rangeEnd”: 7, “time”: null}, {“value”: “the”, “confidence”: 1.0, “rangeStart”: 8, “rangeEnd”: 11, “time”: null}, {“value”: “date”, “confidence”: 1.0, “rangeStart”: 12, “rangeEnd”: 16, “time”: null}]], “asrConfidence”: null, “rawInput”: “what is the date”, “wakewordId”: null, “lang”: null}
hermes/intent/What {“input”: “what is the date”, “intent”: {“intentName”: “What”, “confidenceScore”: 1.0}, “siteId”: “Room7”, “id”: “2f92a4c0-76c3-474c-83c3-6e0353c07020”, “slots”: [{“entity”: “info”, “value”: {“kind”: “Unknown”, “value”: “date”}, “slotName”: “info”, “rawValue”: “date”, “confidence”: 1, “range”: {“start”: 12, “end”: 16, “rawStart”: 12, “rawEnd”: 16}}], “sessionId”: “2f92a4c0-76c3-474c-83c3-6e0353c07020”, “customData”: null, “asrTokens”: [[{“value”: “what”, “confidence”: 1.0, “rangeStart”: 0, “rangeEnd”: 4, “time”: null}, {“value”: “is”, “confidence”: 1.0, “rangeStart”: 5, “rangeEnd”: 7, “time”: null}, {“value”: “the”, “confidence”: 1.0, “rangeStart”: 8, “rangeEnd”: 11, “time”: null}, {“value”: “date”, “confidence”: 1.0, “rangeStart”: 12, “rangeEnd”: 16, “time”: null}]], “asrConfidence”: null, “rawInput”: “what is the date”, “wakewordId”: null, “lang”: null}
Does anyone have any ideas, or has something changed in the definition of the sentences structure?
