A close-up of a hand holding a phone with blurred chat bubbles against evening city lights in Bangkok.
AI at work

Customer-service chatbots under the PDPA: what to tell users and how long to keep chats

Customers type their names, phone numbers, order numbers, sometimes their medical history. Every line is personal data your chatbot collects. Here is what Thailand's PDPA and the PDPC's AI guideline say about it.

Published 10 min readBy
In short

A customer-service chatbot is a channel through which a business collects personal data every time a customer types, so Section 23 of Thailand's PDPA notice duty applies from the first message. The PDPC's AI guideline adds that users should be told up front they are talking to an automated system. This article helps service, IT and DPO teams set notices, chat logs and error handling.

  • Chat messages are personal data collection: Section 23 PDPA notice must be given before or at the time of collection.
  • The PDPC AI guideline (Annex C, Q3.3) says users should be told from the start that they are talking to an automated system.
  • Using chats to train or fine-tune a model must be disclosed separately from using them to answer questions (section 4.4).
  • The same guideline asks for detailed logs for investigations and for masking personal data in logs; design for both.
  • A bot that reveals another customer's data may be a breach: assess it and notify the PDPC Office within 72 hours if Section 37(4) applies.

Online shops, hospitals, insurers and banks now put a chatbot in front of their service desks. Customers type names, phone numbers, addresses and order numbers. Some send a photo of their ID card or describe symptoms without being asked.

Each of those messages is collection of personal data under Thailand's Personal Data Protection Act B.E. 2562 (2019), the PDPA. The data controller is the business running the bot, not the software vendor. This article goes through what the law requires and what the Personal Data Protection Committee (PDPC) guidance adds.

Do you have to tell customers they are talking to a bot?

No PDPA section says so in terms. The PDPC AI guideline, however, answers the question directly in its FAQ annex: organisations should tell users, from the start, that they are communicating with an automated system.

ควรแจ้งให้ทราบ ตามหลักความโปร่งใส (Transparency) องค์กรควรแจ้งให้ผู้ใช้งานทราบตั้งแต่ต้นว่ากำลังสื่อสารกับระบบอัตโนมัติ เพื่อให้ผู้ใช้งานตระหนักถึงข้อจำกัดและความเสี่ยงที่อาจเกิดขึ้น
The text PDPC guideline on personal data protection in AI development and use, version 1.0 (guidance, not law; Thai only) · Annex C, Q3.3Guidance, not law; uses "should"

In English, the passage says the organisation should inform users from the outset that they are dealing with an automated system, so they understand its limits and risks. In practice that is the first line of the bot: "This is our automated assistant. It can help with orders and delivery. Type 'agent' to reach a person." Short, honest, with a way out.

A friendly bot name is fine. A name, photo and tone designed to make customers believe they are chatting with a human employee works against the transparency principle the guideline relies on.

What must the privacy notice add for a chatbot?

The binding duty is Section 23 of the PDPA: the controller must inform the data subject before or at the time of collection. A chatbot collects from the first message, so the notice has to be reachable before the customer starts typing, not buried in a site footer.

In collecting the Personal Data, the Data Controller shall inform the data subject, prior to or at the time of such collection, of the following details, except the case where the data subject already knows of such details:
The text Personal Data Protection Act B.E. 2562 (2019) · Section 23, paragraph one
(3) the Personal Data to be collected and the period for which the Personal Data will be retained. If it is not possible to specify the retention period, the expected data retention period according the data retention standard shall be specified;
The text Personal Data Protection Act B.E. 2562 (2019) · Section 23 (3)The notice must state how long chats are kept

The PDPC AI guideline builds on Section 23 in its checklist for organisations that buy or deploy AI, recommending that the notice also say AI is used, including to interact with people.

ปรับปรุงประกาศความเป็นส่วนตัวเพื่อแจ้งวัตถุประสงค์ให้ครอบคลุมในบริบทการใช้ AI เช่น มีการนำข้อมูลส่วนบุคคลไปใช้ในการฝึกฝน AI และผลกระทบที่อาจเกิดขึ้นให้เจ้าของข้อมูลทราบ โดยยึดหลักการในมาตรา 23 รวมถึงควรแจ้งว่ามีการนำ AI มาใช้ เช่น ในการประมวลผล สร้างเนื้อหา หรือโต้ตอบกับมนุษย์
The text PDPC guideline on personal data protection in AI development and use, version 1.0 (guidance, not law; Thai only) · Annex B, item 3 (privacy notice)

That checklist item asks organisations to update the notice to cover AI purposes, such as training on personal data, and to say that AI is used to process data, generate content or interact with humans.

What a chatbot privacy notice should answer
TopicExample wordingSource
PurposeWe use chat messages to answer questions, track orders and pass cases to staffPDPA Section 23 (1)
Data and retentionWe keep messages, account name and timestamps for ... months (set by the organisation)PDPA Section 23 (3)
RecipientsThe chatbot platform and the AI model provider, as data processorsPDPA Section 23 (4)
Contact and DPOEmail or form for the data protection officerPDPA Section 23 (5)
RightsAccess, erasure, objection, correction of chat records about youPDPA Section 23 (6)
Use of AIThe assistant in this chat is an AI system that replies automaticallyPDPC AI guideline, Annex B item 3 (guidance)
TrainingWe do not use chats to train models, or, if we do, say so herePDPC AI guideline, section 4.4 (guidance)

The retention cell is left blank on purpose. The law sets no number for chatbots; the organisation picks one based on need and writes it into the notice. For the full notice, see the privacy notice guide.

Can you use customer chats to train or fine-tune a model?

The PDPC AI guideline separates two uses: feeding data in to get an answer (inference), and using data to make the system smarter (training or fine-tuning). The notice should name both clearly.

โดยเฉพาะการแจ้งว่าจะนำข้อมูลไปใช้เพื่อการอนุมานผลลัพธ์ (Inference) ซึ่งเป็นการนำข้อมูลเข้าสู่ระบบเพื่อให้ได้คำตอบหรือผลลัพธ์ตามบริการที่ร้องขอ และการนำข้อมูลไปใช้เพื่อการพัฒนาและปรับปรุงโมเดล (Training/Fine-tuning) ซึ่งเป็นการนำข้อมูลไปฝึกฝนให้ระบบมีความฉลาดหรือแม่นยำยิ่งขึ้น
The text PDPC guideline on personal data protection in AI development and use, version 1.0 (guidance, not law; Thai only) · Section 4.4

The passage singles out disclosure that data will be used for inference, to produce the answer the user asked for, and for training or fine-tuning, to make the model more capable or accurate. A bot that only answers questions is doing inference. Reusing past transcripts to tune the model is a new purpose. The guideline's FAQ (Q2.1) says this may fall outside the original purpose unless a Section 21 exception applies; otherwise, notify the new purpose and seek consent.

The same guideline (Annex C, Q4.1) prefers enterprise AI services backed by a data protection agreement over public tools. For staff pasting customer data into public AI, see our article on ChatGPT at work.

How detailed should chat logs be?

The PDPC AI guideline answers this in two places that look, at first, like they disagree. Section 8.1, on breach handling, asks for logs that capture both user input and the system's output, so investigators can trace which prompt caused a leak.

ระบบบันทึกควรสามารถเก็บรายละเอียดของข้อมูลนำเข้า (Input Data) และผลลัพธ์ที่ตอบกลับ (Output Generation) ในแต่ละธุรกรรม
The text PDPC guideline on personal data protection in AI development and use, version 1.0 (guidance, not law; Thai only) · Section 8.1, recommended practice

That sentence says the logging system should record input data and generated output for each transaction. The FAQ annex of the same document (Q6.5) then advises logging only what is necessary and avoiding personal data from prompts or outputs in logs, or masking it first.

ควรบันทึกเท่าที่จำเป็นและมีมาตรการคุ้มครอง ควรบันทึก Metadata ที่สำคัญ เช่น ใคร ทำอะไร เมื่อไหร่ เพื่อการตรวจสอบ แต่ควรหลีกเลี่ยงการบันทึกข้อมูลส่วนบุคคลใน Prompt หรือ Output ลงใน Log โดยตรง หรือควรทำการ Masking ข้อมูลก่อนบันทึก เพื่อลดความเสี่ยงหากไฟล์ Log นั้นรั่วไหล
The text PDPC guideline on personal data protection in AI development and use, version 1.0 (guidance, not law; Thai only) · Annex C, Q6.5

