The Functions Library tab of Designer enables you to establish a connection between LiveVox and external applications (such as Jira or Salesforce) through the application programming interface (API) methods. You can use the tab to create multiple security models and pass data (for example, Contact Manager and scripter data) in the API calls. You can also specify the events based on which you want function calls to be triggered (for example, when an account is created).
Configuring a Web Service Call
API
To configure an API:
- Access Designer.
- Click the Functions Library tab.
- On the Web Service Calls tab, click the Add icon next to the name of the client for which you want to add an API. Alternatively, you can click the name of the client, and then click Add.
The API Editor window appears. On the General tab, specify values in the following fields as required.
If you want the function call to be authenticated:
On the Authentication tab, in the Authentication Method field, select one of the following authorization protocols based on which you want the agent to sign in to the application whose URL is specified in the Base URL field of the General tab:
- NONE
- BASIC
- BEARER
LIVEVOX
- OAUTH
- OAUTH2
Depending on the selected method, additional fields appear.
- Specify values in the additional fields.
- If you want to specify the API headers:
- On the Default Headers tab, click Add an API header.
The Parameter Editor window appears. Specify values in the following fields.
- Name: Name for the parameter as you want it to appear on the agent desktop.
Value: Value for the parameter as you want it to appear on the agent desktop.
Click Apply.
Click Save.
The API is added, and it appears in the left pane.
API Method
When configuring an API method, you can configure the following additional parameters:
- Request: Used to send additional data to the external application.
Response: A value from an API request to be returned to the agent desktop for the value to be associated with a data field within LiveVox or for the value to appear in an alert message on the agent desktop.
To configure a method for the API:
- On the Functions Library tab, on the Web Service Calls tab, click the Add icon next to the API for which you want to configure a method.
The Method Editor window appears. On the General tab, specify values in the following fields as required.
If you want to configure the API request:
On the Request tab, click one of the following subtabs as required.
Click the button to add a parameter for the selected subtab.
The Parameter Editor window appears.Specify values in the following fields.
- Name: Name for the parameter as you want it to appear on the agent desktop.
- Value: Value for the parameter as you want it to appear on the agent desktop. If you want a dynamic value to appear for the parameter, use the Insert dynamic system info button.
Click Apply.
If you want to configure the API response:
- On the Response tab, click the Parameters subtab, and then click Add a response parameter.
The Response Parameter Editor window appears. Specify values in the following fields.
- Name: Name for the parameter as you want it to appear on the agent desktop.
- Path: Path for the parameter.
- Click Apply.
The selected name and path appear on the Parameters subtab. - If you want to add a callback method to a web service:
- On the Response tab, on the Callbacks (Web Services) subtab, click Add a web service callback.
A drop-down list box, which contains all API methods, appears on the subtab. In the drop-down list box, select the API method that you want to add.
- On the Response tab, on the Callbacks (Web Services) subtab, click Add a web service callback.
- If you want to add a callback method for an external web address (that is, to invoke a callback URL):
- On the Response tab, on the Callbacks (External URL Pops) subtab, click Add an external url pop callback.
A drop-down list box, which contains all API methods, appears on the subtab. In the drop-down list box, select the API method that you want to add.
- On the Response tab, on the Callbacks (External URL Pops) subtab, click Add an external url pop callback.
If you want a message to appear on the agent desktop when a function call succeeds or fails, on the Response tab, on the Callbacks (Alerts) subtab, specify values in the following fields as required:
- On SUCCESS, show this alert: Message that you want to be displayed on the agent desktop when a function call succeeds. If you want the message to display dynamic values, use the Insert dynamic system info button.
On FAILURE, show this alert: Message that you want to be displayed on the agent desktop when a function call fails. If you want the message to contain dynamic values, use the Insert dynamic system info button.
- On the Response tab, click the Parameters subtab, and then click Add a response parameter.
- Click Save.
The API method is configured, and it appears in the left pane.