> 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/key-phrases-extraction.md).

# Key Phrases Extraction

## Overview

This Drafter AI block allows you to extract key phrases from any text. It uses advanced algorithms and natural language processing techniques to identify the most important words and phrases in the text.&#x20;

This makes it an invaluable tool for anyone who needs to quickly and accurately identify the main themes and topics in a piece of writing.&#x20;

Whether you're a content creator, a marketer, or a researcher, Key Phrases Extraction can help you save time and improve the quality of your work.&#x20;

Input your text and let Key Phrases Extraction do the rest.

## How to Setup

Provide the next mandatory info:

1. Data input (text) - variables from other blocks or provided by a user as manual input
2. Data output - result variable, that the block produces. Change its name for ease of further use.

![](/files/lMbMsXXtqgE3jC9WjLOP)

## 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 (Text)</td><td>Key Phrases (Text)</td><td>Extract key phrases from the texts</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/key-phrases-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.
