diff --git a/packages/botkit/src/conversation.ts b/packages/botkit/src/conversation.ts index c3b5eb914..ca496f2eb 100644 --- a/packages/botkit/src/conversation.ts +++ b/packages/botkit/src/conversation.ts @@ -865,6 +865,11 @@ export class BotkitConversation extends Dialog { }; } + // copy user ID from vars (in order to have it in send middleware) + if (!outgoing.user && vars && vars.user) { + outgoing.user = vars.user; + } + /*******************************************************************************************************************/ // Handle template token replacements if (outgoing.text) {