Skip to main content
Slack의 Trailblazer Community가 이제 오픈 베타를 시작했습니다. 참여하고 실시간으로 소통하세요. Slack에서 함께하세요

Get Started with Document AI

Learning Objectives

After completing this unit, you’ll be able to:

  • Explain the purpose and benefits of Document AI in Data 360.
  • Describe the four-step transformation process for unstructured data.
  • Configure an external client app and remote site settings.
Note

As of October 14, 2025, Data Cloud has been rebranded to Data 360. During this transition, you might see references to Data Cloud in our application and documentation. While the name is new, the functionality and content remain unchanged.

Unstructured Data and Document AI

Unstructured data doesn't follow a fixed structure, so standard databases can't easily store or organize it. That makes searching and analyzing it pretty tough. Thankfully, AI technologies like large language models (LLMs) excel at making sense of unstructured data, which has led more and more companies to build these massive data sources into their plans. In this badge, we focus on text documents, but keep in mind that audio and video files count as unstructured data too.

Document AI is Data 360’s intelligent document processing solution that extracts details from unstructured documents and transforms them into structured data lake objects (DLOs). From there, you can join the extracted data with existing CRM data to create calculated insights or enrich records with extracted data. You can also integrate Document AI with agents to extract data from files directly in the agent chat.

Transform Unstructured Data

Let’s go over the high-level steps for transforming unstructured data with Document AI.

  1. Bring unstructured data into Data 360: Ingest unstructured files (PDFs, images) from AWS S3 or Google Cloud into Data Cloud as unstructured data lake objects (UDLOs). Or, upload a file directly onto a badge record.
  2. Process and extract data: Use Document AI to extract key details (customer names, billable amounts, PO numbers).
  3. Harmonize and empower teams: Make the structured data accessible in records and Agentforce via flows and Apex.

Sign Up for a Developer Edition with Data 360

To complete this badge, you need a special, limited-time custom playground that contains Data 360 and our sample data.

  1. Click Create Playground.
  2. Your new org is automatically attached to your Trailhead account.
  3. Make note of your org's expiration date and complete this badge before then.

Enrich Opportunities with Purchase Orders

Get Cloudy Consulting builds and sells software to help companies run their business. The busy sales team at Get Cloudy has many active opportunities and purchase orders (POs) coming in, but they don’t have time to manually update opportunities with the latest information from POs. As the admin at Get Cloudy, you know it’s important to keep records updated. You decide to build a solution using Document AI.

In this badge, you take the steps to enrich opportunity records with POs in PDF format. You build a Document AI configuration that extracts valuable information from the POs, Apex classes that call Document AI and parse the result, and a flow that triggers when files are uploaded. By the end of this badge, opportunities will automatically update when POs are uploaded.

Once the solution is configured, this is how data moves and transforms.

  1. You upload an unstructured PO file to the opportunity record.
  2. The flow collects the file and passes it to an Apex class.
  3. The Apex class calls Document AI.
  4. Document AI processes the PO and returns the extracted data in raw JSON.
  5. The Apex class parses the raw JSON and returns it in labeled variables.
  6. The flow updates the opportunity record.

Let’s start with setup and security steps.

Turn on Einstein Generative AI and Agentforce

  1. In your org, click the gear icon and launch Setup.
  2. In the Quick Find box, search for and select Einstein Setup.
  3. Toggle Turn on Einstein to On.
  4. Refresh the browser.
  5. From Setup, in the Quick Find box, search for and select Agentforce Agents.
  6. Turn the toggle to On.

Reset Your User’s Email

Set your user’s email to your own email so you can access verification codes.

  1. In the Quick Find box, search for and select Users.
  2. Locate the EPIC, OrgFarm user with the System Administrator profile.
  3. Click on the user.
  4. Click Edit.
  5. In Email, delete the default and enter your email. Make sure this is an email address you can access.
  6. Click Save. In the pop-up, click OK.
  7. Go to your email and click the verification link.
  8. Click Verify Email Address.
  9. Refresh the user page and confirm that your email appears.
  10. Copy the username and save it in a note. You’ll need it to create the client app.

Create an External Client App

An External Client App is a security tool that connects external applications with Salesforce. It enables OAuth so the Apex class you create later can authenticate with your org and call Document AI.

  1. From Setup, in the Quick Find box, search for and select External Client App Manager.
  2. Click New External Client App.
  3. For the App Name, enter Document AI Connected App.
  4. Make sure the API Name is Document_AI_Connected_App.
  5. For the Contact Email, enter your email address.
  6. For the Distribution State, leave Local. A local distribution state means the configuration exists only within your org and can’t be packaged and installed in other orgs.
  7. Expand the API (Enable OAuth Settings) dropdown.
  8. Check Enable OAuth.
  9. For the Callback URL, enter https://oauth.pstmn.io/v1/callback. This is Postman’s official callback URL. Postman is a tool used to test APIs.
  10. Under OAuth Scopes, in the Available OAuth Scopes column, click Manage user data via APIs (api). Use the right arrow to move it to the Selected column.
  11. Under Flow Enablement, check Enable Client Credentials Flow.
  12. If a pop-up appears, click OK.
  13. Under Security, check Require secret for Web Server Flow and Require secret for Refresh Token Flow. These are mandatory security guardrails to prevent leaks and standardize baselines.
  14. If other settings are enabled, leave them checked.
  15. Click Create.
  16. Click the Policies tab. Click Edit, and expand OAuth Policies.
  17. For Permitted Users, confirm that it says All users can self-authorize.
  18. Under OAuth Flows and External Client App Enhancements, check Enable Client Credentials Flow. The Client Credentials Flow is designed for server-to-server authentication with no human user, which you need to allow the Apex class to call Document AI.
  19. In Run As (Username), enter the username of your System Administrator user that you saved in the previous section.
  20. Under App Authorization, for IP Relaxation, select Relax IP Restrictions.
  21. Click Save.
  22. Click the Settings tab. Expand OAuth Settings.
  23. Click Consumer Key and Secret. Verify your identity using the code sent to your email. It may take a few minutes.
  24. Copy the Consumer Key and Consumer Secret and save them in a note. You need these values later. Make sure to label the values.

Next, retrieve your domain URL. The Apex class you create later will use this for its API calls.

  1. From Setup, in the Quick Find box, search for and select My Domain.
  2. Copy the URL in Current My Domain URL. Save it where you saved the Consumer Key and Consumer Secret.
  3. Enter https:// before the URL.

Now security is set up so that your Apex class can authorize with Salesforce and perform API calls. In the next unit, you create a Document AI configuration.

Resources

Salesforce 도움말에서 Trailhead 피드백을 공유하세요.

Trailhead에 관한 여러분의 의견에 귀 기울이겠습니다. 이제 Salesforce 도움말 사이트에서 언제든지 새로운 피드백 양식을 작성할 수 있습니다.

자세히 알아보기 의견 공유하기