The Vonage Contact Center Javascript Engine is a special type of web service that accepts some JavaScript, run the script and returns the results. You can then write these results to Data Sources for use later in the call plan.
...
For example, a customer currently uses a Data an Announcer to announce a caller's postcode, which is stored in a Data Source, but wants to only announce the first three characters of the postcode. The customer can use the Vonage Contact Center Javascript Engine to run a JavaScript method that extracts the first three characters of the provided postcode.
To use the Vonage Contact Center Javascript Engine, you must create a Data Connector that uses a Web Service interface. For more information about using a Web Service interface, see Retrieving data from a Web Service. Provide the following values in Interaction Definition:
...
When you finish creating the Data Connector applet, click Update.
One of the following messages A message appears. The This message states that the JavaScript you provide in the Body element must now be approved by Vonage Contact Center.
Note | ||
---|---|---|
| ||
The EscapeDoubleQuotes formatter reformats data source values. When using the Vonage Contact Center Javascript Engine, you can use the EscapeDoubleQuotes formatter to escape to escape any double-quotes, tabs, or newline characters within data sources in your JavaScript methods. If the value of a data source contains a double quote ... for example, a JSON object returned by an earlier call to a web service: ... you can add the EscapeDoubleQuotes suffix to the end of the data source name:
Adding the suffix escapes any double-quotes in the data source value. The reformatted value contains escaped double-quotes:
|
...