Bixby 如何保留先前 NL 输入的数据?

How does Bixby retain data from a previous NL input?

我不明白 Bixby 保留以前 NL 输入数据的方式。以下示例使用胶囊 capsule-sample-shirt.

  1. 我首先使用 NL 输入 find 2 medium shirts 来获取衬衫列表。
  2. 我点击了其中的任何一个(这里我使用 Collar Dress Shirt),然后 Bixby 询问我是否要购买它。
  3. 我单击 ,Bixby 通知我好的,我不会那样做
  4. 我现在立即 运行 再次输入相同的 NL find 2 medium shirts 并期待 Bixby 再次向我展示衬衫列表,就像第一次一样。 Bixby 现在没有预期的衬衫清单,而是再次问我 Are you sure you want to buy this? with the Collar Dress Shirt 我之前已选中。

为什么 Bixby 第二次不显示衬衫列表 find 2 medium shirts 作为 NL 输入?需要做什么才能使 Bixby 在第一次后显示带有此 NL 输入的列表?

NL 输入后的衬衫列表: Bixby 等待确认: Bixby 说它取消了提示: Bixby 不显示列表,而是立即要求确认:

这是关于 Bixby 的 AI 部分。

没有按下 reset 键的每个对话(话语)都被认为是上一个话语(如果有的话)的延续。因此选择 Collar Dress 并取消它,但稍后再次要求找到 2 件中号衬衫,Bixby 将尝试 fill-in 用户最后选择的空白。

一个明显的问题是现在没有办法改变衬衫的类型,除非重置,但是修复很容易,让衬衫的图像可以点击并且link 视图模型中的操作 Confirmation.view.bxb

                image-card {
                  aspect-ratio (4:3)
                  image-url ("[#{value(item.shirt.images[0].url)}]")
                  title-area {
                    halign (Start)
                    slot1 {
                      text {
                        value ("")
                        style (Title_M)
                      }
                    }
                  }
                  // Add on-click here 
                }

您可以添加on-click类似于更改尺寸和数量

                    input-cell {
                      label ("Quantity")
                      value ("#{value(item.quantity)}")
                      on-click {
                        //This intent relies on searchTerm matching the item which is not a good practice, a better approach
                        //was to allow an ID as input to SelectItem and use `this.id` in the intent
                        intent {
                          goal {
                            UpdateOrder
                            @context (Continuation) { Order }
                          }
                          value { SearchTerm$expr(item.shirt.title) }
                          route { GetQuantity }
                        }
                      }
                    }

您可能需要添加其他模型才能正确提升用户。

希望这对您有所帮助,祝您使用 Bixby 愉快!