<?xml version="1.0" encoding="ISO-8859-1"?>
<VoiceObjectsXML version="9.0">
<!-- Project: CCXML -->
<!-- Project Version: Version 1.0 -->
<!-- Start object: 0.4.8:OVAP1f861739bf1e11804145e7cb0000012211825f47_BVO_Application -->
<!-- Exported: June 24, 2009 15:27 -->
<module historyTracking="true" inheritDEP="true" name="My Personal Assistant" shortDescription="Implements a &quot;personal assistant&quot;:&#13;&#10;1.) Somebody calls your Personal Assistant&#13;&#10;2.) They are asked to record their name&#13;&#10;3.) The Personal Assistant calls you and whispers the recording, so you know who tries to contact you&#13;&#10;4.) You can accept or reject the call&#13;&#10;5.) When accepting, a transfer happens&#13;&#10;6.) When rejecting, the caller may leave a message">
<output usage="welcome">
<outputItem bargein="default" channel="default" inputMode="default" language="default" occurrence="always">
<text><![CDATA[You have reached the personal assistant for Tobias Goebel. ]]></text>
</outputItem>
</output>
<sequence>
<output link="#Inform Caller about Sales Department"/>
<recording link="#Record Caller Name"/>
<output link="#Notify Caller about Transfer"/>
<plugin link="#Initiate Transfer to Myself"/>
<menu link="#Ask Myself Whether I want to Take Call or Not"/>
</sequence>
<eventHandling inheritance="true">
<eventHandlingItem channel="default" continuation="reprompt" errorCodeFilter="false" eventType="noInput" finishTasks="none" occurrence="1" sendNotification="false"/>
<eventHandlingItem channel="default" continuation="reprompt" errorCodeFilter="false" eventType="noMatch" finishTasks="none" occurrence="1" sendNotification="false">
<output link="#Generic NM1"/>
</eventHandlingItem>
</eventHandling>
</module>
<output name="Generic NM1">
<outputItem bargein="default" channel="default" inputMode="default" language="default" occurrence="always">
<text><![CDATA[Excuse me?]]></text>
</outputItem>
<outputItem bargein="default" channel="default" inputMode="default" language="default" occurrence="always">
<text><![CDATA[Pardon me?]]></text>
</outputItem>
<outputItem bargein="default" channel="default" inputMode="default" language="default" occurrence="always">
<text><![CDATA[I'm sorry?]]></text>
</outputItem>
</output>
<output name="Goodbye To Myself" shortDescription="&quot;Ok, have a great day.&quot;">
<outputItem bargein="default" channel="default" inputMode="default" language="default" occurrence="always">
<text><![CDATA[Ok, have a great day.]]></text>
</outputItem>
</output>
<output name="Inform Caller about Sales Department" shortDescription="&quot;If you have a Voxeo sales inquiry, please drop an email to sales@voxeo dot com, or touch base with our sales organisation directly at +1 (4 0 7) 4 18 1 800. Again, that's +1 (4 0 7) 4 18 1 800.&quot;">
<outputItem bargein="default" channel="default" inputMode="default" language="default" occurrence="always">
<text><![CDATA[If you have a Voxeo sales inquiry, please drop an email to sales@voxeo dot com, or touch base with our sales organisation directly at +1 (4 0 7) 4 18 1 800. Again, that's +1 (4 0 7) 4 18 1 800. ]]></text>
<silence link="#1s"/>
<text><![CDATA[ ]]></text>
</outputItem>
</output>
<output name="Just a Moment" shortDescription="&quot;Just a moment, I will now connect you both.&quot;">
<outputItem bargein="default" channel="default" inputMode="default" language="default" occurrence="always">
<text><![CDATA[Just a moment, I will now connect you both.]]></text>
</outputItem>
<tuning inheritance="true"/>
</output>
<output name="Notify Caller about Transfer" shortDescription="&quot;Thank you. I will now try to contact myself.&quot;">
<outputItem bargein="default" channel="default" inputMode="default" language="default" occurrence="always">
<text><![CDATA[Thank you. I will now try to contact myself.]]></text>
<silence link="#1s"/>
<text><![CDATA[ ]]></text>
</outputItem>
<tuning inheritance="true"/>
</output>
<sequence name="Reject Call">
<expression link="#Set Status to &quot;Rejected&quot;"/>
<output link="#Goodbye To Myself"/>
<plugin link="#Return Status"/>
<recording link="#Record Caller Message"/>
<exit link="#Goodbye to Caller"/>
</sequence>
<sequence name="Take Call">
<expression link="#Set Status to &quot;Accepted&quot;"/>
<plugin link="#Return Status"/>
<output link="#Just a Moment"/>
<exit link="#Connect Both Parties"/>
</sequence>
<menu autonumbering="continuous" name="Ask Myself Whether I want to Take Call or Not" return="false" shortDescription="&quot;Hi Tobias, you have a call from [V:Recording]. Would you like to take it?&quot;">
<output>
<outputItem bargein="default" channel="default" inputMode="default" language="default" occurrence="always">
<text><![CDATA[Hi Tobias, you have a call from ]]></text>
<variable link="#OVAP1f861739bf1e11804145eb280000012211825f47"/>
<text><![CDATA[ ]]></text>
<silence link="#1s"/>
<text><![CDATA[ Would you like to take it?]]></text>
</outputItem>
</output>
<menuItem channel="default" exit="false" label="Yes">
<grammar>
<grammarItem channel="default">
<grammarDefinition grammarFileExtension="GRM" grammarPrecedence="default" grammarType="default" mode="voice" ttg="true"><![CDATA[yes, sure, go head, sure go ahead, yes please]]></grammarDefinition>
</grammarItem>
</grammar>
<sequence link="#Take Call"/>
</menuItem>
<menuItem channel="default" exit="false" label="No">
<grammar>
<grammarItem channel="default">
<grammarDefinition grammarFileExtension="GRM" grammarPrecedence="default" grammarType="default" mode="voice" ttg="true"><![CDATA[no, no thanks, oh no, no i dont]]></grammarDefinition>
</grammarItem>
</grammar>
<sequence link="#Reject Call"/>
</menuItem>
</menu>
<silence duration="1" name="1s"/>
<plugin inputState="false" name="Initiate Transfer to Myself" shortDescription="Initiates the transfer by a simple &lt;exit&gt; back to CCXML, including VOReturnURL" standbyTimeout="default">
<value><![CDATA[<form id="Plug-In">
    <block>
        <exit namelist="exprVOReturnURL" />
    </block>
</form>]]></value>
<parameterSet>
<item alias="VOReturnURL" object="/**expression**/#VOReturnURL"/>
</parameterSet>
<eventHandling inheritance="true"/>
<customNavigation inheritance="true"/>
<tuning inheritance="true"/>
</plugin>
<plugin inputState="false" name="Return Status" shortDescription="Return the selected status to CCXML" standbyTimeout="default">
<value><![CDATA[<form id="Plug-In">
    <block>
        <exit namelist="varStatus"/>
    </block>
</form>]]></value>
<parameterSet>
<item alias="Status" object="/**variable**/#Status"/>
</parameterSet>
<eventHandling inheritance="true"/>
<customNavigation inheritance="true"/>
<tuning inheritance="true"/>
</plugin>
<resourceLocator allowServiceOverwrite="false" name="Base" physicalPath="C:/VoiceObjectsDfE90GA/plugins/com.voiceobjects.eclipseDesktop_9.0.0/Resources/PersonalAssistant/">
<text><![CDATA[http://localhost:8070/VoiceObjects/Resources/PersonalAssistant/]]></text>
</resourceLocator>
<resourceLocator allowServiceOverwrite="false" base="/**resourceLocator**/#Base" name="Recording" physicalPath="Recordings/" referenceID="OVAP1f861739bf1e11804145eadc0000012211825f47">
<text><![CDATA[Recordings/]]></text>
</resourceLocator>
<variable name="Recording" referenceID="OVAP1f861739bf1e11804145eb280000012211825f47">
<format>
<formatItem audioLocation="/**resourceLocator**/#OVAP1f861739bf1e11804145eadc0000012211825f47" channel="default" extension="WAV" random="disabled" type="tta-files"/>
</format>
</variable>
<variable name="Status"/>
<expression function="serverurl" name="SERVERURL"/>
<expression function="assign" name="Set Status to &quot;Accepted&quot;">
<argument object="/**variable**/#Status"/>
<argument>
<value><![CDATA[Accepted]]></value>
</argument>
</expression>
<expression function="assign" name="Set Status to &quot;Rejected&quot;">
<argument object="/**variable**/#Status"/>
<argument>
<value><![CDATA[Rejected]]></value>
</argument>
</expression>
<expression function="dialogid" name="System:Dialog ID" referenceID="Expression_dialogid" shortDescription="Returns the unique ID of the dialog as a string of 44 characters."/>
<expression function="concatenate" name="VOReturnURL">
<argument object="/**expression**/#SERVERURL"/>
<argument>
<value><![CDATA[?dialogID=]]></value>
</argument>
<argument object="/**expression**/#System:Dialog ID"/>
</expression>
<recording dtmfTermination="true" file="/**variable**/#OVAP1f861739bf1e11804145eb280000012211825f47" fileNaming="generate" location="/**resourceLocator**/#OVAP1f861739bf1e11804145eadc0000012211825f47" maxDuration="60" name="Record Caller Message" playBeep="true" recordingType="audio" shortDescription="&quot;I can't take your call right now. Please leave a message after the tone.&quot;" silenceTimeout="2" standbyTimeout="default">
<output>
<outputItem bargein="default" channel="default" inputMode="default" language="default" occurrence="always">
<text><![CDATA[I can't take your call right now. Please leave a message after the tone.]]></text>
</outputItem>
</output>
</recording>
<recording dtmfTermination="true" file="/**variable**/#OVAP1f861739bf1e11804145eb280000012211825f47" fileNaming="generate" location="/**resourceLocator**/#OVAP1f861739bf1e11804145eadc0000012211825f47" maxDuration="10" name="Record Caller Name" playBeep="true" recordingType="audio" shortDescription="&quot;Otherwise, please state your name after the tone and I will decide whether I want to take your call.&quot;" silenceTimeout="2" standbyTimeout="default">
<output>
<outputItem bargein="default" channel="default" inputMode="default" language="default" occurrence="always">
<text><![CDATA[Otherwise, please state your name after the tone and I will decide whether I want to take your call.]]></text>
</outputItem>
</output>
<eventHandling inheritance="true"/>
<tuning inheritance="true"/>
</recording>
<exit destination="default" exitType="exit" name="Connect Both Parties" shortDescription="Renders a silent &lt;exit/&gt; to join the calls in CCXML">
<eventHandling inheritance="true"/>
<tuning inheritance="true"/>
</exit>
<exit destination="default" exitType="exit" name="Goodbye to Caller" shortDescription="&quot;Thanks a lot, I'll get back to you as soon as I can. Take care, bye.&quot; - then renders &lt;exit/&gt;">
<output>
<outputItem bargein="default" channel="default" inputMode="default" language="default" occurrence="always">
<text><![CDATA[Thanks a lot, I'll get back to you as soon as I can. Take care, bye.]]></text>
</outputItem>
</output>
<eventHandling inheritance="true"/>
<tuning inheritance="true"/>
</exit>
</VoiceObjectsXML>

