<Goto>

The <Goto> element provides the means to create more complex workflows and create reusable chunks of InboundXML. Use this element to trigger jumps in execution of InboundXML.

Element Attributes

Attribute

Description

label required

The name/identifier that execution of InboundXML. The name/identifier set here is the location that InboundXML will execute.

  • Valid value: a string value

Nesting

The <Goto> can contain nested elements but must be placed inside the default <Response> element.

<Response>
  {/* other tags hidden for brevity */}
  <Goto label="AnswerBlock"></Goto>
  {/* other tags hidden for brevity */}
  <Block label="AnswerBlock">
    <Say>Press 1 for billing. Press 2 for customer service. Press 3 for communication options.</Say>
  </Block>
</Response>

Click here to see a complete code snippet with <Block>, <Goto>, <Gosub>