Skip to content
XICBOT

Settings

Deutsch
Law, privacy & accessibility

Setting Retention Periods for Chat Logs

How long chat logs may be kept: storage limitation under Article 5 GDPR, erasure under Article 17, anonymisation and when commercial retention duties apply.

In plain language

Data protection law says data may only be kept as long as it is needed for its purpose. The law does not give a fixed number of days. But you must say how long you keep data, or which rules you use to decide. A conversation goes through several stages, each with its own end. Making data anonymous is not deleting it, but it is a valid way to keep your statistics. Data under a stand-in name still counts as personal data. If a chat is about a trade deal between businesses, the business letter must be kept longer, not the whole chat.

13 min read By XICBOT

More on privacy and operation

The question about retention periods for chat logs is usually put the wrong way round. It is not: how long may we keep the conversations? It is: what do we still need them for? The Regulation names no figure for chat transcripts, and that is not an oversight but the system behind it. Anyone who picks a period by feel has merely postponed the work, because in a dispute the controller has to justify the figure, not the supervisory authority to disprove it. This article shows how a defensible period comes about: from the purpose, from the point where necessity ends, and from a justification that fits into the record of processing activities. Added to that are the difference between erasure and anonymisation, the special role of quality assurance, and the question of when a chat really does fall under commercial retention duties.

Retention periods for chat logs
Retention periods for chat logsEach stage ends where its own purpose endsReason for keeping the dataDuration from the trigger eventLive conversationsession and resumptiondaysOpen caseuntil closed, plus follow-upweeksQuality sampleseparate purpose, own periodmonthsDefence of legal claimslimitation period, Section 195 BGB3 yearsCommercial letter in chatSection 257(4) HGB6 yearsAnonymous metricsno personal reference leftno periodEnd of chat30 days90 days6 months3 years6 years
Each stage ends where its own purpose ends
Labels in the illustration
  • Reason for keeping the data
  • Duration from the trigger event
  • Live conversation
  • session and resumption
  • days
  • Open case
  • until closed, plus follow-up
  • weeks
  • Quality sample
  • separate purpose, own period
  • months
  • Defence of legal claims
  • limitation period, Section 195 BGB
  • 3 years
  • Commercial letter in chat
  • Section 257(4) HGB
  • 6 years
  • Anonymous metrics
  • no personal reference left
  • no period
  • End of chat
  • 30 days
  • 90 days
  • 6 months
  • 3 years
  • 6 years

Retention periods for chat logs

Why the law contains no fixed number

The principle of storage limitation requires that personal data be kept in a form which permits identification of data subjects for no longer than is necessary for the purposes for which the personal data are processed (Art. 5(1)(e) GDPR). The period is therefore not a property of the data but a consequence of the purpose. If the purpose changes, the period changes. If the purpose falls away, the permission falls away. The controller is responsible for compliance with this principle and must be able to demonstrate it (Art. 5(2) GDPR). Demonstrating here means writing down why exactly this duration is necessary.

Personal data shall be kept in a form which permits identification of data subjects for no longer than is necessary for the purposes for which the personal data are processed.
Regulation (EU) 2016/679 (GDPR), Article 5(1)(e)

Two further provisions turn the principle into a documented duty. At the time the data are obtained, the data subject must be told the period for which the personal data will be stored or, if that is not possible, the criteria used to determine that period (Art. 13(2)(a) GDPR). And the record of processing activities contains, where possible, the envisaged time limits for erasure of the different categories of data (Art. 30(1)(f) GDPR). Both places allow a criterion instead of a figure where the duration cannot be determined in advance. A criterion is, for example: until the case is closed plus a defined follow-up window. What is not a criterion: as required.

What a chat log actually contains

