# bargein

## bargein <a href="#bargein" id="bargein"></a>

**Default Value:** true

The bargein attribute to use for prompts. Setting this to true allows barge-in by default. Setting it to false disallows barge-in.

### Example

```markup
<?xml version="1.0"?>
<vxml version="2.0">
  <form>
    <property name="bargein" value="false"/>
    <field name="myfield">
      <grammar type="application/x-jsgf" mode="voice">
        ( one | two )+
      </grammar>
      <prompt bargein="false">
        You must listen to this message.
      </prompt>
      <prompt bargein="true">
        Say any number of the digits one or two.
      </prompt>
      <filled>
        You said <value expr="myfield"/>.
      </filled>
      <nomatch>
        You did not say any ones or twos.
        <reprompt/>
      </nomatch>
      <noinput>
        You did not say anything.
        <reprompt/>
      </noinput>
    </field>
  </form>
</vxml>
```

### Explanation

From this example, since the original value of “bargein” is set to false, the user is not allowed to interrupt the first message. When “bargein” is set to true, the user is allowed to interrupt the message by saying 1 or 2.

### Notes

None


---

# 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/properties/bargein.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.
