Class AiAgent.Builder

  • Enclosing class:
    AiAgent

    public static final class AiAgent.Builder
    extends java.lang.Object
    • Method Detail

      • sourceType

        public AiAgent.Builder sourceType​(java.util.Optional<AiAgent.SourceType> sourceType)

        The type of the source that triggered AI Agent involvement in the conversation.

      • sourceTitle

        public AiAgent.Builder sourceTitle​(java.util.Optional<java.lang.String> sourceTitle)

        The title of the source that triggered AI Agent involvement in the conversation. If this is essentials_plan_setup then it will return null.

      • sourceTitle

        public AiAgent.Builder sourceTitle​(java.lang.String sourceTitle)
      • lastAnswerType

        public AiAgent.Builder lastAnswerType​(java.util.Optional<AiAgent.LastAnswerType> lastAnswerType)

        The type of the last answer delivered by AI Agent. If no answer was delivered then this will return null

      • resolutionState

        public AiAgent.Builder resolutionState​(java.util.Optional<AiAgent.ResolutionState> resolutionState)

        The resolution state of AI Agent. If no AI or custom answer has been delivered then this will return null.

      • rating

        public AiAgent.Builder rating​(java.util.Optional<java.lang.Integer> rating)

        The customer satisfaction rating given to AI Agent, from 1-5.

      • ratingRemark

        public AiAgent.Builder ratingRemark​(java.util.Optional<java.lang.String> ratingRemark)

        The customer satisfaction rating remark given to AI Agent.

      • ratingRemark

        public AiAgent.Builder ratingRemark​(java.lang.String ratingRemark)
      • createdAt

        public AiAgent.Builder createdAt​(java.util.Optional<java.lang.Integer> createdAt)

        The time when the AI agent rating was created.

      • createdAt

        public AiAgent.Builder createdAt​(java.lang.Integer createdAt)
      • updatedAt

        public AiAgent.Builder updatedAt​(java.util.Optional<java.lang.Integer> updatedAt)

        The time when the AI agent rating was last updated.

      • updatedAt

        public AiAgent.Builder updatedAt​(java.lang.Integer updatedAt)