This package has been deprecated

Author message:

This package has been deprecated

@wapps/react-lex

0.0.16 • Public • Published

react-lex

Build Status

This is a React Amazon Lex interface. It provides a chatbot UI component that can be integrated in your website. The interface allows to interact with a Lex bot directly from a browser using text.

Example

import React from 'react';
import Lex from '@wapps/react-lex';

const App = () => (
  <Lex
    botName="BookTrip"
    identityPoolId="your pool id"
    initialText="Hello, what can I help you with?"
  />
);

export default App;

Live Demo

For a demo, check out https://hupe1980.github.io/wapps-components/

Installation

  • npm install --save @wapps/react-lex

Prerequisite

You must set up an AWS Cognito Federated Identity Pool and pass the IdentityPoolId as prop to the component. Make sure that access to unauthenticated identities is enabled and change the IAM roles to allow access to Amazon Lex by appending the AmazonLexRunBotsOnly and AmazonPollyReadOnlyAccess policies.

Dependents (0)

Package Sidebar

Install

npm i @wapps/react-lex

Weekly Downloads

13

Version

0.0.16

License

MIT

Unpacked Size

25.3 kB

Total Files

13

Last publish

Collaborators

  • hupe1980