Interface ChatStateEventListener


  • public interface ChatStateEventListener
    The ChatStateEventListener is an interface that implements the event functions to be called on changes of the chat state. The ChatStateEventListener is only available in the novomind iAGENT routing process and can be implemented as RoutingPlugin.
    Since:
    12.29
    • Method Detail

      • chatStateChanged

        default void chatStateChanged​(ChatStateChangedEvent chatStateChangedEvent)
        This method is called after a change of the chat state within the novomind iAGENT routing process. Please note that this method is the default method to be called for all kinds of chat state change events. If you would like to listen to only one type of chat state change event, please implement one of the more specific methods.
        Parameters:
        chatStateChangedEvent - provides information about the event.
        Since:
        12.29
      • chatStateChanged

        default void chatStateChanged​(ChatStartedEvent chatStartedEvent)
        This method is called when a chat has been started.
        Parameters:
        chatStartedEvent - provides information about the event.
        Since:
        12.29
      • chatStateChanged

        default void chatStateChanged​(ChatQueuedEvent chatQueuedEvent)
        This method is called when a chat has been queued. Please note that this method is the default method to be called for all kinds of chat queued events. If you would like to listen to only one type of chat queued event, please implement one of the specific methods. This method will never be called directly from the backend. The method will only be called by the more specific default methods.
        Parameters:
        chatQueuedEvent - provides information about the event.
        Since:
        12.29
      • chatStateChanged

        default void chatStateChanged​(ChatEnqueuedEvent chatEnqueuedEvent)
        This method is called when a chat has been queued after it has been started.
        Parameters:
        chatEnqueuedEvent - provides information about the event.
        Since:
        12.29
      • chatStateChanged

        default void chatStateChanged​(ChatRequeuedEvent chatRequeuedEvent)
        This method is called when a chat has been queued again. Please note that this method is the default method to be called for all kinds of chat requeued events. If you would like to listen to only one type of chat requeued event, please implement one of the specific methods. This method will never be called directly from the backend. The method will only be called by the more specific default methods.
        Parameters:
        chatRequeuedEvent - provides information about the event.
        Since:
        12.29
      • chatStateChanged

        default void chatStateChanged​(AgentChatRequeuedEvent agentChatRequeuedEvent)
        This method is when a chat has been queued again after being assigned to an agent.
        Parameters:
        agentChatRequeuedEvent - provides information about the event.
        Since:
        12.29
      • chatStateChanged

        default void chatStateChanged​(BotChatRequeuedEvent botChatRequeuedEvent)
        This method is called when a chat has been queued again after being assigned to a bot.
        Parameters:
        botChatRequeuedEvent - provides information about the event.
        Since:
        12.29
      • chatStateChanged

        default void chatStateChanged​(ChatRoutedEvent chatRoutedEvent)
        This method is called when a chat has been routed. Please note that this method is the default method to be called for all kinds of chat routed events. If you would like to listen to only one type of chat routed event, please implement one of the specific methods. This method will never be called directly from the backend. The method will only be called by the more specific default methods.
        Parameters:
        chatRoutedEvent - provides information about the event.
        Since:
        12.29
      • chatStateChanged

        default void chatStateChanged​(AgentChatRoutedEvent agentChatRoutedEvent)
        This method is called when a chat has been routed to an agent.
        Parameters:
        agentChatRoutedEvent - provides information about the event.
        Since:
        12.29
      • chatStateChanged

        default void chatStateChanged​(BotChatRoutedEvent botChatRoutedEvent)
        This method is called when a chat has been routed to a bot.
        Parameters:
        botChatRoutedEvent - provides information about the event.
        Since:
        12.29
      • chatStateChanged

        default void chatStateChanged​(ChatResubmittedEvent chatResubmittedEvent)
        This method is called when a chat has been resubmitted. Please note that this method is the default method to be called for all kinds of chat resubmitted events. If you would like to listen to only one type of chat resubmitted event, please implement one of the specific methods. This method will never be called directly from the backend. The method will only be called by the more specific default methods.
        Parameters:
        chatResubmittedEvent - provides information about the event.
        Since:
        12.29
      • chatStateChanged

        default void chatStateChanged​(AgentChatResubmittedEvent agentChatResubmittedEvent)
        This method is called when a chat has been resubmitted by an agent.
        Parameters:
        agentChatResubmittedEvent - provides information about the event.
        Since:
        12.29
      • chatStateChanged

        default void chatStateChanged​(ChatQuitEvent chatQuitEvent)
        This method is called when a chat has been quit. Please note that this method is the default method to be called for all kinds of chat quit events. If you would like to listen to only one type of chat quit event, please implement one of the specific methods. This method will never be called directly from the backend. The method will only be called by the more specific default methods.
        Parameters:
        chatQuitEvent - provides information about the event.
        Since:
        12.29
      • chatStateChanged

        default void chatStateChanged​(AgentChatQuitEvent agentChatQuitEvent)
        This method is called when a chat has been quit by an agent.
        Parameters:
        agentChatQuitEvent - provides information about the event.
        Since:
        12.29
      • chatStateChanged

        default void chatStateChanged​(CustomerChatQuitEvent customerChatQuitEvent)
        This method is called when a chat has been quit by a customer.
        Parameters:
        customerChatQuitEvent - provides information about the event.
        Since:
        12.29
      • chatStateChanged

        default void chatStateChanged​(ChatClosedEvent chatClosedEvent)
        This method is called when a chat has been finally closed. Please note that this method is the default method to be called for all kinds of chat closed events. If you would like to listen to only one type of chat closed event, please implement one of the specific methods. This method will never be called directly from the backend. The method will only be called by the more specific default methods.
        Parameters:
        chatClosedEvent - provides information about the event.
        Since:
        12.29
      • chatStateChanged

        default void chatStateChanged​(AgentChatClosedEvent agentChatClosedEvent)
        This method is called when a chat has been finally closed by an agent.
        Parameters:
        agentChatClosedEvent - provides information about the event.
        Since:
        12.29
      • chatStateChanged

        default void chatStateChanged​(BotChatClosedEvent botChatClosedEvent)
        This method is called when a chat has been finally closed by a bot.
        Parameters:
        botChatClosedEvent - provides information about the event.
        Since:
        12.29
      • chatStateChanged

        default void chatStateChanged​(SupervisorChatClosedEvent supervisorChatClosedEvent)
        This method is called when a chat has been finally closed by a supervisor.
        Parameters:
        supervisorChatClosedEvent - provides information about the event.
        Since:
        12.29
      • chatStateChanged

        default void chatStateChanged​(SystemChatClosedEvent systemChatClosedEvent)
        This method is called when a chat has been finally closed by the system.
        Parameters:
        systemChatClosedEvent - provides information about the event.
        Since:
        12.29