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

Amazon Lex 2 #7662

Closed
wcomicho opened this issue Jan 28, 2021 · 20 comments
Closed

Amazon Lex 2 #7662

wcomicho opened this issue Jan 28, 2021 · 20 comments
Labels
feature-request Request a new feature Interactions Related to Interactions category

Comments

@wcomicho
Copy link

wcomicho commented Jan 28, 2021

Does Amplify support Amazon Lex version 2?

Was able to use version 1 of Amazon Lex using AWS Amplify React using Interactions library but not able to do so with the same setup for Amazon Lex version 2.

Sharing some code below that is working on version 1 but not in version 2:

Amplify.configure({
Auth: {
identityPoolId: 'us-east-1:mypoolidhere',
region: 'us-east-1'
},
Interactions: {
bots: {
"Test": {
"name": "Test",
"alias": "Test",
"region": "us-east-1",
},
}
}
});

<AmplifyChatbot

botName="Test"
botTitle="Test"
welcomeMessage="Hello, how can I help you?"

/>

Appreciate your help on this.

Thanks

@kaustavghosh06 kaustavghosh06 transferred this issue from aws-amplify/amplify-hosting Feb 1, 2021
@wlee221 wlee221 added feature-request Request a new feature Interactions Related to Interactions category labels Feb 1, 2021
@wcomicho
Copy link
Author

Hi,

Usually, how fast to these feature requests get implemented? Do you accept volunteers as testers?

Thanks
Wil

@gino8080
Copy link

gino8080 commented Aug 3, 2021

please we need LEX2 compability

@howdyhyber
Copy link

Hello, is this already available?

@thefat32
Copy link
Contributor

thefat32 commented Sep 15, 2021

Deleted - Amplify added official support for Lex2

1 similar comment
@thefat32
Copy link
Contributor

thefat32 commented Sep 18, 2021

Deleted - Amplify added official support for Lex2

@jeroenmeulendijks
Copy link

Although its nice that a third-party has invested his/her time in supporting V2. It would be better if this is supported by default from AWS. What will be the timeline on supporting Lex V2 ??

@thefat32
Copy link
Contributor

I totally agree with @jeroenmeulendijks

@sammartinez
Copy link
Contributor

Hey folks, I wanted to provide an update here. We are looking to add this support of Lex 2. However, at this time, it's looking to be early next year, 2022, that this will be worked on. We will provide more details in the coming weeks around this. Thanks for using Amplify !!

@ramit21
Copy link

ramit21 commented Jan 23, 2022

Any update on this please?

@MattJColes
Copy link

Would be keen for official LEX v2 support also

@wcheek
Copy link

wcheek commented Jun 17, 2022

Still not implemented? Seems a long time coming..

@abdallahshaban557
Copy link
Contributor

@MattJColes and @wcheek - would love to understand a bit more what your use cases are, and why you would need support for Amazon Lex v2.

@wcheek
Copy link

wcheek commented Jun 20, 2022

@abdallahshaban557
Lex v2 is promoted as the newest version of the Lex service - why would I use v1 instead? V2 has been available for over a year. I spent a lot of time developing a chatbot using the v2 framework. It's unreasonable to ask me now to 'downgrade' just because Amplify doesn't support the newest version of an AWS service.

@abdallahshaban557
Copy link
Contributor

@wcheek - totally get that. We wanted to see if there are pieces of functionality that you are looking for that we do not have APIs exposed for other than upgrading to Lex V2.

@larsrnielsenus
Copy link

larsrnielsenus commented Jun 28, 2022

@abdallahshaban557 - this will probably come off in a wrong way but wasn't meant to: should there be an API functionality needed before you support the next version of already supported AWS services? More than a year of lead time seems slow.

@shridhar-tl
Copy link

Any updates on this? I have already built a bot using Lex v2. But now not able to find any option to integrate it with application. I was looking for some similar component to integrate rather than deploying a cloudformation template and spinup loads of resources like S3 bucket, Lambda, Cloud Front, Code build, etc, etc.

I am referring to the outcome of running cloudformation template from following article: https://aws.amazon.com/blogs/machine-learning/deploy-a-web-ui-for-your-chatbot/. This appears to be too much for what is expected.

