Dispatch Rule
Last updated
Last updated
This system configures the allocation of conversations to either a human agent or an AI agent based on specific rules. After processing through these rules, the conversation is assigned accordingly. If no agent is assigned due to rule conditions not being met or absence of an available agent, the conversation's status is set to UNASSIGNED. Each group within the system is linked to a particular rule, and without a rule, the group's conversations are automatically set to UNASSIGNED. All incoming messages to a conversation are processed through these rules to determine the appropriate allocation. If the allocation conditions are not met, the conversation retains its current allocation or changes to UNASSIGNED if no suitable agent is found.
Types of Rule Implementation
The system supports two methods of rule implementation: Java bean or Groovy script.
Implementation via Java Bean
Java bean implementation involves coding the rules within the system and then specifying them in the configuration. An example of such a rule setup includes:
Abbott Rule: Configures the operational hours of the AI agent throughout the week.
During AI agent's hours: When a message arrives, if linked to a group and this rule, the AI agent is assigned to handle and respond to the conversation.
Outside AI agent's hours: The rule randomly assigns a human agent from the group to manage the conversation, and the AI agent does not respond automatically.
Implementation via Groovy
Groovy implementation allows for direct configuration through the user interface (UI). For instance:
All incoming messages that are linked to a group and this specific rule will be reassigned to an AI agent for handling.
Java Class: RuleReq
This class handles the input information needed to run a rule:
Java Class: ResultAssignInfo
This class contains details about the assignment result and additional metadata:
Java Class: ConversationMetaData
This class provides metadata specific to conversations, especially sub-conversations:
Java Class: RuleResp
This class outputs the results after the rule execution, specifying the assigned agent or AI agent IDs:
These classes collectively ensure the efficient management and allocation of conversations within the system based on dynamic and configurable rules.