> For the complete documentation index, see [llms.txt](https://docs.visualyze.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.visualyze.ai/rpa-studio/data/string/calculate-text-similarity.md).

# Calculate Text Similarity

This activity calculates the similarity score of two user-specified text inputs.

### Input

* **Text 1:** [`String Argument`](/getting-started/rpa-studio/arguments.md#types-of-arguments) <mark style="color:red;">`Required`</mark>\
  Specifies the first text input.
* **Text 2:** [`String Argument`](/getting-started/rpa-studio/arguments.md#types-of-arguments) <mark style="color:red;">`Required`</mark>\
  Specifies the second text to be compared with the first input.

### Configure

* **Scoring Method:**\
  Specifies the scoring method used for calculating the similarity. The available options are:-
  * `Exact` - To obtain a score for an exact match of the 2 input texts. That means if the two input strings are of the exact match then the score will be **100** else it will be **0**.
  * `Levenshtein` - To obtain a score to determine the number of shift, replace and insert operations that are required to transform **Text1** input to **Text2** input.

### Output

* **Similarity:** [`Integer Variable`](/getting-started/rpa-studio/variables/user-defined-variables-1.md#int64)\
  Specifies the similarity in the range 0-100, 0 means strings are completely different and 100 means exact match.

###


---

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

```
GET https://docs.visualyze.ai/rpa-studio/data/string/calculate-text-similarity.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.
