我的 chatBot 应用程序中有一个流程,我在其中切换工作区,它给了我 SpelEvaluationException 错误。
我有一个确定客户端初始缩进的路由器工作区,一旦我知道最初的意图,我会将下一个请求路由到适当的工作区
Workspace Router :
Bot :- Hey this is an awesome bot, what do you need help with
1. Apples
2. Bananas
3. Oranges
Client :- I need help with my apples
--- I pass a custom JSON from the workspace with tells my app to route next request to apples workspace ----
Apple Workspace :
BOT: Hey what can I help you in apples .
流程工作正常,但是当我向 Apples 工作区发送请求时。我在 log_message 中收到以下错误。
SpelEvaluationException when evaluating dialog node ID [node_2_1517933972148]. The syntax of condition [intents[0].confidence < 0.50] is valid, but cannot be evaluated. Check that objects in expression are not null or out of bounds.\nSpEL evaluation error: EL1025E: The collection has '0' elements, index '0' is invalid\n