cancel
Showing results for 
Search instead for 
Did you mean: 

Store button input in memory SAP Conversational AI

leilabenhariz
Explorer
0 Kudos

Hi there,

I am currently building a chatbot that implements user input to return some information from a backend service based on the user responses. The user searches for a business partner name, and an API returns information related to the partner.

If a user is presented with a list of buttons, I need to store their button choice in memory so that it can be searched for in the API URL. So if there are 4 buttons, and the user selects button 3, I need to store the value of button 3 in memory to complete the task in the chatbot.

This is how the button is created using scripting syntax.

Any help would be greatly appreciated.

View Entire Topic
Dan_Wroblewski
Developer Advocate
Developer Advocate
0 Kudos

Couple of possible ways:

  • If instead of quick replies you trigger different skills for each button, then each of those skills could store some indicator that that skill was triggered.
  • If you use quick replies, you can get the message that was sent to the NLP by using the script {{nlp.source}}

leilabenhariz
Explorer
0 Kudos

For some reason, nlp.source is not taking in the button response to memory, just any previous text input from the user. I can't seem to capture the user button choice at all.