Before a period can be determined, it must be clear what is being discussed. A chat log is rarely a single file of messages. In practice several stores hang off one conversation, technically separate and therefore requiring separate erasure. Anyone who only looks at the message table leaves half of it behind. The following list helps you write down the full inventory once.

  • The message transcript itself, with timestamps and the attribution to visitor and assistant
  • The session identifier and whatever the window stores on the end device
  • Technical connection data such as IP address, browser details and the page path the message was sent from
  • Contact details handed over during the conversation, often held additionally as a record in the enquiry or ticket system
  • Tool calls made by the assistant and their results, for instance an order number looked up or an account balance
  • Attachments and uploaded images, which frequently live in a separate storage system
  • Ratings, thumbs and free-text feedback on individual answers
  • Analysis stores into which the transcript was copied for metrics and troubleshooting

More is personal data than one might assume at first glance. Covered is any information relating to an identified or identifiable natural person (Art. 4(1) GDPR). A conversation without a name can be linked to a person via the order number, the customer number or simply via the situation described. On top of that comes the free-text problem: visitors write things into a chat window that nobody asked for, including details about health or membership. Such details belong to the special categories whose processing is in principle prohibited under Art. 9(1) GDPR. For deletion planning this means: free text is the field with the highest risk and deserves the shortest period. How to handle uploaded content properly is described in the article on image uploads in chat.

A log is not one record but several

Treat the conversation as a single block and everything ends up under the period of the field needed longest. That is the most expensive route. The opposite direction makes sense: break the transcript down by field, give each field its purpose, and let the shortest purpose decide when that field disappears. A conversation can then drop out of the operational store after a few weeks while the derived case in the ticket system follows its own, longer rule.

Separate the purposes, then build stages

Personal data must be collected for specified, explicit and legitimate purposes and not further processed in a manner that is incompatible with those purposes (Art. 5(1)(b) GDPR). The staging follows from this purpose limitation. Running the conversation is a different purpose from handling a case, and both are different again from reviewing answer quality. Each of these purposes has its own end, and that end is usually an event rather than a date. The practical effect of this staging is considerable: the vast majority of conversations end at the first or second stage, with a question about delivery times or a product comparison, and nobody needs them after a few weeks. Only the small remainder that contains a case, a quote or a complaint moves up a stage at all. Anyone who implements this separation in the technology, rather than merely asserting it in a document, has solved the larger part of the deletion question. The table below shows the stages that have proven themselves in projects.

PurposeWhen necessity endsWhat remains afterwards
Run the live conversationWhen the session ends, plus a short window for resumptionNothing, if no case is open
Handle an open caseWhen the case is closedThe case in the specialist system, not the chat window
Answer follow-up questions about the caseAfter a defined follow-up window from closureThe reference to the case without the transcript
Review answer qualityWhen the sample has been evaluatedThe review result with no link to a person
Defend against abuse and attacksWhen the investigation is closedThe technical analysis of the incident
Defend legal claimsWhen the limitation period expires (Art. 17(3)(e) GDPR)The transcript under restricted processing
Evidence a commercial transactionWhen the commercial retention period expiresThe commercial letter in the document store

Anonymising is not the same as erasing

Many operators do not want to lose their conversations, because they contain what customers actually ask. There is a clean route for that, and it is not called keeping but anonymising. Recital 26 of the Regulation makes clear that the principles of data protection do not apply to anonymous information, namely information which does not relate to an identified or identifiable natural person, or to personal data rendered anonymous in such a manner that the data subject is not or no longer identifiable. Anyone who genuinely removes the personal reference leaves the scope of the Regulation and may keep the result.

