# Convert Text to HTML

## Overview

This operation accepts valid HTML text as input and generates an HTML file.

## Syntax

```
the text is "{input}"
convert the text to an html file
```

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

**Parameters** are placeholders for data. Refer to the table below for details on each parameter in this operation. In the syntax, replace parameters with your own values.

| Parameter | Description                           | Example                                   | Required |
| --------- | ------------------------------------- | ----------------------------------------- | -------- |
| `input`   | Text containing valid formatted HTML. | `<html><body>Hello, world!</body></html>` | Yes      |

## Examples

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

```
the text is "<html><body>Hello, world!</body></html>"
convert the text to an html file
```

{% endtab %}

{% tab title="Results" %}

```
An .html file that contains 'Hello, world!'
```

{% 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/conversions/convert-text-to-html.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.
