From 88b3456e2824ae1f1fa8e55188e16d5e9f1ecffd Mon Sep 17 00:00:00 2001 From: Stephen Okpalaononuju Date: Thu, 13 Jun 2024 16:53:37 +0100 Subject: [PATCH] ch: console log capturedChannelAttributes --- functions/channelCapture/chatbotCallback.protected.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/functions/channelCapture/chatbotCallback.protected.ts b/functions/channelCapture/chatbotCallback.protected.ts index 9f21a615..154b4199 100644 --- a/functions/channelCapture/chatbotCallback.protected.ts +++ b/functions/channelCapture/chatbotCallback.protected.ts @@ -129,10 +129,12 @@ export const handler = async ( const capturedChannelAttributes = channelAttributes.capturedChannelAttributes as CapturedChannelAttributes; + console.log('capturedChannelAttributes is here', capturedChannelAttributes); + const lexResult = await lexClient.postText(context, { - botName: capturedChannelAttributes.botName, - botAlias: capturedChannelAttributes.botAlias, - userId: capturedChannelAttributes.userId, + botName: capturedChannelAttributes?.botName, + botAlias: capturedChannelAttributes?.botAlias, + userId: capturedChannelAttributes?.userId, inputText: Body, });