SDK Recipes›Tài liệu → Che dữ liệu nhạy cảm → Chia sẻ
AI Document Workflow

Tài liệu → Che dữ liệu nhạy cảm → Chia sẻ

Phát hiện dữ liệu nhạy cảm trong ảnh tài liệu và tạo PNG đã che trước khi chia sẻ.

ai-sensitive-data-redactor
InputDocument image
Final resultRedacted PNG
Tools usedai-sensitive-data-redactor

Complete code

const safe = await client.run("ai-sensitive-data-redactor", {
  file: documentImage,
  options: { style: "black" }
});
const redactedFile = safe.files[0];
Hãy kiểm tra client.describe(toolId) hoặc Tool Reference trước khi thay đổi workflow.