04/08/19 17:09 PM  

ASR Actions - ASRSQL | RingCentral Contact Center

« Go Back

Article

 
Summary
Details
Automated Speech Recognition - ASRSQL

User-added image


ASRSQL Allows you to create a custom grammar file from an SQL database used by your organization. For example, you might want to route customers based on an uttered part number or employee last name.

ASRSQL is not used in production scripts, but rather, in a special use script that is run on an occasional or as-needed basis. When the script is run, the action uses DB Connector to connect to your external database and pull a file of values based on the query you provide.

This action is typically used in conjunction with ASRCOMPILE to create a compiled grammar file from a database.
ASR is an optional feature that appears only in the Framework tab, and only if ASR is enabled for you. Ask your account manager for more information.
 
Supported Script Types
User-added image
Phone
Properties
GrammarFileName

The name of the grammar (.grxml) file you want to compile. You must upload this file in Studio prior to processing it with ASRCOMPILE. The newly-compiled file will have the same name, but with a .gram extension. After processing, the new file is stored with your other Studio files.

SpellRuleItems
IsOutputFormatted
SQLQuery

This property is the SQL statement that will be submitted to the database server. This statement should be expected to return records.

TimeoutSec

The number of seconds until the query times out. The default is 10. The maximum number of seconds supported is 30 (though larger numbers can actually be entered in the field).

Branches
Default

The Default branch is taken on successful upload of the new grammar file.

OnNoRecords

When data is not returned from the database, this branch condition is triggered.

OnTimeout

When the number of timeout seconds is reached, this branch condition is triggered.

OnError

This branch condition is triggered when the SQL Query is invalid.
Error Handling is the best practice.

Ranking
Was this information helpful?
Yes
No
Somewhat

Tell us why and what can we do to improve this information