Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with the property "botName" #3

Open
emmanuel-cbqa opened this issue Mar 24, 2020 · 1 comment
Open

Issue with the property "botName" #3

emmanuel-cbqa opened this issue Mar 24, 2020 · 1 comment

Comments

@emmanuel-cbqa
Copy link

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.

BotError

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

@AlexWang-16
Copy link

AlexWang-16 commented Jul 24, 2020

Hi @emmanuel-cbqa your issue is coming from the IdentityPoolId not being configured. You must setup a Cognito User Pool and Identity Pool for use with the chatbot.

Use this guide from AWS to set it up, then copy the pool Id into where it says <MY POOL ID HERE>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants