-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
I'm using this library to test my bot.
When I type something it gives me the following error:
I'm sure that I'm using the correct name of my bot.
NotFoundException: The specified resource 'BookTrip' does not exist. Choose another resource.
This is my code:
import React, { useEffect } from 'react';
import LexChat from 'react-lex';
import AWS from 'aws-sdk';
const ChatbotComponent = () => {
useEffect(() => {
AWS.config.update({
region: "us-west-2",
credentials: new AWS.CognitoIdentityCredentials({
IdentityPoolId: "<MY POOL ID HERE>"
})
});
}, []);
return (
<div>
<LexChat
botName="BookTrip"
IdentityPoolId="<MY POOL ID HERE>"
placeholder="Type something"
style={{position: 'absolute'}}
backgroundColor="#FFFFFF"
height={430}
region="us-west-2"
headerText="Chat with our bot" />
</div>
)
}
export default ChatbotComponent
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels