SAP

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
⤢ Open full site

Use Trial to Extract Information from Custom Documents with Generative AI and SAP Document AI

Learn how to use SAP Document AI with generative AI to automate the extraction of information from custom document types using large language models (LLMs).

Overview

You will learn

  • How to create and activate your own schema for custom documents
  • How to define the fields that you want to extract from a custom document
  • How to upload a custom document to the SAP Document AI basic UI
  • How to get extraction results using the schema you’ve created and LLMs
Juliana Morais J Juliana Morais August 21, 2026
Created on November 7, 2023
Contributors

More from Juliana Morais

See all 63 tutorials by Juliana Morais →

Prerequisites

Prerequisites

Steps

Intro

In this tutorial, you’ll create a schema and define the fields that you want to extract from custom document types using LLMs. You’ll then use your schema to get field value predictions for various documents that you upload to the SAP Document AI basic UI, including delivery notes and birth certificates.

You can also use generative AI to extract information from standard document types (invoices, payment advices, and purchase orders). For details, see Use Trial to Extract Information from Standard Documents with Generative AI and SAP Document AI.


Step 1 Create schema

Before you upload a custom document for extraction, you’ll create a corresponding schema. In this tutorial, we provide sample files and settings for the following custom documents:

  • Delivery note

  • Résumé

  • Birth certificate

  • Work contract

In the first example, you’ll use a delivery note. After working through this example, you can go on and try out the other custom document types covered in Step 5.

  1. Open the SAP Document AI basic UI, as described in the tutorial: Use Trial to Subscribe to the SAP Document AI Basic UI.

  2. In the left navigation pane, click Schema Configuration.

    LLM
    LLM

  3. To create your own schema, click Create.

    LLM
    LLM

  4. In the dialog that opens, enter a name for your own schema – for example, delivery_note_schema. Note that the name can’t include blanks. Next, select Custom as your Document Type and Document as the OCR Engine Type.

  5. Click Create to create the schema.

    LLM
    LLM

  6. Your schema now appears in the list. Access the schema by clicking on it.

    LLM
    LLM

Step 2 Add data fields
+
Step 3 Activate schema
+
Step 4 Get extraction results
+
Step 5 Create schema and get extraction results for other custom document types
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 5
1. Create schema 2. Add data fields 3. Activate schema 4. Get extraction results 5. Create schema and get extraction results for other custom document types
Next