Introduction

In this test drive, we will use CloudFiles AI in conjunction with Salesforce flows to create a KYC upload checker. The system will automatically detect uploads of Driving Licenses and Passports, extract important information, and populate related Salesforce fields — all within seconds.

In order to access this test drive, head over to our Salesforce AppExchange listing & click on the 'Try It' button. Enter your information to open the test drive org. Once the test-drive is open, navigate to this article within the Instructions tab of the Test Drive.

Instructions

To test out this feature, follow the simple instructions below.

  1. Go to the 'KYC Uploads' tab and create a new record. (No additional input is required — just save the record.)
  2. Upload KYC Documents (Driving Licenses or Passports) into the native 'Files' section of the record.
  3. Check the AI Results
    • The respective KYC Documents child records will be created.
    • Key information like DL/Passport Number, Holder's Name, Expiry and Issue Date will be auto populated in the respective fields.
    • The Status will be updated as 'EXPIRED' or 'VALID' based on the document's extracted Expiry Date.
    • The respective Document can also be found in the Files section of the KYC Documents child record

Refer to the image below for visual understanding of the above steps -

Optional: Process External Files

Optional: Process External Files

If you want to see how CloudFiles Document Management & Sharing works alongside Document AI to process external files, like sharepoint files:

  1. Upload KYC Documents (Driving License or Passport) via the CloudFiles widget in External Files tab of the record. (If you don't see a folder connected in the widget, simply refresh the widget or the page)
  2. Check the AI Results
    1. The respective KYC Documents child records will be created.
    2. Key information like DL/Passport Number, Holder's Name, Expiry and Issue Date will be auto populated in the respective fields and also into the metadata columns of the External File.
    3. The Status will be updated as 'EXPIRED' or 'VALID' based on the document's extracted Expiry Date.
    4. The respective Document can also be found in the External Files section of the KYC Documents child record.

Implementation

This demo is powered by Salesforce Flows with the following: Salesforce File Attached, Process Document using AI and Query Document/Dataset. CloudFiles Document AI handles classification, summarization and extraction, while a Platform Event triggers updates once processing is complete.

For more information, please refer to Document AI Tutorials.

Beyond this Test Drive

This KYC upload checker is just one example of how CloudFiles AI + Salesforce Flows can transform document handling. The same framework — upload → extract → validate → update — can be applied across industries to create powerful, automated document-driven workflows.

Here are some possibilities -

  • Mass Property Extraction Pull large amounts of information from complex forms such as medical intake forms or patient onboarding documents.
  • Mass Line Item Extraction from Tables Process invoices, purchase orders, or financial statements to extract hundreds of line items automatically.
  • Text Detection from Scanned Documents Digitize archives by detecting text in scanned PDFs or image-based files (OCR).
  • Text Detection in Images Extract information from photographs like business cards, certificates, ID cards, etc.
  • Text Detection in Handwritten Documents Process handwritten forms, notes, or historical records using handwriting recognition.

Here are some real-world applications across Industries:

Banking & Financial Services – Automated KYC & Compliance

Use AI to validate regulatory documents like Passports, IDs, and Proof of Address, and ensure compliance by auto-scheduling renewal reminders.

Example: A wealth management firm automatically flags expired IDs and emails reminders to clients before account freeze deadlines.

Healthcare – Patient Record Intake

Process medical forms, insurance cards, or prescriptions uploaded by patients to auto-populate EHR fields.

Example: A hospital extracts policy numbers and coverage details from uploaded insurance cards to speed up billing clearance.

Education – Student Enrolment Validation

Extract details from admission forms, transcripts, or IDs uploaded by applicants to update Salesforce Education Cloud.

Example: A university validates DOB and ID numbers from scanned student IDs and automatically updates enrolment records.

Human Resources – Employee Onboarding

Validate uploaded tax forms, resumes, and certifications, and ensure documents meet compliance requirements.

Example: An HR team cross-checks professional certifications uploaded by new hires against expiration dates, triggering reminders for renewal.

Split and validate legal documents like NDAs or agreements, extracting clause-level data for Salesforce Legal Objects.

Example: A law firm auto-extracts client signature dates and contract expiry terms from uploaded agreements, ensuring timely renewals.

Retail & Manufacturing – Vendor Document Verification

Process supplier contracts, compliance certificates, or purchase orders and verify them against Salesforce procurement data.

Example: A retailer compares line items from a vendor's PO with a previously signed quote, instantly flagging mismatches.

With CloudFiles Document AI, every uploaded file becomes more than just an attachment — it becomes actionable data. Whether it's banking compliance, hospital onboarding, HR automation, student enrollment, or vendor management, the ability to extract, validate, and cross-check documents makes Salesforce workflows far more intelligent and reliable.