Aller au contenu
Agentic Workflowdocs
v0.8.2Installer gratuitement

nœuds / builtin / ai / aiagents

Information Extractor

Extract structured information from a text using a LLM

IA ExtensionApplication web

Ce contenu n’est pas encore disponible dans votre langue.

Pull named pieces of information (a name, a date, an amount) out of free text with a chat model.

workflow · selection-to-todoist.awf 4 étapes

Selection to Todoist Task : un workflow de 4 étapes, qui commence par Right-click a selection et se termine par Create the Todoist task.

Ouvrir dans AWFlow

Information Extractor sends Text to the chat model connected to its Model slot and asks it to extract the fields you list in What to extract. The result comes back in one field, extracted.

Without an output parser, extracted is the model’s reply as text. Connect a Structured Output Parser to the Output Parser slot to get a real object whose fields you can use in later nodes.

  • Read an invoice or order email and pull out the customer, date and total.
  • Turn a support message into fields (product, problem, urgency) before saving it to a sheet.
  • Collect contact details from a page you are visiting.

To rewrite or answer freely, use Basic LLM Chain. To pick one label for the text, use Text Classifier.

RéglageTypeCe que cela fait
Text (obligatoire)Long textThe text to extract information from.
What to extract (obligatoire)Long textDescribe the fields to extract, or connect an Output Parser.
Options GroupThe options for the node.
Options › System message Long textThe system message to use.

Fill Text with an expression such as {{ $input.text }}.

What to extract is required even when an output parser is connected. List each field and its format, for example: customer name, invoice date (YYYY-MM-DD), total amount as a number, currency code.

Use System message under Options for extra rules, such as Leave a field empty when it is not in the text.

  • Output

Each output item has these fields:

FieldTypeWhat it holds
extracted AnyThe data the model extracted
Shape of an output item
{
"extracted": null
}

With a Structured Output Parser connected, read single fields downstream with expressions such as {{ $input.extracted.total }}. Without one, extracted is text, so field access does not work.

SlotAcceptsConnections
Model (obligatoire)chat modelOne node.
Output Parser output parserOne node.
  1. Get Selected Text reads an order email you highlighted, with Output field name text.
  2. Information Extractor with Text {{ $input.text }} and What to extract customer name, order number, total. Connect an Chat OpenAI model and a Structured Output Parser with JSON Output Example { "customer": "Jane Doe", "orderNumber": "A-1042", "total": 59.9 }.
  3. Display Object shows extracted, or a Google Sheets node appends {{ $input.extracted.customer }} and {{ $input.extracted.total }} as a row.
  • {{ $input.extracted.field }} is empty. No output parser is connected, so extracted is plain text. Connect a Structured Output Parser.
  • The parser fails on the reply. The model answered with extra text around the data. Add an Auto-fixing Output Parser, or use a stronger model.
  • “Dependency model is required”. Connect a chat model to the Model slot.
  • “Model not found”. The connected model node is not set up: open it and choose a model and its credential.
  • Fields are guessed when missing from the text. Say in System message to leave missing fields empty.
Turn highlighted text into a Todoist task débutant · 6 min Nécessite une connexion
Modifier cette page

Dernière mise à jour :

Was this page useful?
Demander à Aria à propos de Information Extractor