Coder Social home page Coder Social logo

react-lex's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

react-lex's Issues

Add support for initial message

Right now the chatbot window just loads a blank chat screen waiting for user input. It would be cool to allow a phrase that I can pass as prop to the component as an initial greeting message to the user.

UI Header position shifts when bootstrap is imported

I'm building a react app to which I imported bootstrap v4.5 into my application. I noticed once I apply bootstrap styling, react-lex's header text is shifted down to the bottom of the header. How can I address this issue?

Please add the option to customize the header in additional to "style" attribute.

Screen Shot 2020-08-04 at 8 44 42 AM

Issue with the property "botName"

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

additional region Support

It would be nice if there where a posibility to change the region of lex (since lex launched in ireland recently)

wanted behaviour:

read out region from config file to connect to

current behaviour:

region us-east-1 is hard coded

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.