Class IadvizeGraphQLClient

    • Constructor Detail

      • IadvizeGraphQLClient

        IadvizeGraphQLClient()
    • Method Detail

      • isAvailable

         final Boolean isAvailable(String distributionRule)

        Check if a rule is available for distribution

        Parameters:
        distributionRule - the distribution rule identifier
      • isCustomDataExist

         final Boolean isCustomDataExist(String conversationId, Pair<String, String> customData)

        Check if a custom data (key/value) exist for a given conversation

        Parameters:
        conversationId - the conversation identifier
        customData - the looked for custom data key/value pair
      • sendProactiveActionOrMessage

         final Boolean sendProactiveActionOrMessage(String conversationId, Integer chatBotId, ChatbotActionOrMessageInput actionOrMessage)

        Proactively send actions or messages to the visitor https://developers.iadvize.com/documentation/building-your-bot-on-iadvize#proactively-send-messages-to-the-visitor https://graphql.iadvize.dev/mutations/chatbotMessageSend

        Parameters:
        conversationId - the conversation identifier
        chatBotId - the id of your external bot at iAdvize in integer format
        actionOrMessage - the action or message to send