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

Unable to get maxPrompts to working

edited Mar 18, 2019 6:40AM in Digital Assistant & Mobile 2 comments

Summary

maxPrompts property doesn't seem to be working in my flow.

Content

Hi everyone,
I tried using maxPrompts with System.Text component and expected it to restrict the number of prompts. To my surprise, it didn't work.
Attaching the screenshot and the BotML here. Please suggest changes if any.

BotML:

states:
  resetCountry:
    component: "System.ResetVariables"
    properties:
      variableList: "greeting"
    transitions: 
      next: "readCountry"
  readCountry:
    component: "System.Text"
    properties:
      variable: "greeting"
      prompt: "Please enter your country:"
      maxPrompts: 3
    transitions:
      actions:
        cancel: "nomatch"    
      next: "matchCountry"

  matchCountry:
    component: "System.MatchEntity"
    properties:
      sourceVariable: "greeting"
      variable: "country"
    transitions:
      actions:
        match: "textOutput"
        nomatch: "resetCountry"
  textOutput: 
    component: "System.Output"
    properties:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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