# Get Text Length

## Overview

This operation calculates a string's length by counting the total number of characters, including letters, numbers, spaces, and symbols. It is useful for validating input lengths and analyzing text.

## Syntax

This operation supports two alternative formats. It works with and without an explicit **get**.

#### Option 1

```
the text is "{input}"
the text's length
```

#### Option 2

```
the text is "{input}"
get the text's length
```

## Data

The table below lists the names of the data elements in this operation and indicates which can be renamed in the syntax.

| Data Name | Can Be Renamed |
| --------- | -------------- |
| the text  | Yes            |

## Parameters

| Parameter | Description                                     | Examples          | Required |
| --------- | ----------------------------------------------- | ----------------- | -------- |
| `input`   | The input text whose length will be calculated. | "Happy Holidays!" | Yes      |

## Examples

{% tabs %}
{% tab title="Automation" %}

<pre><code><strong>the title is "Booking Report"
</strong>get the title's length
</code></pre>

{% endtab %}

{% tab title="Results" %}

```
14
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Automation" %}

```
the greeting is "Happy Holidays!"
the greeting's length
```

{% endtab %}

{% tab title="Results" %}

```
15
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: 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:

```
GET https://docs.kognitos.com/legacy/legacy-experience/automation-areas/text/get-text-length.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
