0.0.16 • Published 6 years ago

@wapps/react-lex v0.0.16

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

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.

0.0.16

6 years ago

0.0.15

6 years ago

0.0.14

6 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago