User Guides
...
Custom Fields Tab in Process S...
Regex Custom Fields in Process Settings
5 min
in ameyo omni contact center, custom fields in a ticket allow you to store additional information specific to your business requirements these fields can be used to reference data or trigger actions in other systems through http actions however, for such references or actions to work reliably, the captured data must be valid for instance, a business may store order details in a crm application where each order is identified using a predefined format such as abc123456 or abc123457 during a customer interaction, an agent can record the order id in a custom field that is passed to another system before doing so, the business needs a mechanism to validate the entered order id to address this requirement, the ameyo application server now includes a new custom field type called "regex" this option allows administrators to create a custom field with validation logic based on regular expressions it ensures only valid string values are accepted according to the defined pattern go to "process" tab → settings of a process → "custom field" to create and manage the custom fields the changes made in the custom fields will be visible to the agents only when they log out and re login therefore, it is recommended to make these changes in the non working hour so that the agent will notice these changes when they login to their working hours on the top, the following message is displayed it is recommended to make changes during non working hours as they will be visible only once the users login again you may also have to update some rule actions perform the following steps to create a regex type custom field in an already existing custom field category click "add" button to add a new custom field it shows the following modal provide a name for the new custom field select the category of the custom field click "type" drop down menu to select the custom field type select "regex" as a type of the custom field the default data type of "regex" is "string" the next step is to provide the regular expression to create a regular expression, the ameyo user can provide a range of letters or numbers, such as the following examples \[a z] it denotes a single small case letter between "a" to "z" \[a z] it denotes a single capital case letter between "a" to "z" \[1 9] it denotes a single number between "1" to "9 " \[a c] it denotes a single small case letter between "a" to "c" \[d f] it denotes a single small case letter between "d" to "f" instead of the range, the ameyo user can provide a constant value such as "abc", "fii", "2020", or "2021" the following table illustrates some sample regular expressions sample regular expression sample valid value 1 sample valid value 2 \[a z]\[a z]\[a z]\[1 9]\[1 9]\[1 9] abc123 xyz345 ifc\[a d]\[n p]\[1 9]\[1 9]\[1 9] ifcan123 ifcep789 after entering the regular expression, the ameyo user can provide a sample value in "test a string" text field and click on forward arrow icon to test whether the provided test value is valid or not example 1 the test value in the following case is valid as per the provided regular expression example 2 the test value in the following case is invalid as per the provided regular expression example 3 the test value in the following case is invalid as per the provided regular expression select other options as per requirement refer to this user manual link for details click "submit" to create a regex type custom field if the agent tries to enter the wrong regex, then the agent will receive an inline error for the regex field if the provided value does not match the defined pattern the validation for regex type custom field will be available in app framework, rule engine, and api also if a rule is created for a regex field already, but that regex field is modified, then that rule may not work
Have a question?
Our knowledgeable support team and an awesome community will get you an answer in a flash.
To ask a question or participate in discussions, you'll need to authenticate first.