kind: AdaptiveDialog beginDialog: kind: OnRecognizedIntent id: main intent: displayName: Ask About Expenses includeInOnSelectIntent: false triggerQueries: - What is the expenses policy? actions: # 1. Greeting - kind: SendMessage id: sendMessage_expensepilotGreeting message: This is the expense pilot! # 2. Ask for employee number and store in Global.employeeNumber - kind: Question id: question_employeeNumber interruptionPolicy: allowInterruption: true variable: init:Global.employeeNumber prompt: What is your employee number? # Use StringPrebuiltEntity or NumberPrebuiltEntity depending on how you # configured the question in the GUI. entity: NumberPrebuiltEntity # 3. Confirm the employee number (yes/no) - kind: Question id: question_confirmEmployeeNumber interruptionPolicy: allowInterruption: true variable: init:Topic.employeeNumberConfirmed prompt: "Can you confirm that your employee number is {Global.employeeNumber}?" # In the GUI this will be "Multiple choice options". # Here we use a Boolean entity for a simple true/false condition. entity: BooleanPrebuiltEntity # 4. Branch on confirmation - kind: ConditionGroup id: condition_employeeNumberConfirmed conditions: # YES branch: set System.User.Language = English - id: cond_employeeNumberYes condition: =Topic.employeeNumberConfirmed = true actions: - kind: SetVariable id: setVariable_userLanguage variable: System.User.Language value: English # NO branch (everything else): end the conversation/topic elseActions: - kind: EndDialog id: endDialog_employeeNotConfirmed clearTopicQueue: true inputType: {} outputType: {}