lex latest version not displayed in slack

0
  1. I have created a lex bot and integrated with Slack.
  2. changed few slots in lex, saved the intent, build it and published it.
  3. When i check it from slack, i am still getting the older version of lex.
  4. How to solve this?
已提問 2 年前檢視次數 242 次
1 個回答
0

Hello,

  • Generally speaking, this scenario can occur when sending a postText call, then update botAlias, then sending another postText using the same session (session did not expire yet) as the first postText call. Then, the second postText call will point to the version before making putBotAlias call.

  • This is an expected behavior, because a user can't have two independent conversations with two different versions of the same bot.

https://docs.aws.amazon.com/lex/latest/dg/API_runtime_PostText.html

A user can't have two independent conversations with two different versions of the same bot. For example, a user can't have a conversation with the PROD and BETA versions of the same bot. If you anticipate that a user will need to have conversation with two different versions, for example, while testing, include the bot alias in the user ID to separate the two conversations.

Note:- Please note that when we create an alias for the specified version of the bot or replace an alias for the specified bot(even from console), a “PutBotAlias” API call[1] is logged in the CloudTrail event history.



  • The only way session information can be removed is either to wait for the session timeout limit[2] to breach, or by making the DeleteSession API [3] call.

  • Amazon Lex retains context information—slot data and session attributes—until a conversation session ends. To control how long a session lasts for a bot, we set the session timeout. By default, session duration is 5 minutes, but we can specify any duration between 0 and 1,440 minutes (24 hours). Apart from that, DeleteSession API call would remove session information for a specified bot, alias, and user ID.



In your specific case, I would request you to please create a support case with our team for investigating the API calls that are being made from your account to confirm the returned version response/behavior.

Please do not post any sensitive information over re:Post since this is a public platform.



References:

[1] PutBotAlias - https://docs.aws.amazon.com/lex/latest/dg/API_PutBotAlias.html

[2] Setting the Session Timeout - https://docs.aws.amazon.com/lex/latest/dg/context-mgmt-session-timeout.html

[3] DeleteSession - https://docs.aws.amazon.com/lex/latest/dg/API_runtime_DeleteSession.html

profile pictureAWS
支援工程師
Yash_C
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南