diff --git a/packages/botkit/src/conversation.ts b/packages/botkit/src/conversation.ts index 998ab3902..4fd2e70e9 100644 --- a/packages/botkit/src/conversation.ts +++ b/packages/botkit/src/conversation.ts @@ -967,7 +967,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);