cancel
Showing results for 
Search instead for 
Did you mean: 

Using Dynamic memory in SAP Conversational AI

04-07-2021 12:09 PM
862 views 2 comments Go to solution
SAP Managed Tags
Subscribe

Hi,

I am trying to pass Order Id to API service for that I am storing Order Id in memory and pass it to API body, but only first value is displayed memory vales are not changing according to new input how to use dynamic memory ?

Image showing different Order Id giving same output

Image showing Memory storage

Image showing using memory value in Action

Accepted Solutions (1)

Accepted Solutions (1)

dtephan
Advisor
Advisor
0 Likes

Hi Ajeya,

the skill requirements are currently designed in a way that already present memory information takes priority over new information. Meaning for the above case, the "OrderId" is already present from the first input therefore "#order-id" will not replace the existing value. With that approach it is possible to have multiple requirements that ask for the same entity type - e.g. departure and arrival location for a book-flight skill etc.

However, to resolve the situation it might make sense to clear certain memory fields at the end of a skill, if it is clear that they are not needed anymore. Add a new action - "update conversation" -> "edit memory" and there use the "unset memory field" to clear "OrderId".

Best regards,
Stephan

former_member731675
Participant
0 Likes

Hi Stephan,

Thanks for the answer

Answers (0)