- Release Notes
- Overview
- Getting Started
- Marketplace Vendors
- Marketplace Customers
- Publishing Guidelines
- Publishing Guidelines for Ready-to-go Automations
- Publishing Guidelines for Solution Accelerators
- Publishing Guidelines for Integration Service Connectors
- Security & IP Protection
- Other UiPath Listings
- Node-RED
- Setup
- Teams
- Microsoft Teams Scope
- Create Team
- Create Team From Group
- Get Team
- Get Teams
- Channels
- Create Channel
- Delete Channel
- Get Channel
- Get Channels
- Update Channel
- Chats
- Get Chat
- Get Chats
- Get Chat Members
- Messages
- Get Message
- Get Messages
- Get Message Replies
- Reply To Message
- Send Message
- Events
- Create Event
- Delete Event
- Get Event
- Get Events
- Users
- Get User Presence
- How It Works
- Technical References
- Get Started
- About
- Setup
- Technical References
- Quickstart - Train and Get Model
- Azure Form Recognizer Scope
- Activities
- Analyze Form
- Analyze Form Async
- Get Analyze Form Result
- Analyze Receipt
- Analyze Receipt Async
- Get Analyze Receipt Result
- Analyze Layout
- Analyze Layout Async
- Get Analyze Layout Result
- Train Model
- Get Models
- Get Model Keys
- Get Model Info
- Delete Model
- Connectors
- How to Create Activities
- Build Your Integration
Quickstart - Train and Get Model
The purpose of this guide is to help you create a working sample that uses the following Azure Form Recognizer activities:
This working sample enables you to quickly verify the connection to your Azure Form Recognizer resource and get familiar with the activity's input/output datatypes.
After completing the steps in this guide, you'll have an automation sequence that does the following:
- Establishes a connection to your Azure Form Recognizer resource (Azure Form Recognizer Scope).
- Creates a new custom training model using the source form documents that you stored during Setup (Train Model).
- Retrieves and outputs the status of the train model operation (Do While, Get Model Info, and Write Line).
- Retrieves and outputs the keys extracted during the training model operation (Get Model Keys, For Each, and Write Line).
-
Deletes the new custom training model that you created (Delete Model).
Before you begin:
- Complete the Azure Form Recognizer Setup guide.
- Add the Azure Form Recognizer Scope to your project.
- In the Subscription Key and Endpoint properties, enter the Key1 and Endpoint values that you noted when creating your Azure Form Recognizer resource.
- Add the Train Model activity inside the Azure Form Recognizer Scope activity.
-
Enter the Azure Storage Blob Uri of the blob container that contains the source form documents you're using for your model.
- For more information, see the Get shared access signature section in the Setup guide.
-
Create and enter a
String
variable in the Model Id property (e.g., modelId). - Add the Get Model Info.
- In the Model Id property, enter the
String
variable you created for the Train Model activity (e.g., modelId). - Create and enter a
KeysResult[]
variable in the Keys poperty (e.g., keys). - Add a For Each activity after the Get Model Info activity.
- In the TypeArgument property, select String.
- In the Values property, enter the
KeysResult[]
variable with an array item identifier and theKeys
property (e.g., keys(0).Keys). -
Inside the For Each activity, add a Write Line activity.
- In the Text property, enter "Key: "+item.
- Add the Delete Model activity after the For Each activity.
- In the Model Id property, enter the
String
variable you created for the Train Model activity (e.g., modelId). -
Run the sequence and verify the Output window includes the expected values.
You're done!
To learn more about the Azure Form Recognizer activities (including example property inputs/outputs), see the Activities page for a complete list of activities and links to the detail pages.