VoiceGuide IVR Software Main Page
Jump to content

Call A Vgs Script From A Vgs Script

Recommended Posts

I would like to set up a "custom" vgs script depending on the caller. Would it be possible to call a vgs script depending on the caller? For example, they enter a pin and if they are a particular user, then it would call a vgs that is tailored for them at that point. Thanks.

Share this post


Link to post
Would it be possible to call a vgs script depending on the caller?

To run particular script based on CallerID number you can use an Evaluate Expression module and have it evaluate:

 

"$RV_CIDNUMBER"

 

And have the paths in that module pint ot differnte scripts, eg:

 

on {5551111} goto [myScript1.vgs]

on {5552222} goto [someOtherScript.vgs]

on {5551234} goto [scriptFor1234.vgs]

 

Or you can have just a path that says:

 

on {True} goto [script_$RV_CIDNUMBER.vgs]

 

And then define scripts like script_5551111.vgs but using this approach you must have a script for every CallerID, otherwise system will hang up the call if script is not found.

 

For example, they enter a pin and if they are a particular user, then it would call a vgs that is tailored for them at that point

Have paths like these in a Get Numbers module which asks for the PIN:

 

on {1111} goto [firstUser.vgs]

on {6485} goto [anotherUser.vgs]

 

 

Or you can have just a path that says:

 

on {Success} goto [pin_$RV_ENTEREDNUMBER.vgs]

 

And then define scripts like pin_1111.vgs but using this approach you must have a script for every entered pin number, otherwise system will hang up the call if script is not found.

 

Also read the section "Branching to other scripts and calling subscrips." in http://www.voiceguide.com/vghelp/source/html/paths.htm

 

Share this post


Link to post

Cool. I can't wait to try it.

I did try to find this in the documentation, so I did at least try there first before posting to the forum.

Thanks.

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
×