Both can be met with a two-layer design. Layer one is metadata: time, conversation ID, model version and the system prompt in force, kept every time. Layer two is the conversation text, with ID numbers, phone numbers and sensitive details masked, access restricted and a deletion date set. This design is the AIPDPA team's suggestion, not wording from the guideline.

A suggested split for chatbot logs (team suggestion, not a legal requirement)
Log layerWhat it holdsWho can open itWhy
MetadataTime, conversation ID, model version, system promptIT and auditorsPDPC AI guideline section 8.1 and Annex B item 5
Conversation textCustomer messages and replies, with identifiers maskedOnly staff investigating or handling a rights requestPDPC AI guideline Annex C, Q6.5
AttachmentsID photos, documents, receiptsThe agent handling that caseStore separately and delete as early as the work allows

Whatever period you choose must match what the notice says under Section 23 (3). If another law requires you to keep logs, see 90-day logs versus erasure.

Is it a breach if the bot reveals another customer's data?

It can be. ETDA's Generative AI guideline describes an HR chatbot that used one employee's personal data to answer another employee's question. A customer bot that pulls records from back-office systems carries the same risk.

Risk to data privacy (Data Privacy) — the Generative AI Chatbot answers an employee's question by using the personal data of one employee to answer the question of another employee.
The text Generative AI Governance Guideline for Organizations (AI Governance Center, ETDA) — guidance, not law · 3.3, Example 1, risksETDA guidance, not law

For outsiders who type crafted instructions to make the bot spill data (prompt injection), the PDPC AI guideline says this may be a personal data breach and points back to the statutory notification duty.

อาจถือเป็นเหตุการละเมิดข้อมูลส่วนบุคคล หากการโจมตีนั้นส่งผลให้ระบบ AI เปิดเผยข้อมูลส่วนบุคคลของผู้อื่นออกมาโดยไม่ได้รับอนุญาต องค์กรควรดำเนินการประเมินความเสี่ยงและแจ้งเหตุการละเมิดข้อมูลส่วนบุคคลหากเข้าเงื่อนไขตามมาตรา 37 (4)
The text PDPC guideline on personal data protection in AI development and use, version 1.0 (guidance, not law; Thai only) · Annex C, Q4.3

The passage says prompt injection may count as a breach if it causes the AI to disclose other people's personal data without authorisation, and that the organisation should assess the risk and notify if Section 37(4) conditions are met. That section requires notice to the PDPC Office without delay and, where feasible, within 72 hours of becoming aware, unless the breach is unlikely to result in a risk to individuals. The step-by-step process is in the first 72 hours of a breach. Metadata logs are what let you say what the bot told whom, and when.

The bot gives customer A's parcel status to customer B because order numbers are similarAssess as a breach

Personal data reached someone without a right to it. Assess the risk under Section 37(4) and record the decision even if no notice is needed.

Someone tricks the bot into revealing its system prompt, but no customer dataSecurity incident

No personal data left, but fix the weakness and keep evidence; next time it may not stop at the system prompt.

A customer sends an ID card photo nobody asked forNot a breach, still needs handling

The data is now held by the organisation. Have a routine to delete or mask unnecessary files.

What if the bot says something wrong about a customer?

Section 35 of the PDPA requires the controller to keep personal data accurate, up to date, complete and not misleading. The PDPC AI guideline explains that AI output about an identifiable person is personal data too, and that technical fallibility does not excuse the controller from the accuracy duty.

ผู้ควบคุมข้อมูลส่วนบุคคลจึงควรแจ้งข้อจำกัดด้านความถูกต้องของผลลัพธ์ให้ผู้ใช้ทราบอย่างชัดเจน และจัดช่องทางให้เจ้าของข้อมูลส่วนบุคคลขอแก้ไขหรือระงับการแสดงผลลัพธ์ที่ไม่ถูกต้องเกี่ยวกับตน ซึ่งอาจดำเนินการผ่านตัวกรองผลลัพธ์ (Output Filter) ได้ในระหว่างที่การแก้ไขในตัวโมเดลยังไม่อาจกระทำได้ในทางเทคนิค
The text PDPC guideline on personal data protection in AI development and use, version 1.0 (guidance, not law; Thai only) · Section 9.4

The guideline recommends telling users clearly about the accuracy limits of outputs, and giving data subjects a way to correct or suppress inaccurate outputs about them, for example through an output filter while fixing the model itself is not yet technically possible. In practice: state the bot's limits in its greeting, give customers a button to flag a wrong answer, and route that flag to a person who fixes the source. If the bot answers from your own knowledge base (RAG), fixing the source document is usually faster than fixing the model.

Example: The customer service department creates a chatbot to help answer customer questions, using RAG techniques to bring the organization's product information and frequently asked questions (FAQ) to help answer questions.
The text Generative AI Governance Guideline for Organizations (AI Governance Center, ETDA) — guidance, not law · Customizer model, example

ETDA classifies this set-up as the "Customizer" model: the organisation combines its own data with a pre-trained model. That gives the organisation more control over answers than it often assumes, because it controls the documents the bot reads.

What should you check before the bot goes live?

  1. The first message says it is automated, what it can handle and how to reach a person.
  2. A link to the privacy notice sits in the chat window before the customer types, and the notice covers Section 23 in full, including chat retention.
  3. Decide whether chats will be used to train or tune a model, and set the vendor options to match the notice.
  4. Have a Section 40 data processing agreement with the chatbot platform and the model provider.
  5. Split logs into metadata and conversation text, mask identifiers and set a deletion date.
  6. Limit the bot to data of customers who have verified their identity, and test that asking about someone else returns nothing.
  7. Offer a way to flag wrong answers and to exercise rights, such as a copy or erasure of chats.
  8. Rehearse who assesses and who decides on notifying the PDPC Office within 72 hours if the bot leaks data.

The PDPC AI guideline (Annex B item 1) also recommends a DPIA where AI is used for automated decisions, sensitive data or large volumes of children's data, so a hospital or clinic bot should be assessed first. If the bot starts deciding things that affect customers, such as approving or rejecting requests, read customers asking for human review of automated decisions.

In AIPDPA, teams register the chatbot in the AI registry and work through the PDPC AI-guideline checklist in one place; if something goes wrong, the breach register counts 72 hours from the time of awareness. You can start with the free AI risk check, no sign-up needed.

Frequently asked questions

Our bot only follows scripted buttons, no AI. Does the PDPA still apply?

Yes. If it collects names, phone numbers or anything that identifies a customer, Section 23 applies whether or not AI is involved. The PDPC AI guideline's extra recommendations apply to AI systems.

Do we need consent before every chat?

Not always. Answering a question the customer asked may rest on another Section 24 basis, but Section 23 notice is always required. Training models or marketing on chats needs its own basis. See the lawful basis guide.

Can a customer ask us to delete their chat history?

Yes, under PDPA Section 33 when its conditions are met. You should be able to find one customer's chats by conversation ID or account, so build the log structure for that from day one.

Our chatbot vendor is overseas. What else do we need?

Check the cross-border transfer rules in PDPA Sections 28 and 29 and name the recipients in the notice. See the cross-border transfer guide.

Is the PDPC AI guideline binding law?

No. It is guidance written with "should", but it shows what the PDPC Office expects. PDPA duties such as Section 23 and Section 37(4) are binding now.

Law and sources

  1. Personal Data Protection Act B.E. 2562 (2019) — Section 23 · Section 37 (4)
  2. PDPC guideline on personal data protection in AI development and use, version 1.0 (guidance, not law; Thai only) — 8.1 · 9.4 · Annex B, item 3 · Annex C, item 3.3 · 4.3 · 6.5
  3. Generative AI Governance Guideline for Organizations (AI Governance Center, ETDA) — guidance, not law — 3.3 Example 1

Text in the "The text" boxes is copied word for word from AIPDPA's legal knowledge base, transcribed from the Royal Gazette and official documents; every edit is checked by the system against that base, character by character. English wording is an unofficial translation; the Thai text prevails. This article is general information, not legal advice for a particular case.

Do it in the system

Phuwara Krobtaku

Who stands behind this guide?

Written by the AIPDPA legal team · Content owner: Phuwara Krobtaku, Attorney-at-law · Thai Barrister-at-Law · technology & intellectual property counsel

Lawyer's licence no. 477/2558 · Thai Barrister-at-Law · LL.M. in Intellectual Property & IT Law (Gold Medal)

Keep reading