Anonymize a conversation or visitor data
iAdvize provides two GraphQL mutations to allow you to anonymize a conversation or a visitor. These will be used when you need to delete personal data at the request of the visitor.
In this article, we will describe:
How to identify conversations and visitors to anonymize
How to use GraphQL mutations to start the anonymization process
First of all, it's important to recall what these two mutations do
Description of mutations
What does ClosedConversationAnonymize do?
It deletes the messages exchanged during the conversation (including all messages, system messages, and attachments).
It also deletes the custom data linked to the conversation.
It does not delete the conversation object itself or the statistics associated with it.
What does VisitorAnonymize do?
It deletes all the information attached to the visitor, such as name, first name, email, phone number, etc. This could include information provided through custom data, information manually entered by agents from the iAdvize interface, or information provided through our APIs.
How to retrieve the list of conversations/visitors to be anonymized?
If you don't have development skills, that's not a problem. We invite you to use the Apollo interface to design and execute your queries. In this article, you'll find examples of ready-to-use queries and links to load them from Apollo. Don't forget to log in to your iAdvize administrator space beforehand, so that you have the necessary rights to execute graphQL queries.
Search for conversations containing a specific character string
To begin, you will likely need to identify the conversations and the associated visitors in order to request their anonymization. Generally, the need for anonymization follows a visitor’s request, who will provide his name, first name, email to perform a search, but rarely the conversation ID he participated in.
From GraphQL, you can search for the list of conversation IDs that contains a specific string over a given period. From the same query, you can also retrieve the visitor profile ID associated with each conversation. Here is an example of a query:
You can also load this query directly from your Apollo interface (make sure you are properly connected to your iAdvize administration to be authorized to execute the query).
Operation
Variables
iAdvize keeps conversation data (messages and custom data) for 3 years by default. The retention period may be shorter if requested by the customer. To ensure that your search is exhaustive, we recommend that you carry out your search over the last 3 years from today's date.
Response (example)
Retrieve the IDs of the conversations and visitors you want to anonymize this way.
Search for a visitor by email or phone number
If searching the content of conversations doesn't produce any results, you can also search visitor data using an email or phone number.
In this case, you'll need to use the following Query graphQL to retrieve the id of one or more visitors, which you'll then need to anonymize:
Operation
Variables
Response
How to anonymize the content of a conversation?
You need to execute the following GraphQL mutation to anonymize a conversation. Here is an example of a GraphQL request accessible from your Apollo interface.
Operation
Variables
Response
Error
for example, when you try to anonymize a conversation a second time.
You can use the "succeeded" field to know if the operation was successful. If successful, it will be present with a value of "true." In case of an error, this field is absent, and a JSON "errors" array is returned.
How to anonymize the data of a visitor?
When you anonymize a conversation, we also recommend anonymizing the visitor associated with it. This way, you will delete the personal data contained in both the conversation and the visitor who initiated it. Here is an example of graphQL request accessible from your Apollo interface.
Operation
Variables
Response
Error
For example, when you try to anonymize a wrong Visitor ID.
The visitor ID present in GraphQL is not the same as the visitor ID displayed in the iAdvize administration (conversation log). It is therefore necessary to systematically use GraphQL to retrieve the visitor ID to be anonymized starting from the conversation and its ID (query `closedConversations`).
Last updated