Overview
Welcome to the Document AI Tutorials category. This tutorial series walks you through the core capabilities of Document AI, including how to configure and set up initial flows, process files, extract and map data to Salesforce object fields, and seamless integration into your automation workflows.
Browse through the list below to get started -
- Classify and Rename Uploaded Files - Build a Document AI workflow that classifies a passport or driving license uploaded to a Contact and renames the file after the Contact, in Salesforce Files or in external storage, started by a Salesforce flow.
- Document Mapper Tutorial - Build a Document Mapper configuration that turns purchase orders, invoices and quotes into Business Document records with their Line Items, and run it from a list view button or a Salesforce flow.
- Document Checklist - Build a Document AI workflow that classifies an admission document uploaded to a Student and marks the matching row on its Document Checklist as submitted, started by a Salesforce flow.
- KYC Upload Checker - Build a Document AI workflow that classifies a passport or driving license uploaded to an Account, reads its number and updates the Account, started by a Salesforce flow.
- Line Item Extraction - Build a Document AI workflow that reads a purchase order uploaded to a Purchase Order, fills its vendor, date and total, and creates an Order Line Item for each row, started by a Salesforce flow.
- Mass property extraction from a Medical Form - Build a Document AI workflow that reads a patient's pre-admission medical form uploaded to a Medical Form and fills ten of its fields at once, started by a Salesforce flow.
- Signature Checking - Build a Document AI workflow that checks a prescription uploaded to a Prescription for the prescriber's signature and records who signed and when, started by a Salesforce flow.
- Splitting multiple combined POs into child objects - In this tutorial, we will see how CloudFiles can be used with Salesforce flow automations to split multiple combined documents from an uploaded Salesforce file.
Legacy Tutorials
These tutorials use the legacy Process Document and Query Document flow actions. For new builds, use a Document AI workflow or Document Mapper.
- AI Flows - Initial Setup Guide - This guide explains how to set up Salesforce flows to process files using CloudFiles Document AI, which is a necessary first step before running AI queries. It covers how to process documents from both Salesforce and external storage, each with slightly different methods, in order to generate a processed document ID required for querying.
- Batching AI Queries - A KYC upload checker that runs several queries in a single call with the Query Document (Batch) action.
- Get CSV text Output from AI Query - In this tutorial, we will see how CloudFiles can be used with Salesforce flow automations to extract multiple data fields from uploaded documents in CSV format using a single query.
- Get JSON Output from AI Query - In this tutorial, we will see how CloudFiles can be used with Salesforce flow automations to extract data from documents in a structured JSON format.
- Simple Data Extraction from KYC Files - This tutorial provides step-by-step guidance on configuring Salesforce Flow Automations using CloudFiles Document AI Flow Actions. It focuses on processing Salesforce files that are uploaded or attached to object records, extracting information from those files using AI, and automating the update of Salesforce object fields based on the extracted data.
Beyond this Tutorial
This tutorial demonstrated a foundational example of processing files from connected External Storage. You can adapt the same logic to address numerous enterprise use cases, including:
- File Metadata Management: Automatically tagging and categorizing files based on type, content, or extracted information, updating relevant metadata columns accordingly.
- Automated File Routing: Moving files automatically between storage locations or triggering approval tasks based on file type, contents, or extracted insights.
- Order Processing: Extracting data from uploaded Purchase Orders, updating corresponding Order records, or automatically creating Order Line Items.
- Invoice Automation: Capturing essential details from invoices uploaded into Opportunity folders, updating related Salesforce fields, or initiating payment-related workflows.
- HR Onboarding Automation: Extracting key employee details from onboarding documents uploaded into employee-specific folders, automating record creation, and data updates.
- Compliance Automation: Automatically processing compliance-related documents (e.g., certifications) uploaded into Account folders, and instantly updating compliance status.
- Insurance Claim Automation: Parsing claim documents uploaded to Case records, extracting essential data, and updating claim statuses and details automatically.
Exploring these use cases along with Document AI can greatly streamline your Document Management & Sharing and enhance data accuracy, significantly boosting your organization's productivity.