diff --git a/packages/bot-engine/src/apiHandlers/continueChat.ts b/packages/bot-engine/src/apiHandlers/continueChat.ts index 4952c4f7a..f5f2de590 100644 --- a/packages/bot-engine/src/apiHandlers/continueChat.ts +++ b/packages/bot-engine/src/apiHandlers/continueChat.ts @@ -69,12 +69,14 @@ export const continueChat = async ({ lastMessageNewFormat, visitedEdges, setVariableHistory, - } = await autoContinueChatIfStartingWithInput({ - message, - chatReply, - textBubbleContentFormat, - version: 2, - }); + } = !session.state.currentBlockId + ? await autoContinueChatIfStartingWithInput({ + message, + chatReply, + textBubbleContentFormat, + version: 2, + }) + : chatReply; if (newSessionState) await saveStateToDatabase({