Task - storeEntitiesInContext will get the entities and store them in the ‘context’ before ending the task. Read further on using the context. The below example will illustrate anyway.
Task - checkEntitiesInContext will fetch the stored values from the context for further use.
Details
the script node - scrStoreEntities in storeEntitiesInContext task has the below code. This again impements what is explained in Using Session and Context Variables in Tasks - Kore.ai Documentation but in a variety of ways. Note that the below example uses both - BotUserSession and UserSession. Storing in both is possible but I would request you to understand the purpose of each before you use them.
//Setting E1 in BotUserSession
context.session.BotUserSession.myEnt1 = context.entities.E1;
BotUserSession.put("MyEnt2",context.entities.E2);//another way to set a variable
//Setting in UserSession
context.session.UserSession.myEnt3 = context.entities.E3;
//reset the entities; Not mandatory
context.entities.E1 = undefined;
context.entities.E2 = undefined;
context.entities.E3 = undefined;
In another task, checkEntitiesInContext, I am fetching the values stored in a simple message node. In plain-text {{flower}} notation is used to get the value and in JS mode, direct context.session.BotUserSession.KEY or BotUserSession.get("KEY") is used. NOTE - The Key or context variable name is case-sensitive
So, to conclude, before a task ends, one can put the entities/any collected/processed information in the right context variable to use it in other tasks of the bot.
This worked for our prospect customer!! However I think how you describe it is how has to be in the documentation. Sometimes the documentation is very general and assumes that the every user that read it will catch the solution and sometimes it’s not like that.
The clients that we are presenting and selling Kore in LATAM are not technical at all so we must show them that kore is easy to use and config like if you were using an iphone.
I will convey your feedback. However if one is building bots, as a part of onboarding we are providing self help academy as well as basic and advanced training. So far it has been adequate but I would agree that we can improve on the no code-low code aspects.