Overview
Workflows in Anyformat allow you to define and manage your data extraction processes. Each workflow represents a template for extracting specific information from documents. Once a workflow is created, you can use it to process files by submitting them to the File Processing endpoint and specifying the workflow ID.Create a workflow
To create a new workflow, simply send a POST request with your workflow’s configuration:manual_fields array when creating a workflow.
They can then be used to enrich the extracted data with additional information for each processed file. That information will be appended to the extracted data so you can, for example, perform more complex/precise operations on the extraction results.
Manual fields are defined as follows:
Workflow Creation Fields
description: Description of what the workflow doesfields: Array of fields to extract, each with:name: Field identifierdescription: What this field representstype: The data type of the field. Must be one of:string: Text valuesinteger: Whole numbersfloat: Decimal numbersdate: Date values (YYYY-MM-DD)datetime: Date and time valuesboolean: True/false valueslist: Array of valuesobject: Nested object structureenum: Set of values to be used as choices
manual_fields: Array of fields to be provided by the user, each with:name: Field identifierdescription: What this field representstype: The data type of the field (same values as above, minus object and enum types as they are not supported for manual fields)
Defining an object field
Defining an enum field
enum_options array. Otherwise, the field will be null.
Workflows created via the API are visible and manageable in the Anyformat app too.
List all workflows
Retrieve a list of all your workflows:Retrieve a workflow
Basic information about a specific workflow can be retrieved by querying the/workflows/:id/ endpoint:
