# Privacy Policy

This document describes what data we collect and how we use it in our service.

### Data we collect

To make our service work as intended, we collect the following data provided by the Discord API:

* Message id;
* Channel id;
* Guild id;
* User id;
* Message content.

### How we use it

We use the message id to keep content up to date, editing and deleting messages from the database. We need the channel and guild identification to define where our service should work. We also use the guild identification (unique id, guild name, guild owner, and guild member count) for logging purposes. This allows us to make the service more secure and stable.

The message data (text and author id) is used in the text generation algorithm when the service is enabled. All the message content is encrypted and stored in a secure database with restricted access. These data are only collected if the service is enabled.

When the bot is added to your guild, it assumes it's allowed to collect and use the data. If you don't want to allow it to collect your message data or want to delete your stored messages from the current guild, see [Getting Started](/markov-bot/getting-started.md#privacy) to avoid this.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://knwbot.gitbook.io/markov-bot/terms/privacy-policy.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
