What should I log to prove my chatbot complies with California SB 243?
Log each notice SB 243 asks for: when it was due, when your app showed it, and why. Log the decision, the rule version and the time, with keyed hashes in place of user ids and text, and you have an audit trail without storing chats. Chain the records together so a deleted or edited one shows.
By ComplyEdge · Updated
1. What should I log for each SB 243 duty?
SB 243 is in sections 22601 to 22606 of the California Business and Professions Code. None of them lists the logs to keep or how long to keep them. Work back from what each duty would need you to show:
- • The notice that it is AI, § 22602(a). The time it was shown, the session, the screen or channel, the language and the version of the wording.
- • The crisis referral, § 22602(b)(1). The time the user message was flagged, what flagged it, the time the referral was shown, and any referral that was due and not shown.
- • The protocol, § 22602(b). Each version of the text, the date it went live, and the address on your website where its details are published.
- • Users you know are minors, § 22602(c). The age status and where it came from, the AI disclosure, each break reminder, due at least every three hours, and the measures you use against sexually explicit content. This subdivision ends on December 31, 2026.
- • The notice about minors, § 22604. The version and the dates it was on each app, site or other format people use to reach the chatbot.
- • The annual report, § 22603. The count of referrals shown in the calendar year, and what you filed. How to count them.
Log the misses too. A log that holds only successes cannot show how often a notice that was due did not appear.
2. How do I keep an audit trail without storing user chats?
Record the decision in place of the conversation. Each record needs enough to show which rule ran, what it decided and when, and nothing that replays what the user said:
- • A code for what was found, such as a self-harm label, with no quote from the message.
- • A keyed hash of the text. A plain hash of a short message can be guessed by hashing likely messages. A keyed one cannot be tested that way without the key.
- • A keyed pseudonym for the user and the session, so one session can be found again without storing your own ids.
- • The rule version, so the decision can be read against the rules in force at the time.
- • The hash of the record before it, so a record that is edited, removed or moved breaks the chain.
- • The check and the notice as two records, joined by an id. The first says the notice was due. The second says it was shown.
3. A sample record
ComplyEdge writes these two records for one crisis referral. They come from a test run made on November 23, 2026, and show the fields that matter here. The first is the check of the user message. ComplyEdge read the message and did not store it:
{
"event_id": "29ce2523-5aee-4365-a34c-130c66286605",
"timestamp": "2026-11-23T22:27:11.327001+00:00",
"agent_id": "companion-app",
"session_id": "p1:53c6f0ad0dbd938b65b1be2bb0a4ae0e",
"user_id": "p1:85bf071013670eff8fc461e55ca0003b",
"age_status": "adult",
"age_source": "self_declared",
"jurisdiction": "US-CA",
"direction": "prompt",
"companion_assessment": "assessed",
"companion_labels": [
"expresses_self_harm"
],
"required_actions": [
{
"action": "show_crisis_referral",
"counted": true,
"due_at": "2026-11-23T22:27:11.327001Z",
"interval_key": "0d952102e8e78be3f2ed6d7f6def210aa28c992589eef0b3de071a60c2639dcc",
"jurisdiction": "US-CA",
"reason_code": "ca_22602b_crisis_referral",
"rule_ids": [
"us-ca-22602b-crisis-referral"
]
},
{
"action": "show_not_human_notice",
"counted": false,
"due_at": "2026-11-23T22:27:11Z",
"interval_key": "c1c92e8d6375fcb45b1f7553b032d2703555105387df00fcd375af023d4b07f4",
"jurisdiction": "US-CA",
"reason_code": "ca_22602a_reasonable_person_misled",
"rule_ids": [
"us-ca-22602a-not-human"
]
}
],
"text_hash": "73ddfd1c742a86547150650a585232503ba4cdcbb4e1aa2d9bdc93ac070367a9",
"text_hash_alg": "hmac-sha256-1",
"rulebook_version": "0.3.0",
"bundle_digest": "3f2a10796fc357c7d717fb3f20f43e541063d9bcfec27f1313e2c5529f1d29c5",
"chain_seq": 1,
"chain_prev": "",
"chain_hash": "508b35c8b8edf590a61cd830632a1f8c0a114965119b0ce429e3f38df0484976",
"retention_class": "retention-2557d",
"retention_erase_after": "2033-11-23T22:27:11.327001+00:00"
}
The second is written when the app confirms it showed the referral:
{
"event_id": "c0897326-4b46-46d3-a314-6d6305754b24",
"event_type": "notice",
"notice_kind": "crisis_referral",
"decision_ref": "29ce2523-5aee-4365-a34c-130c66286605",
"interval_key": "0d952102e8e78be3f2ed6d7f6def210aa28c992589eef0b3de071a60c2639dcc",
"issued_at": "2026-11-23T22:27:11.327001+00:00",
"timestamp": "2026-11-23T22:27:13.020734+00:00",
"channel_ref": "app",
"language": "en",
"source": "complyedge",
"statement_ref": "us-ca-22602b-crisis-referral",
"deciding_system_version": "2026.11.0",
"chain_seq": 2,
"chain_prev": "508b35c8b8edf590a61cd830632a1f8c0a114965119b0ce429e3f38df0484976",
"chain_hash": "7ce1553eaefe7fb15f0e58b0982e9e811ddb529f517cecae7725a10cd4a86a51",
"retention_class": "retention-2557d"
}
- •
decision_refin the second record is theevent_idof the first, andinterval_keynames the referral it answers. - •
companion_labelsholds the code only.text_hashis an HMAC-SHA-256 under your account's own key. - •
session_idanduser_idare keyed pseudonyms. Your own ids are not in the record. - •
chain_prevof the second record is thechain_hashof the first. - •
retention_classis seven years, the length used for companion chatbot records unless you choose another.
GET /v1/companion/session returns every record of a session, with each notice marked confirmed, missing or recommended, as JSON or as a PDF. The companion chatbot guide has the full file. A reviewer can check it on their own.
4. What should I keep in case my company is sued?
Under Business and Professions Code § 22605, a person who suffers injury in fact from a violation may sue for an injunction, for attorney's fees, and for
“the greater of actual damages or one thousand dollars ($1,000) per violation”
SB 243 does not say how violations are counted, so keep records that can be read one notice and one session at a time:
- • The notice records of section 1, misses included, with the app version that showed each one.
- • Every version of your protocol and your notices, with the dates each was live.
- • How detection worked on each date: the method, the model or threshold, your test results and each change.
- • What you fixed: complaints, misses you found, and what changed after each one.
- • Who reviewed what, and when, if a person reviews flagged sessions.
- • The dates your app did not run the check, such as an outage, recorded at the time.
Decide with your lawyer how long to keep each one, whether to keep conversation text, and when to stop deletion. Once a claim is expected, deleting records on the usual schedule can hurt you.
If you keep a conversation, ComplyEdge can record a keyed hash of it. Later your copy is checked against that hash, which shows it was not changed. How to record a kept conversation. A legal hold, on the Enterprise plan, stops the covered records from expiring until it is lifted.
5. What stays with you
- • The text, if you want it. ComplyEdge never stores the conversation, so a record shows what was decided and cannot show what was said. Keep the
event_idbeside your own copy and the two can be matched. - • Showing the notice and confirming it. ComplyEdge says a notice is due. The confirmation is your app saying it showed it.
- • Sending every message. ComplyEdge only knows what your app sends. It cannot show that your app sent everything.
- • Detection on the free plan. Reading what a message means needs a paid plan. On any plan you can send your own detector's result and get the same records.
- • The legal answer. Records are evidence. A court or a regulator decides whether you complied.
6. Where to read more
- Business and Professions Code § 22602: the notices and the protocol
- California SB 243 and companion chatbot laws: one session end to end, and the laws of other states
- California SB 243 annual report: what it holds and when it is due
- California SB 243 compliance tool: each duty and what is recorded
- Audit reconciliation: how a reviewer checks a record and the chain
- DPO pack: every field in the record