The Functions Library tab of Designer enables you to establish a connection between LiveVox and external applications (such as Jira or Salesforce) through 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 to trigger function calls (for example, when an account is created).
Configuring a Web Service Call
API
To configure an API:
- On the Web Service Calls tab of the Functions Library 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 log on to the application whose URL you specified in the Base URL field of the General tab.
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. If you want a dynamic value to appear for the parameter, use the Insert dynamic system info button.
The values that you specify in the Parameter Editor window for an API are automatically applied to all the methods for the API.
Click Apply.
To modify or delete the parameter, use or next to the parameter.
- On the Default Headers tab, click Add an API header.
- 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. You can use the response parameters of an API method as a request parameter of a different API by using the Insert dynamic response info button.
To configure a method for the API:
- On the Web Service Calls tab of the Functions Library 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.When you click Advanced Payload Editor, an additional section appears on the Payload subtab to enable you to copy and modify complex request payload data.
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.
To modify or delete the parameter, use or next to the parameter.
- 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. - 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 be called.
To delete the API method on the Callbacks (Web Services) subtab, click the Delete icon () next to the method.
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 appear 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 appear 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.
If you want the messages to display the parameters that you specified on the Parameters subtab, click Insert dynamic response info, and then select the parameter.
- 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.
- You can copy an API, including its methods, by using the Copy icon ().
- You can delete an API, including its methods, by using the Delete icon () or the Delete button.