- Overview
- Adobe Sign
- Alteryx
- Amazon Comprehend
- Amazon Connect
- Amazon Rekognition
- Amazon Textract
- Box
- Release notes
- About the Box activity package
- Fix XAML After Package Update
- Project compatibility
- Setup
- Technical references
- Box Scope
- Commit Session
- Create File Version Session
- Create Upload Session
- Upload Part
- Delete Old Version
- Get Versions
- Promote Version
- Upload File Version
- Copy File
- Delete File
- Download File
- Get File Comments
- Get File Info
- Get File Info Details
- Get File Lock Info
- Lock File
- Move File
- Unlock File
- Upload File
- Copy Folder
- Create Folder
- Delete Folder
- Get Folder Info
- Get Folder Items
- Rename Folder
- Search For Content
- Execute Method
- Cognitive
- DocuSign
- Release notes
- About the DocuSign activity package
- Project compatibility
- Setup
- DocuSign Scope
- Invoke DocuSign Operation
- Create Envelope
- Create Envelope And Send
- Create Envelope From Template
- Create Envelope Recipients
- Get Document
- Get Documents
- Get Envelope
- Get Form Data
- Send Envelope
- Update Envelope
- List Attachments
- List Custom Fields
- List Documents
- List Envelope Status Changes
- List Recipients
- Create Bulk Send List
- Create Bulk Send Request
- Get Bulk Send List
- Get Bulk Send Lists
- Create Template Custom Fields
- Create Template Recipients
- Get Template
- List Templates
- Google Vision
- Jira
- Release notes
- About the Jira activity package
- Project compatibility
- Setup
- Jira Scope
- Execute Method
- Add Attachment
- Delete Attachment
- Download Attachment
- Get Attachments
- Add Comment
- Delete Comment
- Get Comments
- Create Component
- Delete Component
- Get Components
- Search Dashboards
- Create Filter
- Get Filters
- Create Issue Link
- Delete Issue Link
- Get Issue Link Types
- Get Issue Links
- Add Watcher
- Assign Issue
- Clone Issue
- Create Issue
- Delete Issue
- Get Issue
- Get Watchers
- Remove Watcher
- Search Issues Using JQL
- Transition Issue
- Update Issue
- Create Project
- Delete Project
- Get Project Types
- Get Projects
- Update Project
- Get Transitions
- Create User
- Delete User
- Find Users
- Marketo
- Microsoft Dynamics
- Microsoft Dynamics Finance and Operations
- Microsoft Translator
- Microsoft Vision
- Oracle Integration Cloud
- Oracle NetSuite
- Salesforce
- Release notes
- About the Salesforce activity package
- Project compatibility
- Setup
- Quickstart
- Salesforce Application Scope
- Create Bulk API Job
- Get Bulk API Job
- Get Bulk API Job Results
- Start or Abort Bulk API Job
- Assign File
- Download File
- Upload File
- Composite Request
- Delete Record
- Get List View Records
- Get Record
- Insert Record
- Update Record
- Upsert Record
- Execute Report
- Execute SOQL
- Format Column Names
- Format Labels And Values
- Lightning REST API Request
- Search
- SAP BAPI
- ServiceNow
- Slack
- Smartsheet
- Release notes
- About the Smartsheet activity package
- Project compatibility
- Setup
- Technical references
- Quickstart: Working With Rows
- Smartsheet Application Scope
- Attach File
- Attach URL
- Delete Attachment
- Get Attachment
- List Attachments
- Add Comment
- Delete Comment
- Get Comment
- List Discussions
- Copy Folder
- Create Folder
- Delete Folder
- Get Folder
- List Folders
- Add Group Members
- Get Group
- List Groups
- Remove Group Member
- Get Report
- List Reports
- Add Rows
- Copy Rows
- Create Discussion on Row
- Delete Rows
- Get Row
- List Rows
- Move Rows
- Update Rows
- Copy Sheet
- Create Sheet
- Create Sheet From Template
- Download Sheet
- Get Sheet
- List Sheets
- Update Sheet
- Add User
- Get User
- List Users
- Remove User
- Copy Workspace
- Create Workspace
- List Workspaces
- Import Sheet From CSV / XLSX
- Invoke Smartsheet Operation
- Search Activity
- Send Via Email
- Share Object
- SuccessFactors
- Tableau
- Twilio
- Workato
- Workday
Quickstarts
The following are links to step-by-step instructions on how to use the Amazon Textract activities. These guides help you create a working sample of the different activities so that you can verify the connection to your AWS resources and get familiar with the input/output datatypes.
Quickstart |
Description |
---|---|
After completing the steps in this guide, you'll have an automation sequence that does the following:
If the file includes form data (
FormField[] ),
the PageDetail.FormFields.Items().Key and
PageDetail.FormFields.Items().Value values are
written to the output window (For Each and Write Line).
If the file includes table data (
DataTable ), the
PageDetail.Tables values are written to the
output window (Output Data Table and Write Line).
| |
After completing the steps in this guide, you'll have an automation sequence that does the following:
|
The purpose of this guide is to help you create a working sample that uses the Amazon Textract Analyze Single Page Document activity.
This working sample enables you to quickly verify the connection to your AWS resources 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 AWS resources (Amazon Scope).
- Analyzes a single JPEG or PNG file (Analyze Single Page Document).
-
Outputs the results of the analysis depending on the type of data found (If).
- If the file includes form data (
FormFields
), thePageDetail.FormFields.Items().Name
andPageDetail.FormFields.Items().Value
values are written to the output window (For Each and Write Line). -
If the file includes table data (
DataTable
), thePageDetail.Tables
values are written to the output window (Output Data Table and Write Line).
- If the file includes form data (
Before you begin:
- Complete the Amazon Textract Setup steps.
- Make a JPEG or PNG file available by uploading it to an S3 bucket or saving it locally.
Build Your Project
- Add the Amazon Scope activity to your project.
-
Enter the Id,Secret, and Region for the IAM user that you want to use for the Amazon Textract activities.
- For more information, see the Create IAM user section in Setup guide.
- Add the Analyze Single Page Document activity inside the Amazon Scope activity.
- Enter the DocumentPath to, or the Bucket and DocumentName of, the JPEG or PNG fle that you want to analyze.
-
Create and enter a
PageDetail
variable for your Page value (e.g., pageDetail).- When creating your variable, select UiPath.Amazon.Textract.Client.Models.PageDetail as the variable type.
- Add an If activity after the Analyze Single Page Document activity.
- In the Condition property, enter the
PageDetail
variable you created in the step above and .HasFormData.ToString.Equals("True") to determine if the file containsFormField
objects (e.g., pageDetail.HasFormData.ToString.Equals("True")) -
In the Then statement box, add a For Each activity.
- In the TypeArgument property, select _UiPath.Amazon.Textract.Client.Models.FormFields
- In the Values property, enter the
FormFields.Items
property of the variable you created for the Get Messages activity (e.g., pageDetail.FormFields.Items). -
In the For Each activity, add a Write Line activity.
- In the Text property, enter item.Name+" | "+item.Value+" | "+item.Confidence to output the form data's
KeyValuePair
values.
- In the Text property, enter item.Name+" | "+item.Value+" | "+item.Confidence to output the form data's
- In the Else statement box, add a Write Line activity.
- In the Text property, enter "No form data found."
- Add another If activity after the first If activity.,
- In the Condition property, enter the
PageDetail
variable you created in the step above and .HasTableData.ToString.Equals("True") to determine if the file containsDataTable
objects (e.g., pageDetail.HasTableData.ToString.Equals("True")) -
In the Then statement box, add an Output Data Table activity.
- In the DataTable property, enter the
PageDetail
variable you created for the Analyze Single Page Document activity and .Tables(0) to specify the 'DataTable` object in the file (e.g., pageDetail.Tables(0)) - For the Text property, create and enter a
String
variable for theDataTable
content (e.g. dataTable). -
Add a Write Line activity after the Output Data Table activity.
- In the Text property, enter the
String
variable you created in the step above to output theDataTable
content.
- In the Text property, enter the
- In the Else statement box, add a Write Line activity.
- In the Text property, enter "No table data found."
- In the DataTable property, enter the
-
Click Run and verify the Output window includes the expected form data and table data.
You're done!
When you're ready, try the other Quickstart guides to get more familiar with the different Amazon Textract activities.
To learn more about the Amazon Textact activities (including example property inputs/outputs), see the Activities page for a complete activity list and links to the activity detail pages.
The purpose of this guide is to help you create a working sample that uses the Amazon Textract Start Document Analysis, Get Document Analysis Status, and Get Document Analysis activities.
This working sample enables you to quickly verify the connection to your AWS resources 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 AWS resources (Amazon Scope).
- Starts an Amazon Textract analysis job (Start Document Analysis).
- Retrieves and outputs the status of the started analysis job (Do While, Get Document Analysis Status, Write Line, and Delay).
-
Retrieves and outputs the results of the analysis if/when the analysis job is successful (If, Get Document Analysis, For Each, For Each and Write Line).
Before you begin:
- Complete the Amazon Textract Setup steps.
- Make a JPEG or PNG file available by uploading it to an S3 bucket or saving it locally.
- Add the Amazon Scope activity to your project.
-
Enter the Id,Secret, and Region for the IAM user that you want to use for the Amazon Textract activities.
- For more information, see the Create IAM user section in Setup guide.
- Add the Start Document Analysis activity inside the Amazon Scope activity.
- Enter the Bucket and DocumentName of, the JPEG or PNG fle that you want to analyze.
- Create and enter a
String
variable for the JobId value (e.g., jobId). - Add a Do While activity after the Start Document Analysis activity.
- Inside the Do While activity, add the Get Document Analysis Status activity.
- In the Job Id property, enter the
String
variable you created for the JobId above (e.g., jobId). - Create and enter a
String
variable for the JobStatus value (e.g., jobStatus). -
In the Condition property of the Do While activity, enter the JobStatus variable along with a condition value (e.g., jobStatus = "IN_PROGRESS")
- For a list of the possible job status values, see the JobStatus property section of the Get Document Analysis Status details page.
- Add a Write Line activity after the Get Document Analysis Status activity.
- In the Text property, enter the
String
variable you created for the JobStatus value above (e.g., jobStatus). - Add a Delay activity after the Write Line activity.
-
In the Duration property, enter the estimated amount of time it will take to process your document. In our example, we enter 00:00:20 to demonstrate the Job Status output value changes (for non-demo scenarios, we enter 00:00:55 for a single form document).
Note: In the scenario outlined above, your Robot retrieves and outputs the status of the analysis job every 20 seconds while the status equals IN_PROGRESS. This condition enables the Robot to retrieve and output the status until it changes. - Add an If activity after the Do While activity.
- In the Condition property, enter the JobStatus variable along with a condition value (e.g., jobStatus = "SUCCEEDED" or jobStatus="PARTIAL_SUCCESS")
-
In the Then statement box, add the Get Document Analysis activity.
- In the Job Id property, enter the
String
variable you created for the JobId property in the Start Document Analysis activity. (e.g., jobId). - Create and enter a
PageDetail[]
variable for your Pages value (e.g., pageDetails).
- When creating your variable, select UiPath.Amazon.Textract.Client.Models.PageDetail[] as the variable type.
- In the Job Id property, enter the
-
For our example below, we will only evaluate the first document in the
PageDetail[]
array of the Pages property.- Create and enter a
PageDetail
variable to store the first item in the array, and use a Assign activity after the Get Document Analysis activity (e.g., pageDetail). - Assign the PageDetail(0) as the value to the variable you just created (pageDetail)
- Create and enter a
-
Add a For Each activity after the Assign activity.
- In the TypeArgument property, select UiPath.Amazon.Textract.Client.Models.FormFields
- In the Values property, enter the
FormFields.Items
property of the variable you created for the Assign activity (e.g., pageDetail.FormFields.Items). -
In the For Each activity, add a Write Line activity.
- In the Text property, enter item.Name+" | "+item.Value+" | "+item.Confidence to output the form values.
- In the Else statement box, add a Write Line activity.
- In the Text property, enter a message for a failed job (e.g., _"Job failed, try again.")
-
Run the sequence and verify the Output window includes the job status and expected form data values.
You're done!
When you're ready, try the other Quickstart guides to get more familiar with the different Amazon Textract activities.
To learn more about the Amazon Textact activities (including example property inputs/outputs), see the Activities page for a complete activity list and links to the activity detail pages.