# Logs

The **Logs** page records the conversations visitors have with the chatbot,
so you can see what they ask and how the chatbot answers.

## Recording conversations

**Enable logging** starts recording; it is off for a new chatbot. From then on
SleekAI stores each visitor message and each completed reply on the server,
whether the reply was streamed or polled and whether the chatbot uses
[file search](/docs/ai/chatbots/data.md#synchronizing-to-openai-file-search).
Turning logging off stops recording and keeps what was recorded.

## Reading the logs

**Logged conversations** lists the recorded conversations, newest first, 50 to
a page, with their date and number of messages. Open a row to read the
conversation in the preview pane beside the page, which opens with it. The selected conversation
and the page number are kept in the address, before the `#`, as `log` and
`paged`, so a link can open one conversation; a page past the last one opens
the last.

Select conversations and delete them with the button that counts them, such
as **Delete 2 logs**; with none selected, **Delete all logs** removes every
conversation of the chatbot. Either asks first, since deleted logs cannot be
restored.

From the command line, `wp sleek ai chatbot logs` lists a chatbot's
conversations and `wp sleek ai chatbot logs-delete` removes them; see the
[CLI reference](/docs/ai/reference/cli.md).

## Privacy

Logged conversations contain whatever visitors type. Before you turn logging
on:

- tell visitors that conversations are recorded, for example in the welcome
  message or your privacy policy;
- follow the privacy rules that apply to your site;
- decide how long to keep them. A retention period set with
  `wp sleek ai settings update retention.days 30` deletes logs, like chats,
  once they are older than that; see [Chat](/docs/ai/chat.md#keeping-chats-for-a-limited-time).
