Often you need an AI agent to work on a real document: an invoice, a contract, a customer email, or a log file. However, those documents contain personal data (PII, short for Personally Identifiable Information).
This tutorial explains what AgiCloud's PII section does and how to use it to protect privacy before handing documents over to AI agents.
Why use PII anonymization?
When you chat with a cloud AI agent, the text you attach is sent to the external AI model. With AgiCloud's PII plugin, you can strip personal data from texts and documents before any agent sees them:
- The Rizzo-PII engine runs locally on your AgiCloud server: your original documents never leave the server.
- Names, tax codes, VAT numbers, phone numbers, IBANs, email addresses, and street addresses are automatically detected and replaced with clear placeholders, such as
[PERSONA_1],[EMAIL_1], or[IBAN_1]. - If you upload a PDF file, AgiCloud also generates a truly redacted PDF (with sensitive areas blacked out on the pages) and shows you a page-by-page preview.
- The Reversible dictionary (which remembers which placeholder belongs to which real name) stays only in your browser: it is never sent to the agent.
[Screenshot: AgiCloud PII section showing analyzed text with placeholders replacing personal data]
Step 1: Turn on the PII plugin
If you do not see PII in the main menu yet, enable it first:
- Open the menu and go to Settings → Plugins.
- Find the PII card.
- If it says Not installed, press Install. If it says Off, flip the switch to On.
- The PII section will now appear in the main menu.
[Screenshot: PII plugin card enabled in "Settings → Plugins"]
Step 2: Anonymize a text or a document
- Open the PII section from the main menu.
- Under What do you want to anonymize, choose:
- A text: to paste a message, email, or snippet directly into the Text box;
- A document (PDF, TXT, MD): to upload a
.pdf,.txt, or.mdfile from your phone or computer.
- (Optional) If there are specific categories of data you want to keep visible, expand Categories to leave in the clear and check the ones you want to exclude.
- Check the Reversible dictionary option:
- Checked (recommended): your browser remembers the mapping between placeholders and original values so you can restore real names in the agent's reply;
- Unchecked: anonymization is permanent and cannot be reversed.
- Press the Anonymize button.
[Screenshot: PII form showing "A text" / "A document", "Categories to leave in the clear", and the "Anonymize" button]
Step 3: Review the result
Once analysis finishes, use the view buttons at the top of the Result card to inspect the output:
- Anonymized text: shows the clean text with placeholders, ready to copy with the Copy button.
- Highlighted: shows the original text with all detected personal data highlighted.
- Data found: displays a table listing every Category, Placeholder, and original Value found.
- PDF (only when you upload a PDF): shows a preview of the redacted pages and the Download the anonymized PDF button.
[Screenshot: "Result" card in the PII section showing "Anonymized text", "Highlighted", "Data found", and the PDF page preview]
Step 4: Save for the agent and attach in Chat
To let an agent work on the document without ever exposing the original data:
- Scroll down to the Save for the agent card (below the result).
- Pick the Project folder you are working in.
- Press Save in pii-clean/. AgiCloud writes only the anonymized version (without the dictionary) into the
pii-clean/subfolder of your project. - Open your conversation in the Chat section.
- Tap the paperclip icon (Attach files) next to the message box and choose Anonymized documents (PII).
- Select the file you just saved and press Attach: the agent will read and work only on the anonymized file.
[Screenshot: "Save for the agent" card with the "Save in pii-clean/" button, and the "Anonymized documents" dialog in Chat]
Step 5: Decode the agent's reply back to original values
When the agent replies using placeholders (for example: "I drafted the letter for [PERSONA_1] at [INDIRIZZO_1]"), you can put the real values back in seconds:
- Go back to the PII section and expand Decode: put the original values back at the bottom of the page.
- Paste the agent's reply into Text with the placeholders (e.g. the agent's reply).
- Below the box, your browser immediately displays the text with the original names and values restored.
- When you are done and want to wipe the saved mapping from your browser, press Delete dictionary.
[Screenshot: "Decode: put the original values back" panel showing the decoded text and the "Delete dictionary" button]
Next step
You have completed the Beginner Level tutorials! Now let's move on to the Intermediate Level and see how to connect your Claude, Cursor, Codex, Google/agy, and OpenCode accounts: