Confidential data typed into prompts
Staff paste customer lists, contract terms, financials and case notes into AI tools to get work done. If the tool is a personal account with consumer data terms, that information has left your control.
AI data protection is the set of technical controls that keep confidential business information, customer records and personal data safe wherever an AI assistant, agent or model touches them: in prompts, in retrieval, in API calls, in logs and in the provider's own systems. Twopir Consulting designs and implements those controls across AI connected to Salesforce, HubSpot, ERP, cloud and integration environments. Your AI gets the data it needs, and nothing it should not see.
Trusted by 500+ organizations — including legal, healthcare, real estate and technology businesses that run their customer data on Salesforce and HubSpot.






Platforms We Apply Controls Across
AI rarely leaks data through a dramatic breach. It leaks through ordinary design choices: a connector with more access than it needs, a knowledge index that ignores who is asking, a log that keeps every prompt. These are the six exposure paths we look for first.
Staff paste customer lists, contract terms, financials and case notes into AI tools to get work done. If the tool is a personal account with consumer data terms, that information has left your control.
An assistant or agent wired to the CRM through one integration user can read every record that user can, regardless of who is asking. The AI inherits the broadest permission in the chain.
A retrieval-augmented generation (RAG) index built from shared drives and CRM records will happily return an HR file or a board pack to anyone who asks the right question, unless access rules travel with every chunk.
Whether prompts are stored, for how long, where, and whether they can be used to improve models depends on the product, the plan and the contract. Many teams cannot answer those questions for the tools already in use.
Debug logs, observability traces, conversation history and vector stores keep copies of what passed through. The production database is locked down; its AI shadow copies often are not.
API keys with write access, shared service accounts and direct database connections give an AI integration far more reach than its use case needs, and make one leaked key an incident.
AI data protection is the practice of controlling which business data an AI system can reach, what it may send to a model, and what is kept afterwards, across the whole AI data lifecycle. It covers classifying data by sensitivity, keeping personally identifiable information (PII) and confidential records out of prompts unless a use case needs them, encrypting data in transit and at rest, limiting retrieval to what each user may already see, scoping the APIs and database access AI integrations use, and monitoring for leakage.
Three parties share the responsibility, and it helps to keep them apart. The AI provider, such as OpenAI, Anthropic, Microsoft, AWS or Google Cloud, sets how its service handles your data: retention, training use, encryption and where processing happens, under the plan and contract you choose. Your organization owns the data, decides what AI may use it for and answers for the legal obligations. Twopir Consulting designs and implements the technical controls in between, in the CRM, ERP, cloud and integration systems where the data actually lives.
Data protection is one domain of wider AI governance, alongside access control, agent permissions, output reliability and oversight, all covered on our AI governance and security page. We align the work with the frameworks your risk and audit teams already use: the NIST AI Risk Management Framework, the NIST Privacy Framework and ISO/IEC 42001, the AI management system standard. Aligning controls to a framework gives auditors a common language; it is not a certification, and it does not replace legal review.
Data is exposed differently at each step between your systems and a model's answer. Protecting one step and not the next is how most AI data incidents happen, so we design controls for the whole path.
| Lifecycle stage | What is exposed | Controls we implement |
|---|---|---|
| Collection | Records, files and fields pulled into an AI use case because they were easy to reach, not because the use case needs them. | Data inventory per use case, sensitivity classification, data minimization rules and an approved-source list. |
| Processing | Prompts and context assembled from live records, including names, contact details, account numbers and free-text notes. | PII detection, masking, tokenization or redaction before the prompt is built; field-level exclusions for regulated data. |
| Retrieval | Knowledge-base and vector-store content returned to users who could not open the source document. | Permission-aware retrieval that filters by the asking user's access, metadata tags on every chunk, separate indexes for restricted content. |
| Model interaction and transmission | Data in transit to the model provider, and whatever the provider's terms allow it to keep. | TLS in transit, enterprise or API endpoints with documented no-training terms, private connectivity where the cloud supports it, approved model list. |
| Storage and retention | Conversation history, embeddings, caches, logs and traces that copy sensitive data outside its system of record. | Encryption at rest with managed keys, retention periods per store, deletion jobs, and logging that records the event without the payload. |
| Monitoring | Leakage nobody notices: sensitive data in responses, unusual query volume, new tools connected without review. | Data loss prevention (DLP) rules on prompts and responses, audit trails, alerting, and periodic access and vendor reviews. |
Six workstreams cover the controls an AI data protection programme needs. Each one is scoped to your AI use cases and built in the systems that hold the data, so the protection does not depend on any single AI vendor.
An AI data protection strategy starts with knowing what you hold. We inventory the data each AI use case touches and rate its sensitivity.
Personal and sensitive values are replaced before a prompt leaves your environment, and restored only where the answer needs them.
Data stays encrypted in transit and at rest on every hop, including the stores AI adds: vector databases, caches and conversation history.
Retrieval returns only what the asking user is already allowed to open, and the knowledge index never becomes a back door around your permissions.
Every AI integration gets its own identity with the narrowest access its job needs, so one leaked credential cannot open the whole estate.
Controls are only as good as the evidence that they work. We monitor what goes into and comes out of AI, and alert when something should not.
Privacy laws and sector rules decide what you may do with personal data. Technical controls decide what your systems actually do with it. You need both, and no AI platform, setting or certification makes an organization compliant on its own.
Classification, masking and tokenization, encryption, permission-aware retrieval, scoped integrations, data residency settings, retention and deletion jobs, DLP rules, logging and monitoring, and the evidence that each one works.
These are engineering decisions, and they are where Twopir Consulting does its work.
Which laws apply, the lawful basis for processing, consent and notices, contracts and data processing agreements with AI vendors, cross-border transfer mechanisms, data subject rights and breach notification duties.
We do not give legal advice. We turn the requirements your counsel sets into controls your systems enforce, and document them so they can be audited.
| Question | The obligation (your counsel) | The control (implemented) |
|---|---|---|
| Where may this data be processed? | Residency and transfer requirements for each data category and region. | Region-pinned AI endpoints and storage, and routing rules that keep restricted data in-region. |
| How long may it be kept? | Retention limits and deletion duties. | Retention settings on every AI store, deletion jobs, and vendor retention options confirmed in configuration. |
| May a vendor use it? | Processor terms, data processing agreements and approved sub-processors. | Only reviewed vendors and plans connected; consumer AI tools blocked or restricted for business data. |
| Who may see it? | Purpose limitation and need-to-know rules. | Least-privilege integration users, field-level security and permission-aware retrieval. |
| Can we prove it? | Accountability, records of processing, audit requests. | Audit trails, control documentation and test evidence, mapped to the framework your auditors use. |
Retention, training use and processing location depend on the product, the plan and the settings, not only on the vendor. This is what each provider documents for its business offerings, and what we still confirm in your own deployment before any sensitive data is connected.
| Platform | What the vendor documents | What we verify for you |
|---|---|---|
| OpenAI ChatGPT business plans and API | Business data is not used to train models by default. API inputs and outputs may be retained for up to 30 days to provide the service and identify abuse, and zero data retention can be requested for eligible endpoints. OpenAI enterprise privacy | Which plans staff actually use, workspace retention settings, and whether a use case qualifies for zero data retention. |
| Anthropic Claude for Work and Claude API | Inputs and outputs from commercial products are not used for training by default. On the API, prompts and outputs are not retained by default except for models that require 30-day retention; zero data retention arrangements exist but do not cover every interface. Anthropic data retention | Which Claude interfaces and features are in use, and whether each one falls inside the retention arrangement you rely on. |
| Microsoft Azure Azure OpenAI and Foundry models | Prompts and completions are not available to OpenAI or other model providers and are not used to train foundation models without your permission. Processing stays in your chosen geography unless a Global or DataZone deployment is used; stored data is encrypted at rest, with customer-managed keys available. Azure data privacy | Deployment type against your residency requirement, key management, and abuse-monitoring settings. |
| AWS Amazon Bedrock | Model providers have no access to Bedrock logs or to customer prompts and completions. Security follows the shared responsibility model: AWS secures the infrastructure, and the customer configures access, logging and network controls. Bedrock data protection | IAM policies, private connectivity, logging configuration and where invocation logs are stored. |
| Google Cloud Generative AI on Google Cloud | Google states it will not use your data to train or fine-tune AI models without your prior permission or instruction. Zero data retention requires specific customer settings, for example on logging, caching and stored interactions. Google Cloud zero data retention | That each setting zero retention depends on is actually configured in your project. |
| Salesforce Einstein Trust Layer | Zero data retention with external model providers, with no training on your data; grounding that respects the running user's permissions and field-level security; data masking options; and audit logging of prompts and responses. Einstein Trust Layer | Which Trust Layer features apply to each prompt template and agent, since they differ, and that the permissions AI inherits are the ones you intend. |
| HubSpot HubSpot AI features | Third-party AI providers may not train on customer data, and HubSpot enforces zero retention with them wherever possible. HubSpot may use customer data to improve its own AI models unless a Super Admin opts out; opt-outs apply going forward. HubSpot AI model training | The account's training opt-out and sensitive-data settings, and which AI features are switched on for which teams. |
A vendor commitment covers the vendor, not your configuration. None of these terms decides which records your AI can read, what your logs keep or who can query your knowledge index. Those controls are yours to build, and they are what the rest of this page is about.
Most sensitive business data lives in the CRM and the systems around it. These are the connections AI projects open, what moves across each one, and the control that keeps it in bounds.
Records ground prompts and agents inside Salesforce. We configure the Trust Layer, agent identities and the permissions they inherit; deeper agent work is on our Agentforce governance and security page.
Account, case and opportunity data flows out to OpenAI or Claude, and answers flow back to the record. A dedicated integration user, field-level exclusions and masking decide exactly which fields leave.
Contacts, deals and conversations feed HubSpot's own AI tools and connected AI apps. We set the account's AI and sensitive-data settings and keep private-app scopes to the objects each use case reads. More on AI in HubSpot.
Orders, invoices and payment status flow to assistants that answer finance and service questions. Read-only views, row-level filters and masked bank and tax fields keep financial data to what the question needs.
Agents query operational data to answer or act. Instead of open SQL access, they call approved queries or read replicas, under a credential that cannot write or reach restricted tables.
Policies, contracts and knowledge articles are chunked into a vector store for retrieval. Access tags copied from the source system travel with each chunk, so retrieval honours the same permissions.
Integration platforms and MCP servers carry data between AI tools and business systems in both directions. Each connector gets its own scoped identity, logging without payloads and an owner. See AI integration services.
Staff use ChatGPT, Claude or Copilot with business content. We move that use onto managed business plans with retention and connector settings you control, through our OpenAI and Claude implementation services.
Six phases, run per AI use case or across a whole programme. The first two are often all an organization needs to see where it is exposed today; the rest build and prove the controls.
Every AI tool, assistant, agent and integration in use or planned, the systems each one connects to, and the data that can flow through it, including tools adopted without review.
DeliverableAI use-case and data-flow inventory
Sensitivity ratings for the data in scope, a review of each AI vendor's data handling, and a gap assessment against the controls each use case needs.
DeliverableExposure assessment and prioritized gaps
The control map for each lifecycle stage: what gets masked, who can retrieve what, which endpoints and regions are used, what is logged and how long anything is kept.
DeliverableSigned-off control design
Controls built where the data lives: CRM permissions and integration users, masking services, retrieval filters, encryption and key settings, DLP rules and logging, in a sandbox first.
DeliverableConfigured controls, documented per system
We try to make the AI reveal what it should not: cross-user retrieval, prompt injection aimed at sensitive fields, PII in responses and logs, and over-scoped credentials.
DeliverableLeakage test results and fixes
Alerts, audit trails and a review cadence handed to the people who own them, with control documentation your security, privacy and audit teams can use.
DeliverableMonitoring runbook and governance handover
Most AI data exposure lives in the permissions, integrations and data models of the systems AI is connected to. Those are the systems we design and build every day.
We decide which identity an AI runs as, which objects and fields it may read and where its data flows as part of your CRM and revenue architecture, before any prompt is written.
Profiles, permission sets, sharing rules and field-level security are what an AI inherits in Salesforce. We work with them daily, and with HubSpot scopes and the platforms around both.
Data leaks where systems meet: CRM to ERP, documents to a knowledge index, middleware to a model API. Multi-system integration, ERP, automation and AI are the core of our work.
We have delivered for 500+ clients across industries and countries, so the controls we design fit how teams actually work with customer data, not a policy binder.
Senior architects own the design and the risk decisions; specialists build and test each control. You get documented controls your own teams can run, and ongoing AI governance and security support when you want it.
AI data protection is the set of technical controls that decide which business data an AI system can reach, what it may send to a model, and what is kept afterwards. It includes data classification, PII masking and redaction, encryption, permission-aware retrieval, scoped API and database access, data loss prevention and monitoring, applied across the whole AI data lifecycle.
No. A business plan with no-training terms, a signed data processing agreement or a HIPAA business associate agreement covers what the vendor does with your data. Compliance also depends on your lawful basis, notices, contracts, retention, access controls and records, and on how your own systems are configured. Your legal and privacy teams decide the obligations; we implement and document the technical controls that meet them.
For their business and API offerings, OpenAI, Anthropic, Microsoft Azure and Google Cloud each state that customer data is not used to train their models by default or without your permission. Those terms apply to the specific products and plans they name, not to personal or consumer accounts, and retention rules differ between them. That is why we confirm which tools your teams actually use, and how each one is configured, before connecting sensitive data.
By making the AI work with the asking user's permissions instead of one broad service account. In Salesforce and HubSpot that means grounding and queries that respect sharing rules and field-level security. In a retrieval-augmented generation (RAG) knowledge index it means access metadata on every chunk and filtering at query time, with restricted content in separate indexes. We then test it by trying to retrieve one user's data as another.
Masking replaces a sensitive value with a placeholder so the model never sees it. Tokenization replaces it with a token that your system can map back to the original, so the answer can be personalized after it returns. Redaction removes the value from text or documents entirely. Which one fits depends on whether the use case needs the real value at any point.
Yes, when the AI is connected with a deliberate permission model. Both platforms provide controls of their own: Salesforce documents its Einstein Trust Layer, and HubSpot documents AI training and data settings. The remaining risk sits in how integrations, agents and external models are connected, so we design dedicated integration identities, field-level exclusions, masking and logging around each use case.
With an inventory: every AI tool, assistant, agent and integration in use or planned, the systems each connects to and the data that can flow through it. Classifying that data and reviewing each vendor's data handling then shows where the real exposure is, so the first controls go where they reduce the most risk.
A first conversation covers the AI tools and agents you run or plan, the systems they connect to and the data involved: enough to show where the exposure is and which controls come first. No obligation to proceed.
Talk to an architect who secures AI connected to Salesforce, HubSpot and ERP