nodes / builtin / ai / aiagents
Information Extractor
Extract structured information from a text using a LLM
Pull named pieces of information (a name, a date, an amount) out of free text with a chat model.
Try it
Section titled “Try it”Selection to Todoist Task: a workflow with 4 steps, starting with Right-click a selection and ending with Create the Todoist task.
What it does
Section titled “What it does”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.
When to use it
Section titled “When to use it”- 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.
Inputs and settings
Section titled “Inputs and settings”| Setting | Type | What it does |
|---|---|---|
| Text (required) | Long text | The text to extract information from. |
| What to extract (required) | Long text | Describe the fields to extract, or connect an Output Parser. |
| Options | Group | The options for the node. |
| Options › System message | Long text | The 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.
Outputs
Section titled “Outputs”-
Output
Each output item has these fields:
| Field | Type | What it holds |
|---|---|---|
| extracted | Any | The data the model extracted |
{ "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.
Dependencies and credentials
Section titled “Dependencies and credentials”| Slot | Accepts | Connections |
|---|---|---|
| Model (required) | chat model | One node. |
| Output Parser | output parser | One node. |
- Model: a chat model such as Chat OpenAI or Chat Anthropic. The model node holds the API key; this node has no credential of its own.
- Output Parser: a Structured Output Parser whose JSON Output Example matches the fields you want, or an Auto-fixing Output Parser to repair replies that do not parse.
Example workflow
Section titled “Example workflow”- Get Selected Text reads an order email you highlighted, with Output field name
text. - Information Extractor with Text
{{ $input.text }}and What to extractcustomer 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 }. - Display Object shows
extracted, or a Google Sheets node appends{{ $input.extracted.customer }}and{{ $input.extracted.total }}as a row.
Common issues
Section titled “Common issues”{{ $input.extracted.field }}is empty. No output parser is connected, soextractedis 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.
Recipes with this node
Section titled “Recipes with this node”Related nodes
Section titled “Related nodes”- Structured Output Parser: define the shape of
extracted. - Basic LLM Chain: free-form prompts.
- Text Classifier: route text by category.
- Sentiment Analysis: route text by tone.