How your data is handled
FodyChat is a widget that answers from the project owner's knowledge base or their own APIs. Here is what is public, what is private, and how it is protected.
Public
- The widget and its look (colors, texts, position) — visible in the site's page source.
- The project ID and its public key (
pub_…) — in the embed code, so visible to anyone viewing the page source. They identify the project but are not a secret. - The AI's replies — shown to the visitor in the chat.
Only for the project owner
- The knowledge base (uploaded text / documents) — returned only via the admin API with a secret.
- Search strategies (the customer's API endpoints) — admin only.
- Project settings (mode, allowed domains) — admin only.
What the visitor sees
- Their own messages and the AI's replies in their own session.
- Nothing else — no other sessions, no other project's knowledge base.
Where data is stored
- Messages and knowledge base — Cloudflare D1 (SQLite), our primary database.
- Attached files — Cloudflare R2 object storage (EU location hint) by default; a tenant can instead bring its own S3-compatible bucket (AWS / MinIO / R2 / B2), where files are written directly.
- Embeddings (RAG mode) — Cloudflare Vectorize.
- Session state — Cloudflare KV, ephemeral, with a short time-to-live.
- Encryption — D1, R2, Vectorize and KV are encrypted at rest by Cloudflare; traffic is TLS in transit.
Retention & deletion
- Messages — removed after the plan's retention (Free: 30 days, Starter: 90, Pro: 365; Business and Self-host keep them until you delete them). A guest can delete their own message and an operator can delete any message at any time.
- Unsaved uploads — a file uploaded but never attached to a message is removed after 24 hours.
- Attached files — removed after the plan's retention (Free: 1 day, Starter: 7, Pro: 30, Business: 90). Self-host / BYO storage keeps files on your side with no forced expiry.
- Account deletion — deleting a tenant removes projects, knowledge base, messages, files (bytes included), operators and usage in one cascade.
- Dictation audio — never stored; only the final transcript is kept, and only once the visitor sends it.
GDPR
- Roles — the customer running the widget is the data controller; FodyChat is the processor. End visitors are data subjects.
- Right to erasure — a visitor deletes their own messages and files; an operator can delete any message; account deletion removes everything.
- Access and rectification — a visitor sees their own session; the owner manages the knowledge base and settings via the admin API.
- Data residency — default infrastructure is Cloudflare (R2 in the EU). You can also bring your own S3 bucket, or self-host with your own keys (BYOK) to keep data in your own infrastructure.
- Subprocessors — Cloudflare (hosting and AI), OpenAI or Anthropic (optional AI provider), Telegram / Slack / Resend (only when a handoff channel is configured), Paddle (billing). A data-processing agreement is available on request.
How it's protected
- Isolation — every project's data is scoped by project / tenant id; no cross-project access.
- Origin allowlist — the widget only works from domains the owner allows (prevents cloning).
- Public key — the widget must send the correct project key.
- Admin auth — knowledge base and strategies are not returned without a secret (Google OAuth, Cloudflare Access, or an admin secret).
- CORS — cross-origin calls are gated.
- Rate limiting and edge security — the chat endpoint is rate-limited and protected by Cloudflare's WAF / Bot Fight Mode.
- Upload scanning — files are checked before storage: executables and mislabelled image files are rejected, and an optional external antivirus webhook can add a stronger verdict.
- URL ingest guard — importing a knowledge base from a URL blocks private, loopback and link-local addresses (SSRF).
- Model boundary — the AI gets only the context assembled per request; sensitive values (an account id, a token) come from your trusted context, never from the model.
- Storage — D1 / R2 / Vectorize / KV are encrypted at rest by Cloudflare; secrets live in Cloudflare Secrets, never in code or logs.
Important notes
- Neither the chat AI nor dictation (speech-to-text) run on-premise by default — both call the configured cloud provider (Cloudflare / OpenAI / Anthropic) over the network, with the message text, retrieved context, or the voice recording. On the self-host / BYOK plan the customer picks the provider and keeps this processing inside their own infrastructure.
- Relevant knowledge-base chunks are injected into the AI prompt — that is how RAG works, so the provider sees them.
- In tools mode, the visitor's query is passed to the customer's own API (the customer's responsibility).
- The chat is not end-to-end encrypted; messages pass through our backend.
- Dictation audio itself is never stored by FodyChat — only the resulting transcript, held in memory for the single request to the speech-to-text provider, and persisted as a message only once the visitor sends it.