The event based rules are executed automatically upon detecting the occurrence of an event.
Figure: Event-based Rules Tab
Perform the following steps to create an event-based rule.
Figure: Add an Event Based Rule
Figure: Ticket Updated Event
Figure: Ticket Transferred to Agent Event
Figure: Ticket Auto-Assigned Event
Figure: Priority Changed Event
Figure: Ticket Status Changed Event
Figure: Heat Value Changed Event
Figure: Custom Field Changed Event
Figure: Add a Condition
Figure: Condition for Media Profile
Select a media profile ID after selecting an operator.Figure: "Ticket Status" Condition
Provide a value in the text field after selecting an operator.Figure: "Current Time" Condition
Provide a value in the text field after selecting an operator.Figure: "Queue" Condition
Select the queue after selecting an operator.Figure: "Priority" Condition
Select an operator and then select a priority value.Figure: Subject Condition
Custom Field: The Custom Field field created at the System-level will appear in the condition. In case of single-level custom field, you just have to select it.
In case of Dependent Multi-level Custom Field, the selection of all values is not required. For a 4-level Custom Field, you can select the values for only one, first two, or first three levels to create the rule.
Example: Take the example of the following multi-level field.
Location
India
Haryana
Bhiwani
Gurugram
Faridabad
Rohtak
Now, the Administrator can select only "Location" or "Location" and "Country" to create a rule.
Figure: New type of condition while creating Event-based Rule
Figure: Other Condition
Provide a value in the adjoining text field after selecting an operator.Figure: Multiple Conditions
When multiple conditions are added, the following new options are displayed on the top of "Conditions" Tab.You can click "X" icon on the top right corner of an condition to remove it.
Figure: Escalate Ticket
Select any of the following operators.Figure: Custom Field Action
Select a custom field from the provided options.Figure: Transfer to Queue
Select a queue and then select any of the following options in "Assign to User" drop-down menu.Figure: Send Email To Action
Figure: Placeholders
Figure: Sample Email
Figure: Send Email To All Supervisors
Figure: Placeholders
Figure: Sample Email
Figure: Send Email To Agent
Figure: Placeholders
Figure: Sample Email
Figure: Send Email To All Agents Assgined to the Queue
Figure: Placeholders
Figure: Sample Email
Figure: Send Email To Requester
Figure: Placeholders
Figure: Sample Email
Figure: Send Feedback To Requester
Figure: Placeholders
Do not delete {{feedback:form}} as this is the placeholder for the Feedback form. If it is deleted, feedback form will not be placed.
Following is screenshot of such a message.Figure: Sample Feedback Email
Figure: Send Email To All Supervisors
The agents available in the previously selected campaign and process are listed in the drop-down menu. You just have to select the agent here.Figure: "Set Status" Action
Figure: "Priority" Action
Select any of the following options in the drop-down menu.Figure: "Set Priority" Action
Select any of the following options in the drop-down menu.Set Custom Field Using HTTP Action Response: Select it to allow to ask an external system to update the custom field and as a result thereof, take any additional action upon the creation or modification of a ticket.
When a custom field is hidden then also custom field is getting update, checked from the backend. And able to search the same from the advance filter even custom field is hidden for that ticket.
Sample JSON Formats
The required sample JSON formats for the following custom fields for integer, boolean, and string values, which has to be generated, after calling the API of the third-party external system are also provided.
Single-Selection List Box
Multi-Selection List Box
Single Line Field
Checkbox
Radio Button
Dependent Single Selection List Box
Following is the database entry of a single Selection List Box.
custom_field_id | d625-5d094290-cf-0 column_name | CB contact_center_id | 1 custom_field_data_type | String custom_field_name | SSLB custom_field_type | SingleSelectionListBox default_value | possible_values | ["1","2","3","4","['k']"] process_id | 2 is_required | f is_searchable | f custom_field_category_id | 2 date_added | 2019-06-19 01:40:08.397 date_modified | 2019-06-26 20:51:12.223 mandatory_on_creation | f is_editable | t
The required output from the Sample API stored in the AppServer to modify the above SingleSelectionListBox using "HTTP Response Data" should be in the following format.
JSON for Integer Type:
{d625-5d094290-cf-0:2}
JSON for String Type
{d934-5d0229ef-cf-0:\"Payment Query\"}"
The required output from the Sample API stored in the AppServer to modify the multiple Custom Fields in a ticket using "HTTP Response Data" should be in the following format.
JSON to update multiple Custom Fields
{d119-5d134249-cf-2:[1.1,1.2],d119-5d134249-cf-1:[\"string1\",\"string2\",\"string3\",\"string4\"]}
Following is the sample API that will be called in the test case created for this story.
<?php echo "{d581-5d0a3128-cf-0:{\"Country\":\"New Zealand\",\"State\":\"Zero\"}}"; ?>
Perform the following steps.
The Administrator has to create or modify a Routing Rule, Event-based Rule, or Timer-based Rule.
Select "GET" as the method.
In URL, provide the URL at which the Sample API is stored in Ameyo AppServer.
Select "HTTP Action" as the first action in "Actions".
Select "Post-Request Script" tab and provide the following JavaScript Code.
variables.put("$thridPartyCustomFieldData",responseString);
The above code has to be used as-it-is in whenever you want to update the Custom Field using HTTP Response.
Now, click "Add New Action" button in the right corner.
Select "Set Custom Field Using HTTP Action Response" in the new action. Refer to the following screenshot.
Figure: New Action for HTTP Response
Click "Save".
Figure: Sample Event-based Rule
Figure: Added Multiple Event-based Rules
If any rule in "Event Based Rules" is assigning or transferring only one ticket to any agent, then its notification to that agent will be displayed after 5 minutes. However, if more than 5 tickets are being assigned or transferred to an agent, then a notification showing all 5 ticket assignment or ticket transfer will be displayed to that agent in real-time.
You can disable the rules. The disabled rules will be hidden, but you can make them visible. You can also enable the disabled rules.
Click the toggle switch on a rule to disable it. It shows the following message.
Figure: Asking to disable the rule
Click "Yes" to disable the selected rule. The disabled rule will not be applied in the already selected. Here, its details will be hidden. Following is a disabled rule.
Figure: Disabled Rule
In a disabled rule, click to check "View Disabled Rules" box to view its details.
Figure: Displaying the Details of Disabled Rule
To enable a disabled rule, click the gray toggle switch to enable it. The following message is displayed.
Figure: Asking to enable the rule
Click "Yes" to enable the selected rule. The enabled rule will be applied in the campaign, where it has been selected.
Perform the following steps to edit a rule.
Figure: Edit an Even-based Rule
The Deleted Rule cannot be retrieved back. Also, the deleted rule will not be applicable in the selected campaign.
Perform the following steps to delete a rule.
Figure: Warning before deleting an Event-based Rule