Skip to main content

WeaverSol

NewProduction-grade MVPs in 7 days — book a free strategy call →

An AI agent that books appointments, answers customer emails or updates a CRM needs access to real data to be useful. That same access is what makes privacy the first thing a client’s legal or IT team asks about, and often the reason a promising project stalls for weeks in review.

Privacy is much easier to design in than to bolt on. Here is how we think about it when building agents that handle client data, from what goes into a prompt to what happens when a customer asks to be deleted. This is practical guidance from building these systems, not legal advice; clients should confirm their obligations with qualified counsel.

Minimize what reaches the model

Send only the fields a task needs

The simplest privacy control is not collecting or sending data the agent does not need. Before writing any prompt, list every field the agent will touch and ask what decision each one supports.

A reception agent confirming appointments needs a first name, a time slot and perhaps a service type. It does not need a date of birth, full address or payment history, even if those sit in the same database row. A sales intelligence agent researching companies rarely needs individual contact details at all until the final step.

In practice, minimization means:

  • Querying specific fields rather than passing whole records into context.
  • Replacing identifiers with internal references where the model does not need the real value.
  • Scoping retrieval so the agent can only search documents relevant to the current task and account.
  • Dropping conversation history the agent no longer needs instead of carrying it forward indefinitely.

Inspect the assembled prompt

Everything in the prompt leaves your infrastructure and reaches the model provider. That includes system instructions, retrieved documents, tool results and the full conversation. Teams are often surprised by how much personal data ends up there indirectly: a tool that returns a full customer object, a retrieved PDF with a signature block, or an email thread with ten people copied.

Build a habit of inspecting real assembled prompts during development, not just templates. Shape tool responses so they return only the fields the agent needs. Treat retrieved content as data to be filtered, not something passed through untouched.

Check provider retention and training settings

Model providers differ in how they handle API data, and their terms change over time, so check the current documentation for each provider and plan tier rather than relying on memory. The questions to answer for each one:

  • Is API data used to train or improve models by default, and can that be turned off?
  • How long are prompts and outputs retained, and for what purposes, such as abuse monitoring?
  • Is zero or reduced retention available, and under what agreement?
  • Where is data processed and stored, and can a region be selected?
  • Does the provider offer a data processing agreement, and what certifications does it hold?

Business and enterprise terms often differ meaningfully from consumer products, so make sure the agent uses an API or business account with the right settings, and document those settings for the client. Third-party tools in the chain, such as transcription, vector databases or automation platforms, need the same review.

Redact before sending

Where the task allows, detect and mask personal data before sending it. Common approaches include pattern matching for emails, phone numbers, card numbers and national ID formats, combined with named-entity detection for names and addresses. Replace each value with a consistent placeholder such as [CUSTOMER_1] and map it back after the model responds, so the output still makes sense to the user.

Redaction is imperfect, so treat it as one layer rather than a guarantee. It works well for classification, summarization and drafting. It works less well when the agent genuinely needs the value, such as an outreach agent writing to a named contact, and in those cases minimization and provider settings carry more of the weight.

Apply least privilege and keep audit logs

An agent is only as safe as the tools it can call. Give each agent its own service account with the narrowest permissions that let it do the job. A customer success agent that reads order status should not hold credentials that can issue refunds or export the customer list.

  • Separate read and write tools, and expose write tools only where they are required.
  • Enforce account and tenant scoping in the tool layer, not in the prompt. The model should be physically unable to fetch another customer’s records.
  • Require human approval for high-impact actions such as sending bulk messages, deleting records or anything involving payments.
  • Rotate credentials and store them in a secrets manager, never in prompts or code.

Assume a prompt can be manipulated through user input or retrieved content. Permissions enforced outside the model hold even when instructions inside it do not.

Audit logs that are useful and safe

Clients need to know what the agent did and why. Log each tool call with a timestamp, the agent identity, the action, the record references touched and the outcome. This supports incident investigation, access requests and simple debugging.

Audit logs can become a privacy problem of their own if they store full prompts and outputs forever. Log references and metadata by default, keep any full payload logs on short retention with restricted access, and apply the same redaction rules you use for prompts.

Account for regional rules

WeaverSol works with clients across the US, UK and UAE, and each region shapes the design. Stated generally:

  • UK and EU: GDPR and UK GDPR require a lawful basis for processing, transparency, data minimization, security, and respect for rights such as access and erasure. Transfers outside the UK or EU need appropriate safeguards, and higher-risk processing may call for a data protection impact assessment.
  • United States: there is no single federal privacy law. A growing number of state laws, such as California’s, grant consumer rights and impose obligations on businesses, and sector rules apply on top. Health data handled for covered entities falls under HIPAA, which typically requires a business associate agreement with vendors that handle protected health information, including relevant AI providers.
  • UAE: the federal Personal Data Protection Law (Federal Decree-Law No. 45 of 2021) sets out principles on consent, purpose limitation, security and cross-border transfers. Some free zones, such as DIFC and ADGM, have their own data protection regimes, so the client’s location matters.

These summaries are deliberately high level. Requirements depend on the client, the data and the jurisdictions involved, and the client’s legal advisers should confirm the specifics. Our job as builders is to make the system capable of meeting those requirements: region selection, retention controls, deletion and export.

Put agreements, retention and deletion in writing

When an agent processes a client’s customer data, a data processing agreement between the client and the builder sets out roles, purposes, sub-processors, security measures and breach notification. List the model provider and other sub-processors explicitly so there are no surprises later.

Agree retention periods for each data store: conversation logs, vector indexes, audit logs and backups. Then build deletion that actually works across all of them. A common gap is deleting a customer from the CRM while their embedded documents remain in a vector database. Test the deletion path the same way you test any other feature.

Develop and test with synthetic data

Most of an agent’s development does not require real customer data. Generate synthetic records that match the shape and messiness of production, including awkward names, multilingual text, incomplete fields and edge cases, and use them for prompt development, evaluation sets and demos. When real samples are needed to validate accuracy, use a small, approved, redacted set in a controlled environment and delete it afterward.

A sensible next step

Before building or approving an agent, write a one-page data map: what data the agent reads, what it sends to which providers, what it writes, who can access logs and how long everything is kept. That single document answers most of the questions a client’s review will raise, and it exposes design problems while they are still cheap to fix.

If you are planning an agent and want the privacy design worked out alongside the functionality, our AI agents work starts from exactly this kind of map, with clients owning their accounts and data throughout.

Leave a Reply

Your email address will not be published. Required fields are marked *