how to know intent name in dialog flow
Summary
Switching to the intent after converting intent to lower caseContent
Hi,
I am creating a skill using ODA. we have multiple intent on the same. to make more versatile I am converting intent to lower case before doing anything in dialogflow.
after taking backup of query I am converting intent to lower case
backupQuery:
component: "System.SetVariable"
properties:
variable: "originalQuery"
value: "${iResult.value.query}"
transitions:
next: "setIntentToLowerCase"
setIntentToLowerCase:
component: "System.SetVariable"
properties:
variable: "iResult"
value: "${iResult.value.query?lower_case}"
transitions:
next: "intentWithLowerCase"
intentWithLowerCase:
component: "System.Intent"
properties:
variable: "iResult"
sourceVariable: "iResult"
transitions:
actions:
CheckOrgAccess: "startResolving"
here at the last line I have hardcoded my intent name "CheckOrgAccess" but if I havemultiple intent how can i handle here. Is there anyway to access intent name programmatically inside the dialog flow. i want to reuse this conversion part of code for every intent.