What belongs in a bot’s error log?
A log helps connect a failure to an action and investigate its cause. That does not necessarily require complete conversations, passwords or tokens.
A working example
For a failed save, the operation type, time, error code and request reference may be useful. A participant’s full questionnaire might be irrelevant to the failure and expose unnecessary personal information.
This is a fictional example explaining a rule, not actual customer data.
What to check and discuss with your developer
- Define why each logged field is needed.
- Exclude credentials and unnecessary personal details.
- Restrict access to logs.
- Agree retention and deletion rules.
You do not need to write code yourself. Tell your developer what result you need and ask them to show you an example.
How to check the result
Review an example as a support colleague. There should be enough detail to investigate without exposing someone’s private history.
A product from my portfolio
MaraFit ↗