Multilingual - Bank Balance

Multilingual - Bank Balance

To demonstrate the Multilingual Sample Application, Xtend IVR introduces a sample script for Automated Bank Balance Enquiry system.

Any person who has an account in a bank would like to know his/her account balance status at any time. The customers have got only three options - walk down to the bank to get these details or contact the bank staff through telephone or go for the Internet banking. The first option is not feasible in the present scenario. The second option is not possible all the time as it may increase the workload of the staff and for the third option using Internet Banking facility will require a system with Internet facility which may not be possessed by many of the customers. To simplify, Xtend IVR brings out a faster approach in dealing with the accounts in banks.

Download the evaluation version of Xtend IVR and install the telephony application in your system. Run the sample script from the Script Editor. Click here to refer the code.

The automated attendant will work as given below:

  • IVR waits for the call
  • Caller dials the number, IVR accepts the call and plays the Welcome message
  • The caller is prompted to select the language
  • IVR asks the caller to enter the account number and PIN number
  • Validates the entries in the database
  • If the account number is valid, the IVR informs the account balance status to the caller
  • If the account number is invalid, IVR plays the invalid message and disconnects the call
Download the source file zip download for the Multilingual - Bank Balance Enquiry

$db = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=bankacc.mdb;User Id=admin;Password=;"

$retrycount = 2

	display "Waiting for call"
	answer 1
	display "Call from " $cli " to " $dli

	play "e_Welcome.wav"
	play "h_Welcome.wav"
	play "silence.wav"

	display "Language Selection"
	$lan = GetInput("menu.wav",1)
	if $lan = 1
		$WavDir = "english"
	else if $lan = 2
		$WavDir = "hindi"
		$WavDir = "english"

	display "Accept account number"
	play "silence.wav"
	$Acno = GetInput("PunchAccount.wav",4)
	if $Acno == "" then goto GOODBYE

	display "Accept PIN number"
	play "silence.wav"
	$Pin = GetInput("GetPin.wav",4)
	if $Pin == "" then goto GOODBYE

	display "Validating User"
	$sql = format("SELECT * FROM BANK WHERE AccNo = '%s'",$Acno)
	$dbalias = db.RunSQL($db, $sql)
	if $dbalias.eof
		play "InvalidAcno.wav"
		goto GOODBYE

	if compare($dbalias.PIN,$Pin) <> 0
		play "InvalidPin.wav"
		goto GOODBYE

	play "silence.wav"
	play "AccBal.wav"
	if $WavDir <> "hindi"
		$wave = Money2Wav($dbalias.Balance,"",$WavDir)
		play $wave
		$wave = Money2Wav($dbalias.Balance,"",$WavDir,1)
		play $wave
		play "balance.wav"
	wait 0


	display "Terminating Call"
	play "silence.wav"
	play "goodbye.wav"
	goto MAIN

	goto MAIN

	log $error
	display $error
	goto MAIN

function GetInput($prompt,$digits)
	$retry = $retrycount
	while $retry > 0
		$retry -= 1
		play $prompt
		$result = Input($digits,5)
		if $result <> ""
	return $result