> ## Documentation Index
> Fetch the complete documentation index at: https://docs.unstructured.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Table to HTML task

> The Table to HTML task converts detected tables into HTML markup using agentic AI or a vision language model, improving accuracy and downstream rendering.

*Type*: `prompter`

*Subtype*: see [Settings](#settings)

<Warning>
  Unstructured can potentially generate table-to-HTML output only for workflows that are configured as follows:

  * With a **Partitioner** node set to use the **Auto** or **High Res** partitioning strategy, and a table-to-HTML output node is added.
  * With a **Partitioner** node set to use the **VLM** partitioning strategy. No table-to-HTML output node is needed (or allowed).

  Even with these configurations, Unstructured actually generates table-to-HTML output only for files that contain tables and are also eligible
  for processing with the following partitioning strategies:

  * **High Res**, when the workflow's **Partitioner** node is set to use **Auto** or **High Res**.
  * **VLM** or **High Res**, when the workflow's **Partitioner** node is set to use **VLM**.

  Unstructured never generates table-to-HTML output for workflows that are configured as follows:

  * With a **Partitioner** node set to use the **Fast** partitioning strategy.
  * With a **Partitioner** node set to use the **Auto**, **High Res**, or **VLM** partitioning strategy, for all files that Unstructured encounters that do not contain tables.
</Warning>

## Settings

<ParamField body="subtype" type="string" required>
  Enrichment algorithm and provider. Set at the `WorkflowNode` level, outside of `settings`. Allowed values:

  * `twopass_table2html` — agentic AI table-to-HTML output. Do not specify `provider_type` or `model` when using this subtype.
  * `anthropic_table2html` — VLM table-to-HTML output using Anthropic.
  * `openai_table2html` — VLM table-to-HTML output using OpenAI.

  <Note>
    The preceding list applies only to Unstructured **Let's Go** and **Pay-As-You-Go** accounts.

    For Unstructured **Business** accounts, to get your current list of available values, contact your
    Unstructured account administrator or Unstructured sales representative, or email Unstructured Support at
    [support@unstructured.io](mailto:support@unstructured.io).
  </Note>
</ParamField>

<ParamField body="provider_type" type="string">
  Provider that matches the prefix of `subtype`. Not used with `twopass_table2html`. Allowed values: `anthropic`, `openai`.
</ParamField>

<ParamField body="model" type="string">
  Model to use for table-to-HTML conversion. Not used with `twopass_table2html`. For a full list of the models available in Unstructured, see [Available models](/api-reference/workflow/models).
</ParamField>

<RequestExample>
  ```python Python SDK theme={null}
  table_to_html_enrichment_workflow_node = WorkflowNode(
      name="Enrichment",
      subtype="<subtype>",
      type="prompter",
      settings={
          "provider_type": "<provider-type>",
          "model": "<model>"
      }
  )
  ```

  ```json cURL theme={null}
  {
      "name": "Enrichment",
      "type": "prompter",
      "subtype": "<subtype>",
      "settings": {
          "provider_type": "<provider-type>",
          "model": "<model>"
      }
  }
  ```
</RequestExample>
