A learning instance in Document Automation defines the document type,
language, extraction provider, and fields that the system uses to extract data. Use this task
to configure document processing for forms, invoices, receipts, tables, and other supported
document types.
Before you begin
- To create a learning instance, you must be a
Learning instance
creator user. See Document Automation users.
- For document types that support OCR, the default OCR is
ABBYY FineReader Engine. Alternatively, you can create a learning
instance to process documents using Google Vision OCR.
- For Standard Forms document type, ensure that you have
created a custom extraction model. See Create a custom extraction model using Standard Forms.
Procedure
-
From the Control Room home page, navigate to , and click
Create new.
-
Enter a name and description for the learning instance.
Document Automation does not allow duplicate learning instance
names, so the name you provide must be unique.
-
Choose the document type that matches the documents you want to process.
Note: Use the User-defined document type
to process documents that are visually similar to invoices, such as purchase
orders and sales orders, which contain key-value pairs and a table structure. In
this document type, you create and configure all of the form and table
fields.
-
Select the language.
For
details about the languages supported in Document Automation, see Languages supported in Document Automation.
If you selected a document type that is
configured in the parser, the language set during parser configuration is
automatically selected. The locale list also updates to match the auto-selected
language.
-
Select a provider.
If you selected English in
Language field,
Automation Anywhere (Pre-trained) is automatically selected as the provider.
If you select a document type that is used while
configuring the parser in step 3, the configured (third-party) parser is
auto-selected as the provider.
- Optional:
Select an OCR provider.
You can select from the following options:
- ABBYY
- Google Vision
- Digital PDF Extractor
Note: Use the Digital PDF
Extractor option only to extract data from digital PDFs
and not from scanned documents or images.
By default, Document Automation processes documents using ABBYY FineReader Engine.
Users with a
Cloud
Control Room can select to process documents using Google Vision OCR or Digital PDF Extractor.
-
In the Process document using section select one of the
following options:
- Optional:
Select the Improve accuracy using validation option to send
extraction feedback to the system and improve future results. For more information,
see Improving extraction
accuracy through validation.
Note:
- The Improve accuracy using
validation option is available only for selected document
types.
- The Improve accuracy using
validation option will use the user prompts provided in the
Search query for generative AI model feature to
improve data extraction. See Extract data from unstructured documents using generative AI.
- Optional:
Select the Generative AI-driven data extraction option to
use the generative AI capabilities for extraction. For more
information, see Extract data from unstructured documents using generative AI.
Select an
Automation Anywhere
generative AI provider or a custom
generative AI model connection:
Note:
- For creating custom generative AI model
connections, see Using Model connections in Document Automation.
- To use the Generative AI-driven data
extraction option, ensure that you are using the Document Extraction
package version 3.31.16 or later. See Document Extraction package updates.
- The Generative AI-driven data extraction option is
available only for selected document types. For some document types, the
Generative AI-driven data extraction option is
enabled by default and cannot be disabled. You can only choose the generative AI provider for such document
types.
- When you update from a previous release to v.33 or later, Open
AI will be set as the default data extraction provider.
- If you have selected the Anthropic provider for a learning
instance and incorrectly configured the Anthropic settings or
selected a different provider in the corresponding extraction bot, you will see an error when processing documents.
- If you have processed documents using OpenAI and
then switched to Anthropic for data extraction, only the
documents that will be processed after switching to Anthropic
will use Anthropic for data extraction. For the previously
processed documents, the data extracted would be using OpenAI.
- Open AI: OpenAI provides access
to language models for content generation, summarization, image understanding,
and semantic search. This provider is available via embedded license (does not
require any additional licenses) and bring your own key (BYOK). If you are
using BYOK, configure the additional settings for OpenAI
in the extraction bot. See Extract data action.
- Anthropic: You can now use the Anthropic
generative AI models available via AWS and GCP for data extraction in Document Automation. This offering provides you the flexibility to
select the generative AI model depending on the Cloud provider your company has certified.
Anthropic provides the following advantages:
- Efficient processing of large, unstructured documents
- Can handle documents in both English and other languages
- Processes documents faster with better data extraction accuracy
If you are using BYOK, you must configure the Anthropic Claude model on Google Vertex AI or Amazon Bedrock service and then configure the additional
settings in the extraction bot to use this provider. See
Extract data action.
- Google Gemini: You can now use the Google Gemini
generative AI models for data extraction in Document Automation.
Google Gemini provides the
following advantages:
- Efficient processing of large, unstructured documents
- Support for documents in both English and other languages
- Handle of complex document layouts
- Faster processing with better data extraction accuracy
Note: BYOK is not supported for Google Gemini models.

-
Click Next.
We recommend that you open a sample document side by
side with the
Control Room window as you configure the form and table fields.
Note:
- A form field is a type of field that occurs only one time in a document.
- A table field is a type of field that reoccurs throughout a document,
typically in the form of a table.
-
Configure the form and table fields for extraction. For more details, see View and search fields.
-
Click a field to open the fields editor. For more details, see .Guidelines to edit the fields and create custom aliases
-
Hover over the menu icon to the right of a field to access the up/down
arrows.
-
Use the arrows to rearrange the order of the fields for a more efficient
manual validation.
The order of the fields does not impact extraction.
-
Click Add a field and specify the field details such as
field name, field label, confidence threshold, data type, and date or number format.
For more details, see Considerations for form and table fields.
The following image shows form and table fields configured in a learning
instance:


Note: The Add a
field option is not available for Receipts
document type.
- Optional:
On the Table fields tab, click + icon
to add a custom table at learning instance level.
-
Enter a name for the table.
- Optional:
Enter a prompt to describe the details of the table in the
document from which you want to extract data. For example, if a document
contains multiple tables with identical headers but different titles, you can
specify the exact table title in the prompt to ensure data is extracted from
the correct table.
To update a table prompt, click the
Edit table
(

) icon, update the prompt, and click
Update.
-
Click Add.
-
Click Add a field and specify the fields details such
as field name, fields label, confidence, data type, format date/number, and so
on. For more details, see Considerations for form and table fields.
Note: You can also add and delete the custom table while
editing a learning instance.
-
Click Create.
Results
When a new learning instance is created, the Control Room creates a
folder with the same name as the learning instance in the folder. The folder contains two bots (extraction and
download), a process, and a form. For more details, see Bots output file and folder structure.
What to do next
Upload documents to the learning instance, fix validation errors, and verify the
extracted data: Process documents in Document Automation