VoiceGuide IVR Software Main Page
Jump to content

I Am Not Sure What To Do!

Recommended Posts

HEY everyone,

 

Voice guide along with a diagilogic card have worked great using the script examples but I have no idea how to make a script that ask about 16 questions that take numeric responses and creates a text file from the answers. Maybe this is simple to alot of people but I am asking for help.

 

Tscott

Share this post


Link to post

Have a look at attached script. It asks 4 questions then saves callers responses to file c:\output.txt

 

Have a look at the paths in each module and at the VBScript module.

 

Let us know if you have any further questions.

Questionaire.vgs

Share this post


Link to post

I looked at the script that u provided and tried to make some modifications. Everytime I make a modification the phone will pick up and nothingelse will happen. here is the script I am trying to use. this is a test.

 

Version=5.0

DefaultModuleDisplayHeight=

StartModule=Save

RunAtHangup=

StartWithoutAnswer=0

CtmAsiName=

 

[save]

Type=Run VB Script

DispSize=69

Txt=

VbsFileToRun=

VbsWait=1

VbScript=

Const ForReading = 1

Const ForWriting = 2

Const ForAppending = 8

set fso = CreateObject("Scripting.FileSystemObject")

set tsFile = fso.OpenTextFile("C:\Documents and Settings\bookstudy\My Documents\BIOMARKER", ForAppending, True)

tsFile.WriteLine "$RV_STARTTIME, $RV_CIDNUMBER, $RV_CIDNAME, $RV[CID], $RV[iVR1], $RV[iVR2], $RV[iVR3],$RV[iVR4], $RV[iVR5], $RV[iVR6], $RV[iVR7],$RV[iVR8], $RV[iVR9]"

tsFile.Close

set tsFile = Nothing

set fso = Nothing

VbsHoldPlay=

 

Position=496,700

 

[iVR1]

Type=Play

DispSize=69

Txt=Play a sound file, then await a response...

PlayFile1=C:\Documents and Settings\bookstudy\My Documents\BIOMARKER\Boyd\IVR1Boyd.wav

Replay=2,5

strTtsText=

on {*9} goto [PLAY ACTION - Resume]

on {*1} goto [PLAY ACTION - Pause]

on {*} goto [iVR1]

