I'm working on integration of react app with aws Lex Chatbot,
I have followed the manual process specified in this doc's - https://aws-amplify.github.io/docs/js/interactions
And each and every-time, when i send a message, I'm getting triggered with following error message
ERROR: Unhandled Rejection (MissingRequiredParameter): Missing required key 'userId' in params
Can someone pls help me with this...
This is the way i'm sending my request
Amplify.configure({
Auth: {
identityPoolId: 'us-east-1:xxxx-xxxx',
region: 'US_EAST_1',
},
Interactions: {
bots: {
"Chatbot": {
"name": "Chatbot",
"alias": "Bot1",
"region": "US_EAST_1",
},
},
}
});
Component:
<ChatBot
title="My Bot"
theme={myTheme}
botName="Chatbot"
welcomeMessage="Welcome, how can I help you today?"
onComplete={this.handleComplete.bind(this)}
clearOnComplete={true}
conversationModeOn={true}
/>