MailDesk docs
AI features

Data sent to the AI provider

4 min read Odoo 18.0

This page lists what MailDesk AI sends to your AI provider, when it sends it, and what MailDesk stores afterwards. The list is based on the Pro module code for the version described here.

Who this is for: administrators, data protection officers and security reviewers. You need: nothing. This page is for reading.

What is sent, and when

AI requests go from your Odoo server to the provider you configured. Nothing goes to the provider while AI is off or no provider is active. Exceptions for Odoo's own AI service are listed below.

Trigger You click? What the provider receives
Check with AI on an email Yes The sender address (first 200 characters) and the email text with HTML removed (first 4,000 characters). Not the thread, not attachments
Summarize, Draft a reply, Ask AI Yes The thread messages (sender, recipients, date, subject, plain text), your question or instruction and the chat so far. Mailbox context and tone if set
Find (plain-language search) Yes Your search text (first 500 characters). MailDesk turns it into a search and runs the search in Odoo; the found emails are not sent for this step
Ask about an attachment Yes, and the mailbox must be opted in The content of that one attachment
Ask AI in the HTML editor Yes Your prompt and the previous turns of that dialog
Opening a thread No If AI is on for the mailbox, MailDesk can queue a summary of that thread. It sends up to the last 30 messages of the thread. This is not switched off by Automatic AI summaries; only the mailbox's AI switch stops it
Background summary No See below

An email's text is converted to plain text before it is sent. MailDesk marks email text as untrusted data inside the request (<UNTRUSTED_EMAIL_DATA>) and tells the model to treat it as content, not as instructions. This lowers the risk of a hidden instruction in an email. It cannot rule it out.

Background summaries

For each mailbox where Enable AI features and Automatic AI summaries are on (both are on by default), MailDesk queues a summary for each new, unread Inbox message. It starts after the first new message arrives; existing mail is not processed. A cron job sends the requests. A summary is made once per message content.

Each request contains:

  • the mailbox address and the company name, and Team / Mailbox Context (first 1,000 characters) if set;
  • the sender (first 200 characters) and subject (first 300 characters) of the new message;
  • the text of the new message, and the sender, subject and text of up to four earlier messages in the same thread.

Message text is cut to 24,000 characters per message by default. Attachments are not sent.

To stop it, switch Automatic AI summaries off on the mailbox, or Background AI Enrichment off in MailDesk ▸ Configuration ▸ MailDesk Settings ▸ Settings. A summary that already exists stays.

What is not sent

  • Attachments, unless the mailbox is opted in and you ask for that attachment.
  • Odoo records such as contacts, leads, tickets, orders and invoices.
  • Mailboxes or threads you are not working in, except the earlier thread messages for background summaries.
  • API keys, passwords and login tokens.

Where the data goes

  • Cloud provider (OpenAI, Google Gemini, Anthropic Claude, xAI Grok, DeepSeek): the request is handled under that provider's terms and retention rules. MailDesk does not control them. Check your provider's current API terms.
  • Custom / Local Server: the request goes to the address you set. If that server is on your network, the content stays there. The data also stays inside your network only if the base URL points there.
  • No MailDesk provider: Check with AI and the HTML editor Ask AI use Odoo's built-in AI service. Odoo's terms apply. Summaries, drafts and the AI panel do not run without a provider.

For a setup where email content must stay in-house, use a local server. See Connect an AI provider (admin).

What MailDesk stores

  • Results next to the email: summaries, priority, action items, suggested tags, reply intent and language of background summaries, with the provider, model and token counts.
  • AI conversations: your questions and the answers, per mailbox and thread.
  • Attachment results: a short excerpt and key facts, cached per document.
  • Audit entries for actions the AI performs.

MailDesk does not keep a separate copy of the email body for AI. The summaries and answers are derived from the email and can contain parts of its content.

Record keeping

Sending email text to an external provider is processing by a third party. If GDPR applies to you, add the provider to your records of processing and agree a data processing agreement with it. A local server you operate yourself involves no external provider.

If you need to stop it

  1. Switch Enable AI features off for the mailbox, or remove the active provider.
  2. For a stop across the system, set maildesk.ai.enabled to 0. See What AI can access.

What you should see: the AI panel and Check with AI stop working for that mailbox, and no new background summaries appear.

Next step: Connect an AI provider (admin).