From e43f156c346e6d9a0e864a0b1e191319539e4845 Mon Sep 17 00:00:00 2001 From: Anil Maktala Date: Fri, 17 May 2024 15:45:56 -0400 Subject: [PATCH] modified to use bot-alias-name instead of bot-name --- .../add-aws-services/interactions/chatbot/index.mdx | 4 ++-- .../interactions/set-up-interactions/index.mdx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/[platform]/build-a-backend/add-aws-services/interactions/chatbot/index.mdx b/src/pages/[platform]/build-a-backend/add-aws-services/interactions/chatbot/index.mdx index 6c8044c5779..08590736ca0 100644 --- a/src/pages/[platform]/build-a-backend/add-aws-services/interactions/chatbot/index.mdx +++ b/src/pages/[platform]/build-a-backend/add-aws-services/interactions/chatbot/index.mdx @@ -37,7 +37,7 @@ const userInput = "I want to reserve a hotel for tonight"; // Provide a bot name and user input const response = await Interactions.send({ - botName: "TheBotName", + botName: "TheBotAliasName", message: userInput }); @@ -53,7 +53,7 @@ You can use `onComplete()` method to register a function to catch errors or chat import { Interactions } from '@aws-amplify/interactions'; Interactions.onComplete({ - botName: "TheBotName", + botName: "TheBotAliasName", callback: (error?: Error, completion?: {[key: string]: any}) => { if (error) { alert('bot conversation failed'); diff --git a/src/pages/[platform]/build-a-backend/add-aws-services/interactions/set-up-interactions/index.mdx b/src/pages/[platform]/build-a-backend/add-aws-services/interactions/set-up-interactions/index.mdx index ee19f87cb82..72d26fc7b79 100644 --- a/src/pages/[platform]/build-a-backend/add-aws-services/interactions/set-up-interactions/index.mdx +++ b/src/pages/[platform]/build-a-backend/add-aws-services/interactions/set-up-interactions/index.mdx @@ -108,7 +108,7 @@ Amplify.configure({ ...Amplify.getConfig(), Interactions: { LexV2: { - '': { + '': { aliasId: '', botId: '', localeId: '',