VoiceXML 2.1 Development GuideHome  |  Frameset Home


<reprompt>  element

The reprompt element, upon execution, will increase the FIA prompt counter by one, and then replay the most recent prompt before listening again for caller input. Note the fact that the reprompt element will have no effect when placed within a filled construct, as the field item variable will have been already filled with a value.


usage
<reprompt />


attributes
none


shadow variables
none


parents
<block> <catch> <error> <filled> <help> <if> <noinput> <nomatch>


children
none


code samples
<Reprompt> sample
<?xml version="1.0" encoding="UTF-8"?>

<vxml version = "2.1">

<meta name="author" content="Matthew Henry"/>
<meta name="copyright" content="2005 voxeo corporation"/>
<meta name="maintainer" content="YOUR_EMAIL@HERE.COM"/>

<form id="F1">

  <field name="F_1">
    <grammar type="text/gsl>[(frank sinatra) (richard dawson]</grammar>

    <prompt>
      which famous drunk uttered the following line
    <break strength="medium"/>
      I feel sorry for people who dont drink.
      when they wake up in the morning, thats as good
      as they will feel all day.
    </prompt>

    <filled>
    <prompt>
      yes you are right. but lets reprompt just for the heck of it,
      while the chairman of the board makes another cocktail in heaven.
    </prompt>

    <clear namelist="F_1"/>

    <reprompt/>
    </filled>

  </field>

</form>

</vxml>



additional links
W3C 2.0 Specification


  ANNOTATIONS: EXISTING POSTS
SSA_MarkPMiller
10/5/2006 1:33 PM (EDT)
In the Prophecy platform, the <reprompt /> element is handled within the <noinput /> and <nomatch /> elements. These need to be added to the Parent list above.

<noinput cond="true" count="1">
  <prompt bargein="false">
      I missed that.
  </prompt>
  <reprompt />
</noinput>

Mark
mikethompson
10/5/2006 3:05 PM (EDT)
Hi Mark,

Thanks for bringing this to our attention!  I'll run this by our keepers of the documentation and make sure this gets updated.

Regards,
Mike Thompson
Voxeo Corporation
MattHenry
11/23/2006 12:01 PM (EST)


Mark,

This has been fixed in our internal build of the docset, which will be updated publicly in the next week or two.

~Matt
mtatum111
9/11/2008 11:25 AM (EDT)
Is it necessary to use <clear> element before <repompt/>?  It appears from some documentation that I have read that the last prompt visited by FIA will be prompted for again.  Is this true? Thanks for any clarification.
VoxeoDustin
9/11/2008 11:37 AM (EDT)
Hey,

When using the <reprompt/> element within a nomatch/noinput handler, it is not necessary to use <clear> as the field is not satisfied, it will simply return to the top of the field, replay any prompts and begin listening again. <clear> is only necessary if you wish to revisit a field that has been 'filled', as the FIA will consider this block of execution satisfied in this case and will not revisit it otherwise.

Cheers,
Dustin

login



© 2008 Voxeo Corporation  |  Voxeo IVR  |  VoiceXML & CCXML IVR Developer Site