diff --git a/packages/botkit/src/conversation.ts b/packages/botkit/src/conversation.ts index 0f0cc8ab4..79af1d90b 100644 --- a/packages/botkit/src/conversation.ts +++ b/packages/botkit/src/conversation.ts @@ -857,6 +857,15 @@ export class BotkitConversation extends Dialog { } // copy all the values in channelData fields + if (line.channelData && Object.keys(line.channelData).length > 0) { + const channelDataParsed = this.parseTemplatesRecursive(JSON.parse(JSON.stringify(line.channelData)), vars); + + outgoing.channelData = { + ...outgoing.channelData, + ...channelDataParsed + }; + } + for (const key in line.channelData) { outgoing.channelData = this.parseTemplatesRecursive(JSON.parse(JSON.stringify(line.channelData)), vars) }