diff --git a/packages/botkit/src/conversation.ts b/packages/botkit/src/conversation.ts index 0f0cc8ab4..bc518d8c6 100644 --- a/packages/botkit/src/conversation.ts +++ b/packages/botkit/src/conversation.ts @@ -962,7 +962,7 @@ export class BotkitConversation extends Dialog { const index = step.index; const thread_name = step.thread; const result = step.result; - const response = result.text || (typeof (result) === 'string' ? result : null); + const response = result == null ? null : (result.text || (typeof (result) === 'string' ? result : null)); // spawn a bot instance so devs can use API or other stuff as necessary const bot = await this._controller.spawn(dc);