on 2021 Jun 09 1:48 PM
Dear Colleagues, I have a SAP Conversational AI Skill-based bot, and I am trying to create a different Chatbot action between when
- the intent is triggered because the user typed something (e.g. I want product documents about product X).
- the intent is triggered because the user clicked on a Postback button that activated the intent (e.g. click on the button "product documents product X").
I cannot find anything in the JSON code that differentiates these 2 behaviors to be used in the skill conditions: would anyone know of a way to do this? (just as a clarification: skill-trigger buttons are not an available option in this case).
Thank you in advance for any help you can give us
Request clarification before answering.
Just curious -- what different action are you taking?
As for the issue, I wouldn't expect any differentiation since essentially the user or the button are doing the same thing. I imagine you could try:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Daniel, thank you for your questions: let's go in order
Hi Daniel, if there's nothing in the available structures in Memory that determines whether a button was clicked, the only possible - but not perfect - solution could be to put all the previous buttons' postback-value into an array and on every statement coming in checking whether nlp.source is found identically in that array. but there's two problems with that:
- the user could have typed exactly the same string as one of the postback-values
- (even worse:) buttons do not disappear, so the user could scroll up and push a button from a message from three days ago (teams!), and you probably would not want to build an array with all the postback-values ever offered.
i would agree with Giacomo, it would be great if we could access information about events, like which button in which message was clicked and so on...
regards
matthias
User | Count |
---|---|
75 | |
21 | |
8 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.