Skip to content

LlamaCloud Component Extract

LlamaCloud Component Extract connects your flow with your LlamaCloud account, a service that reads documents such as invoices, contracts or forms. With it you can send files to an extraction agent you have already created in LlamaCloud, see the list of jobs in a project and retrieve the text of a document that was already processed.

When to use it

  • Send each invoice that arrives by email to the extraction agent you set up for invoices.
  • Check which documents in a project have been processed and the status of each.
  • Retrieve the text of a processed contract so an agent can summarise it.

Configuration

This component needs a LlamaCloud credential, with the access token and the server address. Pick it in the component’s credential field. See how to create it in Credentials.

FieldWhat it does
Parse ActionWhat the component does. Run on file (default): sends files to the extraction agent. List Alls Jobs: lists the project’s jobs. Get Parsed Text: retrieves the text of a processed document.
Organization Name (required)The organisation in your LlamaCloud account. The list loads when you pick the credential.
Project Name (required)The project within that organisation. The list loads when you pick the organisation.
Extraction Agent Name (with Run on file)The extraction agent that will process the files. It must already exist in the LlamaCloud project.
Records (with Run on file)The file or files you want to send. You can connect several.
Job Name (with Get Parsed Text)The processed document whose text you want. Pick one of those already processed in the project.

Output

What the Result output returns depends on Parse Action:

  • Run on file: one record per file with the reference of the job created (job_id), the file’s reference (file_id) and its name (file_name). The extraction carries on in LlamaCloud, where you can check the result.
  • List Alls Jobs: one record per job with its reference, status, name and the name of the original file.
  • Get Parsed Text: the text of the document and the number of pages processed.

An agent can also use the component as a tool; see what Tool Mode is in Key concepts.

Example

Every time a supplier invoice arrives, your flow passes it to Records, with Parse Action set to Run on file and the extraction agent “Supplier invoices” you created in LlamaCloud. At the end of the week, another flow with List Alls Jobs sends you the list of processed invoices and their status.