The catch is in the word genuinely. Pseudonymisation is processing in such a manner that the personal data can no longer be attributed to a specific data subject without the use of additional information (Art. 4(5) GDPR). But that additional information still exists, otherwise it would not be pseudonymisation. A transcript in which the name has been replaced by a number while the mapping table sits next to it remains personal data and continues under the original period. The same goes for free text from which only the email address was removed while the history described in it remains in place.

  • Free text is not merely masked but discarded or reduced to a category
  • No key and no mapping table are left behind that could restore the link
  • The remaining attributes are not so rare that in combination they point back to a person
  • Connection data such as IP address and device identifier go with it, not in a second step later
  • The procedure is documented, repeatable and runs as a program rather than by hand
  • The result is spot-checked before the raw store is deleted
  • Erasing

    The record disappears, along with copies and references. It is the only route that also settles the free-text question for good. What has been erased does not have to be reviewed again later.

  • Anonymising

    The personal reference is removed irreversibly while the content stays available for analysis. The effort lies in demonstrating irreversibility, not in rewriting the fields.

  • Pseudonymising

    A safeguard for day-to-day operation and a recognised security measure (Art. 32(1)(a) GDPR). As a substitute for erasure it does not work.

  • Aggregating

    Many conversations become one metric. Take care with small groups: an evaluation that traces back to a single conversation is no longer a metric but a personal reference in another shape.

Logs kept for quality assurance

An assistant does not improve because it runs, but because someone reads its answers. That reading is a purpose of its own and needs a basis of its own. Legitimate interests may apply, provided that the interests or fundamental rights of the data subject do not override them (Art. 6(1)(f) GDPR); where the transcript is further processed for a purpose other than the one it was collected for, the link between the purposes, the context of collection, the nature of the data and the existence of appropriate safeguards must be taken into account, among other factors (Art. 6(4) GDPR). In practice the volume then decides: a sample, drawn under a fixed rule and deleted once evaluated, is something entirely different from a permanent second copy of every transcript. It also makes sense to separate the review result from the material reviewed. What follows from the read-through is a note about a missing answer in the knowledge base, not the transcript itself, as the article on evaluating chats shows in detail.

  • A fixed sampling rule instead of reviewing the entire store
  • A separate, short period for the review store, independent of the operational period
  • A named group of people with access, logged and reviewed at regular intervals
  • Separation of operational and analysis stores, so that an erasure reaches both
  • The derived output as the result: a gap in the knowledge base, not a copy of the conversation
  • A short written balancing test, produced before the first read-through rather than after it

What commercial law requires and what it does not

At this point the objection regularly comes up that chat transcripts are business letters and must therefore be kept for six years. It is worth looking at the provision itself. Every merchant is obliged, among other things, to keep in an orderly manner the commercial letters received and copies of the commercial letters sent (Section 257(1) nos. 2 and 3 HGB). What matters is the following subsection, which defines the term narrowly.

Commercial letters are only documents that concern a commercial transaction.
German Commercial Code (HGB), Section 257(2)

That settles the question, though differently from what the worry suggests. Information about opening hours does not concern a commercial transaction. A product comparison without an enquiry does not either. A conversation in which a concrete quote is given, an order is taken or a complaint is settled, however, certainly does. Such documents must be kept for six years (Section 257(4) HGB), starting at the end of the calendar year in which the commercial letter was received or sent (Section 257(5) HGB). Tax law imposes a parallel duty for commercial and business letters received and sent (Section 147(1) nos. 2 and 3 AO) with the same duration of six years (Section 147(3) AO).

  • The assistant issues a concrete quote with quantity, specification and delivery time
  • An order is taken during the conversation or confirmed there
  • A complaint or a reversal is negotiated and settled in the chat
  • A credit note, discount or goodwill gesture is promised in the conversation and later posted to the books
  • The transcript is the only place where an agreement reached is documented

Even in those cases the duty attaches to the transaction, not to the window. What must be kept is the part concerning the commercial transaction: the quote, the confirmation, the settlement. The practical route is therefore extraction: the relevant part moves as a document into the specialist or document system that is responsible for business records anyway, and the chat store then returns to its short period. Anyone who instead leaves the whole transcript in place for six years so that one case is covered is processing all the rest without a basis. A retention duty is not a right to retain everything sitting next to it: Art. 17(3)(b) GDPR only carries as far as a legal obligation actually exists.

