# \<reprompt>

## \<reprompt> <a href="#reprompt" id="reprompt"></a>

The form interpretation algorithm expects a catch element to queue appropriate prompts in the course of handling an event. Therefore, the form interpretation algorithm does not generally perform the normal selection and queuing of prompts on the next iteration following the execution of a catch element. However, the form interpretation algorithm does perform normal selection and queueing of prompts after the execution of a catch element (`<catch>`, `<error>`, `<help>`, `<noinput>`, `<nomatch>`) in two cases:

* If the catch element ends by executing a \<goto> to another dialog; in this case, the new dialog needs to be guaranteed that its initial prompt remains intact and cannot be suppressed or replaced by a referring dialog.
* If a `<reprompt>` is executed in the catch to request that the subsequent prompts be played.

In these two cases, after the FIA selects the next form item to visit, it performs normal prompt processing, including selecting and queuing the form item's prompts and incrementing the form item's prompt counter.

### Attributes

None

### Notes

None

### Example

```markup
<?xml version="1.0"?>
<vxml version="2.0">
  <form>
    <field name="myfield">
      <grammar type="application/x-jsgf" mode="dtmf">
        ( 1 | 2 )+
      </grammar>
      <grammar type="application/x-jsgf" mode="voice">
        ( one | two )+
      </grammar>
      <prompt>
        Say or enter any number of the digits one or two.
      </prompt>
      <filled>
        You entered <value expr="myfield"/>.
      </filled>
      <nomatch>
        <prompt>
          You did not say or enter any ones or twos.
        </prompt>
        <!-- You must include the "reprompt" tag if you want -->
        <!-- the original prompt to be repeated. -->
        <reprompt/>
      </nomatch>
      <noinput>
        <prompt>
          You did not enter anything.
        </prompt>
        <!-- You must include the "reprompt" tag if you want -->
        <!-- the original prompt to be repeated. -->
        <reprompt/>
      </noinput>
    </field>
  </form>
</vxml>
```

The output of the above script would be:

> Computer: Say or enter any number of the digits one or two.\
> Human: (enters DTMF-5)\
> Computer: You did not say or enter any ones or twos.\
> Computer: Say or enter any number of the digits one or two.\
> Human: (silently waits for prompt to timeout)\
> Computer: You did not enter anything.\
> Computer: Say or enter any number of the digits one or two.\
> Human: One two one two.\
> Computer: You entered one two one two.

### Child Tags

None

### Parent Tags

[\<block>](/dev/voicexml/tags/block-tag.md), [\<catch>](/dev/voicexml/tags/catch-tag.md), [\<error>](/dev/voicexml/tags/error-tag.md), [\<filled>](/dev/voicexml/tags/filled-tag.md), [\<foreach>](/dev/voicexml/tags/foreach-tag.md), [\<help>](/dev/voicexml/tags/help-tag.md), [\<if>](/dev/voicexml/tags/if-tag.md), [\<noinput>](/dev/voicexml/tags/noinput-tag.md), [\<nomatch>](/dev/voicexml/tags/nomatch-tag.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.plumvoice.com/dev/voicexml/tags/reprompt-tag.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
