Plum Voice Resource Center

Cover all your bases for your voice automation project. Learn best practices, what's possible with Plum's products, how to do it, and more using our extensive resources.

Start Your Trial
Talk with Sales

Latest in the Blog

Change Your Healthcare Billing for the Better with IVR

The World of Healthcare Billing A recent article from Advance Healthcare Network highlighted some of the issues that exist in the world of healthcare billing and offered a number of specific areas where healthcare companies can focus their energy to create a better experience for patients. This article demonstrates how no solution exists in a vacuum. But that just means...

Code of the day

<submit>

The <submit> element is used to submit information to the origin web server and then transition to the document sent back in the response. Unlike <goto>, it lets you submit a list of variables to the document server via an HTTP GET or POST request.
<?php
  header("Content-type: text/xml");
  echo "<?xml version=\"1.0\"?>\n";
?>
<vxml version="2.0">
  <var name="license_number"/>
  <var name="request_type"/>
  <form>
    <field name="license" type="digits">
      <prompt>
        Please enter your driver's license number.
      </prompt>
      <filled>
        <assign name="license_number" expr="license"/>
      </filled>
    </field>
    <field name="request">
      <grammar type="application/srgs+xml" mode="dtmf" root="choice" maxdigits="1">
        <rule id="choice">
          <one-of>
            <item>1</item>
            <item>2</item>
          </one-of>
        </rule>
      </grammar>
      <prompt>
        To renew your license, press 1. To request a new license plate, press 2.
      </prompt>
      <filled>
        <assign name="request_type" expr="request"/>
        <submit next="process_request.php" method="post" namelist="
        license_number request_type" fetchtimeout="60s"/>
      </filled>
    </field>
  </form>
</vxml>