Skip to Content

How to access memory from a variable in SAP CAI?

I'm trying to upset a variable in SAP CAI from another variable inside the memory e.g I have the following variables in the memory:

memory {

"tv": { "id": "001, "price":500}

"product": { "name":"tv", "price":500}


"product" comes from a skill where I previously asked the user which product want to eliminate from a shopping car. What I tried was this:

In EDIT MEMORY action in Unset memory field I put this:


But it doesn't work. Even I tried this :

{{memory.{{}}}} but neither.

I would be very grateful if someone could help me.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Jun 27 at 02:59 AM

    Hi Yesid, Currently CAI does not supports scripting and interpolation in unset memory field.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 26 at 10:27 AM

    UPDATE: The question was about "unset memory" action, where my answer does not apply as variables and scripting is not supported there. Sorry I missed that.


    Hi Yesid,

    you can make use of the "lookup" scripting helper here, e.g.

    {{lookup memory}}

    When {{}} will have the value "tv", this will be equivalent to {{}}.

    See documentation on the Scripting Syntax for details and especially here the section for Working with Objects.


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.