Define boolean intent precondition

Hi,

I would like to know if at the beginning of a session, it is possible to inject a custom boolean variable via API or webSDK to use it in the user session as a precondition or rule for the activation of an intent triggering a dialog task. To illustrate the expected behaviour:

  • intentA is detected and variable1 is false, dialog task1 is triggered.
  • intentZ is detected and variable1 is false, dialogue taskN is triggered.
  • any of the intentsA-Z is detected but variable1 is true, dialogue taskN+1 is triggered

If so, could you please describe the steps to follow and functionalities needed to do this?

So far, following the steps described in the Kore.ai Web SDK Tutorial, it has been possible to both pass customData and custom Meta Tags via webSDK, but not to associate them and use their values as a precondition or rule to trigger a dialog task associated with an intent.

Thanks in advance.

Hi @mna,

Apologies for the delay in response.

Please let us know if you have used the context variables for this use-case.

https://developer.kore.ai/docs/bots/bot-builder-tool/dialog-task/using-session-and-context-variables-in-tasks/

Kindly let us know if you need any further clarification on the above.

Regards,
Yoga Ramya