- Más nuevo
- Más votos
- Más comentarios
Hi,
Looks like you are not using Lex V2 endpoint (https://runtime-v2-lex.us-east-1.amazonaws.com/bot/botname/alias/aliasname/user/userid/text) as expected. In order to access Lex V2 Recognize Text API, you need to send a post request to the endpoint https://runtime-v2-lex.us-east-1.amazonaws.com//bots/botId/botAliases/botAliasId/botLocales/localeId/sessions/sessionId/text. I would recommend following this documentation closely to hit RecognizeText API through postman or any other http client.
Another option is to AWS CLI.
Sample command to hit RecognizeText API
aws lexv2-runtime recognize-text --bot-id “7TBXBYVXOE” --bot-alias-id “TSTALIASID” --locale-id “en_US” --session-id “test_123” --region us-east-1 --text “book hotel”
Related AWS CLI documentation can be found here
Hi,
One possibility is you may have created the bot using Lex V2 console which is the default interface for creating bots. And you are trying to access this bot through Lex V1 runtime APIs (https://runtime.lex.us-east-1.amazonaws.com/bot/botname/alias/aliasname/user/useid/text). Can you please try using Lex V2 runtime endpoint as documented here.
thanks for responding, I tried as you mentioned with this api url : https://runtime-v2-lex.us-east-1.amazonaws.com/bot/botname/alias/aliasname/user/userid/text and I got his now : { "Output": { "__type": "com.amazon.coral.service#UnknownOperationException" }, "Version": "1.0" }
Contenido relevante
- OFICIAL DE AWSActualizada hace 2 años
- OFICIAL DE AWSActualizada hace 2 años
- OFICIAL DE AWSActualizada hace 2 años
- OFICIAL DE AWSActualizada hace 8 meses
thanks so much, your response is the correct one