on {#} goto [iVR2]

 

Position=179,71

 

[iVR3]

Type=Play

DispSize=69

Txt=Play a sound file, then await a response...

PlayFile1=C:\Documents and Settings\bookstudy\My Documents\BIOMARKER\Boyd\IVR3Boyd.wav

Replay=2,5

strTtsText=

on {#} goto [iVR4]

on {*} goto [iVR3]

 

Position=64,282

 

[CID]

Type=Get Numbers

DispSize=69

Txt=Play a prompt asking the caller to enter a sequence of numbers, speak the sequence back to the caller and ask them to confirm it. Go down different paths depending on the numbers entered...

PlayFile1=C:\Documents and Settings\bookstudy\My Documents\BIOMARKER\Boyd\CIDBoyd.wav

PlayFile2=C:\Documents and Settings\bookstudy\My Documents\BIOMARKER\Female Voice\voice MuLaw\GetNbrsConfirmIntro.wav

PlayFile3=C:\Documents and Settings\bookstudy\My Documents\BIOMARKER\Female Voice\voice MuLaw\GetNbrsConfirmMenu.wav

Replay=2,7

GetNbrLen_Min=4

GetNbrLen_Max=4

Confirm=ON

VbScript=

VbsHoldPlay=

on {#} goto [iVR1]

on {*} goto [CID]

 

Position=21,7

 

[iVR2]

Type=Get Numbers

DispSize=69

Txt=Play a prompt asking the caller to enter a sequence of numbers, speak the sequence back to the caller and ask them to confirm it. Go down different paths depending on the numbers entered...

PlayFile1=C:\Documents and Settings\bookstudy\My Documents\BIOMARKER\Boyd\IVR2Boyd.wav

PlayFile2=C:\Documents and Settings\bookstudy\My Documents\BIOMARKER\Female Voice\voice MuLaw\GetNbrsConfirmIntro.wav

PlayFile3=C:\Documents and Settings\bookstudy\My Documents\BIOMARKER\Female Voice\voice MuLaw\GetNbrsConfirmMenu.wav

Replay=2,5

GetNbrLen_Min=1

GetNbrLen_Max=1

Confirm=ON

VbScript=

VbsHoldPlay=

on {*9} goto [PLAY ACTION - Resume]

on {*1} goto [PLAY ACTION - Pause]

on {*} goto [iVR2]

on {#} goto [iVR3]

 

Position=337,150

 

[iVR5]

Type=Play

DispSize=69

Txt=Play a sound file, then await a response...

PlayFile1=C:\Documents and Settings\bookstudy\My Documents\BIOMARKER\Boyd\IVR5Boyd.wav

Replay=2,5

strTtsText=

on {*9} goto [PLAY ACTION - Resume]

on {*1} goto [PLAY ACTION - Pause]

on {*} goto [iVR5]

on {#} goto [iVR6]

 

Position=151,399

 

[iVR4]

Type=Get Numbers

DispSize=69

Txt=Play a prompt asking the caller to enter a sequence of numbers, speak the sequence back to the caller and ask them to confirm it. Go down different paths depending on the numbers entered...

PlayFile1=C:\Documents and Settings\bookstudy\My Documents\BIOMARKER\Boyd\IVR4Boyd.wav

PlayFile2=C:\Documents and Settings\bookstudy\My Documents\BIOMARKER\Female Voice\voice MuLaw\GetNbrsConfirmIntro.wav

PlayFile3=C:\Documents and Settings\bookstudy\My Documents\BIOMARKER\Female Voice\voice MuLaw\GetNbrsConfirmMenu.wav

Replay=2,5

GetNbrLen_Min=0

GetNbrLen_Max=2

Confirm=ON

VbScript=

VbsHoldPlay=

on {*9} goto [PLAY ACTION - Resume]

on {*1} goto [PLAY ACTION - Pause]

on {*} goto [iVR4]

on {#} goto [iVR5]

on {0} goto [iVR6]

 

Position=303,282

 

[iVR6]

Type=Play

DispSize=69

Txt=Play a sound file, then await a response...

PlayFile1=C:\Documents and Settings\bookstudy\My Documents\BIOMARKER\Boyd\IVR6Boyd.wav

Replay=2,5

strTtsText=

on {*9} goto [PLAY ACTION - Resume]

on {*1} goto [PLAY ACTION - Pause]

on {*} goto [iVR6]

on {#} goto [iVR7]

on {0} goto [iVR8]

 

Position=416,407

 

[iVR7]

Type=Play

DispSize=69

Txt=Play a sound file, then await a response...

PlayFile1=C:\Documents and Settings\bookstudy\My Documents\BIOMARKER\Boyd\IVR7Boyd.wav

Replay=2,5

strTtsText=

on {*9} goto [PLAY ACTION - Resume]

on {*1} goto [PLAY ACTION - Pause]

on {*} goto [iVR7]

on {#} goto [iVR8]

 

Position=159,546

 

[iVR8]

Type=Play

DispSize=69

Txt=Play a sound file, then await a response...

PlayFile1=C:\Documents and Settings\bookstudy\My Documents\BIOMARKER\Boyd\IVR8Boyd.wav

Replay=2,5

strTtsText=

on {*9} goto [PLAY ACTION - Resume]

on {*1} goto [PLAY ACTION - Pause]

on {#} goto [iVR9]

on {0} goto [save]

on {0} goto [Conclusion]

 

Position=441,550

 

[Conclusion]

Type=Play

DispSize=69

Txt=Play a sound file, then await a response...

PlayFile1=C:\Documents and Settings\bookstudy\My Documents\BIOMARKER\Female Voice\voice MuLaw\Credit Card Payment\PayThankyou.wav

Replay=2,5

strTtsText=

 

Position=690,697

 

[iVR9]

Type=Play

DispSize=69

Txt=Play a sound file, then await a response...

PlayFile1=C:\Documents and Settings\bookstudy\My Documents\BIOMARKER\Boyd\IVR9Boyd.wav

Replay=2,5

strTtsText=

on {*9} goto [PLAY ACTION - Resume]

on {*1} goto [PLAY ACTION - Pause]

on {#} goto [Conclusion]

on {#} goto [save]

on {*} goto [iVR9]

 

Position=809,481

 

Share this post


Link to post

You have set the module titled "Save" to be your starting module. As this is the module which saves the data to file I don’t think that’s right.

 

Set the start module in "Edit"->"Script Properties" menu.

 

When posting traces/scripts please .ZIP them up and post them as attachments.

 

Share this post


Link to post

I have been trying with no success too get a script that just takes a call and gets a few responses and saves it into a text file. Can some please look @ this script and help me complete this. I am enclosing the written phone script and the digital script.

 

Please change anything here to make this work. Or tell me what I need to change and I will do it.

 

Thanks in advance

myscriptdata.zip

Share this post


Link to post

In your VBScript module try starting off with something simple, like this:

 

Const ForReading = 1

Const ForWriting = 2

Const ForAppending = 8

set fso = CreateObject("Scripting.FileSystemObject")

set tsFile = fso.OpenTextFile("C:\out.txt", ForAppending, True)

tsFile.WriteLine "Hello"

tsFile.Close

set tsFile = Nothing

set fso = Nothing

 

If that works then move onto something a little bit more complicated, like this:

 

Const ForReading = 1

Const ForWriting = 2

Const ForAppending = 8

set fso = CreateObject("Scripting.FileSystemObject")

set tsFile = fso.OpenTextFile("C:\out.txt", ForAppending, True)

tsFile.WriteLine "Hello $RV_STARTTIME, $RV_CIDNUMBER, $RV_CIDNAME, $RV[CID], $RV[iVR1]"

tsFile.Close

set tsFile = Nothing

set fso = Nothing

 

and if that works then you can add more $RVs and try changing the file location as well.

 

If you still have problems please post the trace capturing the call itself and describe in detail what the problem is (eg: can't see any created file, or no data in file etc).

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×