userId for Amazon Lex

0

A project I'm going to be working on will be utilizing Amazon Lex exclusively for the purposes of intent matching. Looking at the docs for PostText, I can see that we're required to send a userId to Lex in order to use this method. For our use-case we don't really care about the conversational capabilities of Lex, so we have a few options as to how we could approach the userId field:

  1. Just use a global userId that every single lex query would have
  2. Generate a random userId each time we query lex
  3. Generate a userId per specific user of our system and use that each time that user queries lex

My gut feeling is that approach 3 is probably the "correct" way of doing this but maintaining an id for our users may be cumbersome if we don't have to do it. Between these three approaches what makes the most sense for our use-case? Thanks!

Nathan
已提問 7 個月前檢視次數 56 次
沒有答案

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

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

回答問題指南