Audium Knowledge Base

Knowledgebase Home | Contact Knowledgebase Home | Contact
Search the Knowledgebase Jump to ID Browse by Category
How can I jump to a specific element at runtime (i.e. goto)?
Categories: Audium OpenSDK
Article ID: 44
Last updated: February 13, 2007
User Opinions
No users have voted.

How would you rate this answer?
Helpful
Not helpful

SUMMARY

This article describes how to emulate the functionality of the VoiceXML <goto> element with your Audium applications.

SYMPTOMS

Developer would like to jump from one element to another.

RESOLUTION

In order to explain the first possible solution to this issue, please consider the following example scenario:

* When a user says "goodbye" a Hotlink element sends the user to a goodbye page that confirms they want to exit the application

* If the user disconfirms, they should be sent back to the element they were visiting when they uttered "goodbye"

* If the user confirms, they should be disconnected normally

You can certainly achieve the desired functionality using Audium, but you cannot directly jump to an element by name. One possible solution is to set some session data whenever the caller is about to be sent to the "goodbye" page, which would hold the name of the section the caller is in. Then, add a Page Entry element on that page, connecting to the element where the user should return if they decide not to disconnect from the application.

On the "goodbye" page, link the disconfirmed exit state to a many-pronged Decision element. Each exit state of this Decision element should lead to a Page Connector that brings the user back to where they were. At runtime, this Decision element should examine the session data to find which section the caller was last in, and then follow the appropriate exit state to send them back to it. I recommend putting this Decision element on its own page, since it is likely to have many exit states.

An additional solution to this problem would be to avoid sending the user to the goodbye page altogether.  The "goodbye" utterance could be handled within each voice element.  The simplest way to implement this is to recognize and store the "goodbye" utterance, and then follow the voice element with a Decision element to determine if the utterance was made.  The Decision element would then link to a 2 Option Menu element for confirmation.  The 2 Option Menu would then exit either to the initial voice element, or to a Hang Up element depending on the caller's choice. 

However, if all elements need to support this behavior, it may be worthwhile to create custom voice elements that encapsulate this behavior internally to avoid complex callflows.

Visitor Comments
No visitor comments posted. Post a comment
Related Questions
Attachments
No attachments were found.

Copyright (c) 2005 Audium Corporation. All rights reserved.
Audium Home | Audium Support Center Home | Audium Customer Care Home