> For the complete documentation index, see [llms.txt](https://docs.drafter.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.drafter.ai/building-blocks/actions/entity-extraction.md).

# Entity Extraction

## Overview

<figure><img src="/files/OayvleRVP5xyehZODB9i" alt=""><figcaption><p>Entities extraction block</p></figcaption></figure>

Entity Extraction is a powerful tool that allows you to automatically identify and extract named entities from text.

This AI block uses advanced natural language processing techniques to analyze the input and identify entities such as people, organizations, locations, and dates. It can also identify other types of entities, such as products, events, and concepts.

Entity Extraction is useful for a wide range of applications, including information retrieval, content analysis, and data mining.

It can help you to quickly and accurately identify key information in large volumes of text, making it easier to analyze and understand.

You can adjust the confidence threshold, filter the types of entities to extract, and customize the output format after it.

## How to Setup

1. Provide text input to extract entities from.
2. Set the name of the output data variable (optional)
3. Change the confidence score (optional) - the higher it is, the fewer entities you have in the output, and vice versa.

![](/files/06QKjQ5FJbAIX81LaPyv)

{% hint style="warning" %}
All the entities are in the same text variable, separated by commas.
{% endhint %}

{% hint style="info" %}
If you need to split them into multiple entries for further processing in the workflow (i.e. searching for additional info on all of them using Google) - use [Split](/building-blocks/flow-controls/split.md) block after it.
{% endhint %}

## Inputs and Outputs

<table><thead><tr><th width="188">Input</th><th width="163.33333333333331">Output</th><th>Output Description</th></tr></thead><tbody><tr><td>Any Text (x1 text)</td><td>Entities (x1 text)</td><td>Extract named entities, like personal names, company names, numbers, or locations with their entity types.</td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.drafter.ai/building-blocks/actions/entity-extraction.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
