Package ai.tock.iadvize.client.graphql
Class IadvizeGraphQLClient
-
- All Implemented Interfaces:
public final class IadvizeGraphQLClientGraphQL client for iAdvize.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classIadvizeGraphQLClient.Companion
-
Field Summary
Fields Modifier and Type Field Description public final static IadvizeGraphQLClient.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description IadvizeGraphQLClient()
-
Method Summary
Modifier and Type Method Description final BooleanisAvailable(String distributionRule)Check if a rule is available for distribution final BooleanisCustomDataExist(String conversationId, Pair<String, String> customData)Check if a custom data (key/value) exist for a given conversation final BooleansendProactiveActionOrMessage(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. -
-
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 identifiercustomData- 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 identifierchatBotId- the id of your external bot at iAdvize in integer formatactionOrMessage- the action or message to send
-
-
-
-