Context Variables

Every skill user has his own dedicated storage — Context. Skill can save user’s variables into context, get them from context or modify them. There are special actions for context operations:

  • set saves variable into context;
  • hasContext checks if variable exists in context;
  • compareContext can compare variables, existing in context.

Also, skill can use all context variables in TWIG-expressions in corresponding actions.

Example:

actions:
  - sendText: 'My variable value is: '

Context is based on user’s amazon ID, and is persistent forever.


Written by Andrey Esaulov on 12 March 2019

Updated on 12 March 2019