Get familiar with the Cortex workflow by creating a simple workflow.
documents
. We enabled multiple file uploads in the field settings and activated the Extract images option to automatically extract images from uploaded documents. These extracted images will be passed to the model step later in the workflow, which we’ll cover in the upcoming sections.
We also added a text field called Fields to extract with the key name fields_to_extract
. These key names are important as they allow you to reference these fields in subsequent steps of your workflow.
{{form.output.fields_to_extract}}
- References the text input where users specify which fields to extract{{form.output.documents:images}}
- References the images extracted from the uploaded documentsstepKey.output
accesses any step’s output (in this case, “form” is our input step’s key):images
suffix specifically retrieves images from the documents because we enabled the Extract images option in the field settings:content
suffix can be used to access document text when the Extract contents option is enabled