@ashwinkumar6
Copy link
Member

ashwinkumar6 commented Aug 2, 2022

Hey folks,
We're working on adding API support for Lex V2.

The usage will be as follows

import { Amplify, Interactions } from 'aws-amplify';
import { AWSLexV2Provider } from '@aws-amplify/interactions';

Interactions.addPluggable(new AWSLexV2Provider());

const interactionsConfig = {
    Auth: {
        identityPoolId: "<identityPoolId>",
        region: "<region>"
    },
    Interactions: {
        bots: {
            my_v1_bot: { // default provider "AWSLexProvider"
                name: "my_v1_bot",
                alias: "$LATEST",
                region: "<region>",
            },
            my_v2_bot: {
                name: "my_v2_bot",
                aliasId: "<aliasId>",
                botId: "<botId>",
                localeId: "<localeId>",
                region: "<region>",
                providerName: "AWSLexV2Provider",
            },
        }
    }
}

Amplify.configure(interactionsConfig);

@elorzafe
Copy link
Contributor

elorzafe commented Sep 6, 2022

@wcomicho @gino8080 @howdyhyber @thefat32 @MattJColes @jeroenmeulendijks @shridhar-tl @larsrnielsenus @ramit21
Amplify JS now supports Lex V2 (aws-amplify@4.3.34), as @ashwinkumar6 mentioned you can use Lex V2 on JS library like this.

import { Amplify, Interactions } from ‘aws-amplify’;
import { AWSLexV2Provider } from @aws-amplify/interactions’;
Interactions.addPluggable(new AWSLexV2Provider());
const interactionsConfig = {
    Auth: {
        identityPoolId: <identityPoolId>,
        region: <region>
    },
    Interactions: {
        bots: {
            my_v1_bot: { // default provider “AWSLexProvider”
                name: “my_v1_bot”,
                alias: “$LATEST”,
                region: <region>,
            },
            my_v2_bot: {
                name: “my_v2_bot”,
                aliasId: <aliasId>,
                botId: <botId>,
                localeId: <localeId>,
                region: <region>,
                providerName: “AWSLexV2Provider”,
            },
        }
    }
}
Amplify.configure(interactionsConfig);

Big Kudos to @thefat32 and @ashwinkumar6 for their contribution! 🎉 🎖️

@elorzafe elorzafe closed this as completed Sep 6, 2022
@xvimnt
Copy link

xvimnt commented Oct 25, 2022

@wcomicho @gino8080 @howdyhyber @thefat32 @MattJColes @jeroenmeulendijks @shridhar-tl @larsrnielsenus @ramit21 Amplify JS now supports Lex V2 (aws-amplify@4.3.34), as @ashwinkumar6 mentioned you can use Lex V2 on JS library like this.

import { Amplify, Interactions } from ‘aws-amplify’;
import { AWSLexV2Provider } from @aws-amplify/interactions’;
Interactions.addPluggable(new AWSLexV2Provider());
const interactionsConfig = {
    Auth: {
        identityPoolId: <identityPoolId>,
        region: <region>
    },
    Interactions: {
        bots: {
            my_v1_bot: { // default provider “AWSLexProvider”
                name: “my_v1_bot”,
                alias: “$LATEST”,
                region: <region>,
            },
            my_v2_bot: {
                name: “my_v2_bot”,
                aliasId: <aliasId>,
                botId: <botId>,
                localeId: <localeId>,
                region: <region>,
                providerName: “AWSLexV2Provider”,
            },
        }
    }
}
Amplify.configure(interactionsConfig);

Big Kudos to @thefat32 and @ashwinkumar6 for their contribution! 🎉 🎖️

Somebody knows how can I use this inside a react component?

@tannerabread
Copy link
Contributor

tannerabread commented Oct 25, 2022

@xvimnt
What is the reason for trying to configure Amplify inside of a react component?
It is recommended you add the Amplify configuration step to your app's root entry point (App.js)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request a new feature Interactions Related to Interactions category
Projects
None yet
Development

No branches or pull requests