My AI sales agent texted my private notes to a customer. Here's the fix.
This isn't a bug, or even a bad AI model.
If your AI sales agent has access to your internal notes, it WILL share them with a customer at some point. It might leak a private sales note, or text out your profit margin or lowest discount price.
For example, I have an automated sales agent that qualifies new leads via text message. A lead texted in, looking for help with an AI automation project. My AI sales agent responded to the lead's questions, asked some qualifying questions, and then mentioned a different service that we talked about with that client 3 years ago.
Everything the AI sales agent said was true, and was included in the client's CRM record. The AI agent read the CRM record, found that old note, and put it into the text message.
The customer was confused, and I was annoyed, but the AI agent didn't break any of the rules I set. It read the info, decided that old note was relevant, and put it in the text.
The leak was my fault.
I gave the AI access to my internal notes and thought that simply telling the AI not to share the notes would be enough. Nope. Telling an AI "do not mention internal notes" is like giving a gentle suggestion to the AI.
It's not a hard rule.
Everything in the prompt is fighting to be included in the final response. If you put private sales notes in the prompt, they will leak out at some point.
Here is how to fix your setup before your AI sales agent leaks your sales notes, profit margins, or discount prices.
Why prompt rules always fail
Most teams connect an AI to their CRM in one simple flow:
- A new customer message arrives.
- An automation tool like Make, or a webhook, pulls the contact record, deal history, and old tickets.
- All of that data goes into one prompt as JSON or plain text.
- The system prompt says: "Use this CRM data to answer the customer, but never share internal notes or past prices."
The AI treats everything in the prompt as material it can use in its reply. Say a sales rep wrote a note: "I gave a 15% discount in 2023 because the client was really pushing the price." The AI doesn't treat that as a secret. It just sees a true fact about past pricing.
Now the customer asks: "How flexible are you on price?"
The AI scans the prompt for the best match. That 15% discount note is the closest match to the question, so it overrides your rule about hiding internal notes. Out goes the discount.
If you don't want the AI to say something, don't put it in the prompt that writes the reply.

Step 1: split internal data from reply data
Stop using one big prompt that reads the whole CRM and writes the message. Split the job into two steps:
- Internal check (hidden from the customer): The AI reads the full CRM record to score the lead, pick a route, or add tags. It can see internal notes, total spend, and old complaints. Nothing from this step goes to the customer.
- Reply step (public only): A second AI call writes the actual message. It only sees safe fields that the customer is allowed to know.
In our flow, the internal check runs first. The AI reads the record, decides if the lead is a good fit, and updates a status field in the CRM.
For the reply step, we give the AI only the bare minimum. It sees the customer's latest message, our public product docs, and safe fields like first name, current plan, or whether they have an open ticket. It never sees the notes field.
It can't leak what it can't read.
Step 2: filter CRM fields before you send them
Before you send data from Pipedrive, HubSpot, or Airtable to OpenAI or Anthropic, clean it inside your automation tool. Check every field against this table before your reply step runs:
| CRM field | Can the customer see it? | Send to reply step? | Rule in your flow |
|---|---|---|---|
| First name / company | Yes | Yes | Send field |
| Current plan / service | Yes | Yes | Send field |
| Billing issue status | Yes | Yes | Send field |
| Rep notes / call transcripts | No | No | Leave out completely |
| Discount limits / margins | No | No | Leave out completely |
| Internal health score | No | No | Leave out completely |
| Public ticket replies | Yes | Yes (last 3 only) | Cut list to last 3 items |
| Why past deals lost | No | No | Leave out completely |
If you use Make or n8n, never drop the full Contact object into your AI module. Pick only the single fields you need, like {{1.first_name}} and {{1.current_plan}}. Leave {{1.notes}} out of the reply module.
Step 3: check the reply before it sends
Filtering your fields stops most leaks, probably 95% of them. The other 5% happen when someone puts private info in a public field by mistake, like a support rep typing an internal note into a customer reply box.
Don't ask the same AI that wrote the message to check its own work. Put a quick backup check right before the message goes out. Pass the draft through a smaller, cheaper model like Claude Haiku or GPT Luna with a short prompt:
Check this draft reply for leaked company data.
Look for:
- Internal margins, markups, or base costs.
- Past private price talks or CRM notes.
- Rude words or private staff names.
Draft:
{{drafted_message}}
If the draft is safe, reply only with "PASS".
If it has private data, reply with "FAIL" and the reason.
When the check returns FAIL, the flow stops. It sends the draft to a human in Slack or our helpdesk queue so a person can fix it.
Writing a good reply needs a lot of data. Checking that reply only needs a few strict rules. This check takes under 800 milliseconds and costs fractions of a cent.
Fix the flow, not the prompt
I've seen thousands of automation setups and I still see teams spend weeks trying to patch prompt "leaks" by making it bold, or by telling the AI not to do something in ALL CAPS.
Stop it. A prompt is not a security wall.
Think of your AI as an intern on their first day at work. You are not going to give them your payroll numbers as a context if they need to write an email to a customer, right?
Build a calmer business,Yuri