diff --git a/packages/bot-engine/continueBotFlow.ts b/packages/bot-engine/continueBotFlow.ts index 4a7717c0b..3f31296e6 100644 --- a/packages/bot-engine/continueBotFlow.ts +++ b/packages/bot-engine/continueBotFlow.ts @@ -408,9 +408,8 @@ const getOutgoingEdgeId = const parseReply = (state: SessionState) => async (reply: Reply, block: InputBlock): Promise => { - if (typeof reply !== 'string') { - if (block.type !== InputBlockType.FILE || !reply) - return { status: 'fail' } + if (reply && typeof reply !== 'string') { + if (block.type !== InputBlockType.FILE) return { status: 'fail' } if (block.options?.visibility !== 'Public') { return { status: 'success',