Skip to content

Commit 0bf34e2

Browse files
author
Pedro Teixeira
committed
Merged PR 3023: Fix for intents from linked skills not being triggered.
Fix for intents from linked skills not being triggered. The code was trying to load the intent from the *current* bot instead of the linked skill, so it would never be able to execute it (in some cases it could execute the *wrong* intent if the current bot would have one intent with the same name!) Cherry picked from !3022 Related work items: #5398
1 parent cccd4af commit 0bf34e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

service/core-service/src/main/java/com/hutoma/api/logic/chat/IntentProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public boolean processIntent(final ChatRequestInfo chatInfo,
8484

8585
chatResult.getChatState().restartChatWorkflow(false);
8686

87-
ApiIntent intent = this.intentHandler.getIntent(chatInfo.getAiid(), currentIntent.getName());
87+
ApiIntent intent = this.intentHandler.getIntent(aiidForMemoryIntents, currentIntent.getName());
8888
if (!canExecuteIntent(intent, chatResult)) {
8989
if (Strings.isNullOrEmpty(intent.getConditionsFallthroughMessage())) {
9090
return false;

0 commit comments

Comments
 (0)