Alongside retention stands limitation, and it is the second reason why a transcript may stay longer. The standard limitation period is three years (Section 195 BGB) and begins at the end of the year in which the claim arose and the creditor gained knowledge of the circumstances giving rise to it (Section 199(1) BGB). The right to erasure does not apply where processing is necessary for the establishment, exercise or defence of legal claims (Art. 17(3)(e) GDPR). Why this becomes practical precisely with an assistant is shown by the article on liability for statements made by the assistant: if a promise is in dispute, the transcript is the only record of what was actually said.

An exception is not the default

The exceptions under Art. 17(3) GDPR apply to individual transcripts that contain a claim, a complaint or a transaction. As a justification for keeping the entire store just in case, they do not work. In practice this means a flag: the transcript concerned is excluded from routine deletion, the exception is recorded with its reason and end date, and it is lifted again as soon as the reason falls away. Without that second step the number of exceptions grows to the point where it replaces the rule.

The deletion plan: classes, events, evidence

A deletion plan is not an essay but a table with a few columns. It lists every data type, names its purpose, the trigger event, the standard period and the place where deletion happens. The value lies not in its length but in the fact that every row can be answered. If a row has no purpose, the data type does not belong in the store. If a row has no trigger event, it will never be deleted. If a row has no implementation point, the period is a statement of intent.

  • Name every store belonging to a conversation, from the window to the analysis copy
  • Enter purpose and legal basis per store, in one sentence and without umbrella terms
  • Define the trigger event as something a program can detect
  • Derive the standard period and justify it in two sentences, so the justification exists in advance
  • Name the exceptions and settle who sets them, where they are recorded and when they end
  • Automate the deletion run and keep its log, without the deleted content
  • Include backups and processors, together with the question of how a restore catches up with the deletion state
  • Read the whole thing once a year against reality to see whether the periods still fit the actual workflow

Two places are almost always forgotten. The first is the backup. A backup can usually not be altered selectively without losing its verifiability; the customary route is therefore that backups expire under their own short period and that a restore catches up with the deletions made in the meantime. That procedure needs to be written down, otherwise deleted conversations come back after an incident. The second place is the processor: at the controller's choice, it deletes or returns all personal data after the end of the provision of services and deletes existing copies (Art. 28(3)(g) GDPR). Anyone who reads their contracts with this in mind often finds a period there that nobody has reconciled with their own. Where the data sits in the first place is described under privacy and hosting.

The automated run is the actual evidence

A period that sits in a document and that no program executes is an intention. It becomes demonstrable only through a run that starts at fixed intervals, works through its classes and records how many records it removed in each class. That log contains figures and timestamps but no content. It is the shortest and most robust answer to a supervisory authority asking whether the deletion plan is merely described or actually applied.

Erasure requests in day-to-day operation

Beside routine deletion stands the individual case. The data subject has the right to obtain erasure without undue delay, among other reasons where the data are no longer necessary for the purposes for which they were collected (Art. 17(1)(a) GDPR). A response to such a request must be provided without undue delay and in any event within one month of receipt; that period may be extended by two further months where necessary, taking into account the complexity and number of requests (Art. 12(3) GDPR). Where the data have been disclosed, every recipient must be informed of the erasure unless this proves impossible or involves disproportionate effort (Art. 19 GDPR).

In practice the difficulty is rarely the deleting and frequently the finding. A conversation without a login carries no name, and the person who held it knows neither the session identifier nor a case number. The Regulation takes account of this: where the controller is not in a position to identify the data subject, it is not obliged to maintain, acquire or process additional information in order to identify the data subject for the sole purpose of complying with the Regulation (Art. 11(1) GDPR). That is not an invitation to take it easy but a pointer to the right order of things: store little and you have little to search. For conversations behind a login the opposite applies, as the article on the internal assistant describes.

  • A search path that finds a conversation via the address or case number mentioned in the transcript
  • An identity check that does not demand more data than the attribution requires
  • Restriction of processing as an interim step while the check is running (Art. 18 GDPR)
  • A deletion path that reaches every store, including attachments and the analysis copy
  • A reply to the data subject stating what was deleted and what remains for which reason
  • A note about the request itself that works without the deleted content

