You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

how to know intent name in dialog flow

edited May 17, 2020 7:30PM in Digital Assistant & Mobile 8 comments

Summary

Switching to the intent after converting intent to lower case

Content

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.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!