Context.entity value available in separate task?


(Trevor Brown) #1

If a set a value of an entity in one task how can I make available in separate tasks?


(Yoga Ramya Mendu) #2

Hi @trevor.brown,

Please refer the following documentation links for more information on sharing data across dialogs:

https://developer.kore.ai/docs/bots/how-tos/context-switching/#Sharing_content_across_intents

https://developer.kore.ai/docs/bots/bot-builder-tool/dialog-task/working-with-the-dialog-node/

Let us know if you need any further clarification.

Regards,
Yoga Ramya.


(Subrahmanyam Donepudi) #3

@trevor.brown Say at Task 1 you are capturing the inputs for entities. You could store these values into a session variables by adding a script node after entities or at the end of task 1. Further,
at task 2, create a script node at the beginning of the task to set the values of all the entities as needed by utilizing the session variables which are available in the context.