The path to a defensible period

The order decides the effort. Start with the figure and you will spend the rest of the time arguing about feelings. Start with the inventory and the figure is in your hand at the end without having been searched for. The following steps can be worked through in a few days and produce a document that survives an audit.

  • Take inventory: which stores exist and which fields sit in them
  • Determine the purpose per store and check whether it still genuinely exists
  • Name, for each purpose, the event at which necessity ends
  • Derive the standard period from it and write the justification next to it in two sentences
  • Check which fields can already be removed before the period ends
  • Decide what lives on in anonymised form and describe the anonymisation procedure
  • Settle the exceptions: limitation, commercial letter, open complaint, each with an end date
  • Carry the periods into the notices under Art. 13 GDPR and into the record under Art. 30 GDPR
  • Set up the deletion run, exercise it once in full and record the result

What stands at the end is not a longer document but a smaller store. Most conversations disappear after weeks because after weeks nobody needs them. What remains, remains for a reason that has been written down, and it remains for as long as that reason holds. This eases not only the compliance burden but also day-to-day operation: a small store is faster to search, cheaper to back up and worth less to an attacker in the event of a breach. Which building blocks an assistant should bring along for this is described under features; how the interplay with existing systems can be organised is set out under integration. Where the periods for conversations, enquiries and logs are set separately in the account is described in the documentation.

Frequent questions

How long may a chat log be stored?

The Regulation gives no figure. The yardstick is necessity for the respective purpose (Art. 5(1)(e) GDPR). For a conversation with no open case the purpose ends shortly after the session; for a case in progress it ends when the case is closed plus a defined follow-up window. Longer periods need a reason of their own, such as the defence of legal claims or a commercial retention duty.

Is it enough to remove the name from the log?

Usually not. As long as the link can be restored using additional information, this is pseudonymisation (Art. 4(5) GDPR) and the data remain personal data. A transcript is anonymous only once the free text, the connection data and every mapping table have gone as well, and the remaining attributes do not point back to a person.

Do chat transcripts have to be kept for six years because they are business letters?

Only in so far as they concern a commercial transaction. Commercial letters are only documents that concern a commercial transaction (Section 257(2) HGB). Information about opening hours does not fall under this; a quote issued in the chat or a complaint settled there does. For such documents six years apply (Section 257(4) HGB) from the end of the calendar year (Section 257(5) HGB), and what must be kept is the relevant part, not the entire transcript.

What happens to chat logs in backups when someone requests erasure?

Backups usually cannot be altered selectively without losing their purpose. The customary route is to carry out the deletion in the active store immediately, let the backups expire under their own short period, and record for the case of a restore that the deletions made in the meantime are reapplied. That procedure belongs in the deletion plan so that it is actually carried out when it matters.

May conversations be kept in order to improve the assistant?

That is a purpose of its own with its own basis and its own period. Legitimate interests may apply (Art. 6(1)(f) GDPR), and for further processing the criteria in Art. 6(4) GDPR must be taken into account. What works in practice is a sample with a short period, named access and a result with no personal reference. A permanent second copy of every transcript is not what is meant.

How quickly must an erasure request be answered?

Information on the action taken must be provided without undue delay and in any event within one month of receipt of the request (Art. 12(3) GDPR). That period may be extended by two further months where necessary, taking into account the complexity and number of requests; the data subject must then be informed of the extension and its reasons within one month.

How does XICBOT handle your visitors' data?

Data processing agreement, deletion concept and data sovereignty are summarised on a page of their own.

Enquiry in three steps

  1. 1. Topic
  2. 2. Your case
  3. 3. Contact

What is this about?

One click is enough, everything else is optional.

Tell us briefly about your case

Everything in this step is optional. It helps us reply with something concrete straight away instead of asking back.

Enquiries per month, roughly (optional)
When should it start? (optional)
How can we reach you?

Name and email address are enough. We reply personally.

We use your details to handle your enquiry. More on this in the privacy policy.