﻿# Langflow Type Convert bridges ports without choosing the evidence for you

Use Langflow Type Convert to connect compatible data representations, checking the primary text field, selected output port and actual evidence passed into the prompt.

Author: Retrivium editorial team
Updated: 2026-11-03
Canonical URL: https://retrivium.ai/journal/guide-langflow-type-convert-text-selection/
Language: en

## Identify structure before reconnecting ports

A web-reading component returns rows containing page text, title, and URL, while a prompt expects a Message. The connection cannot be repaired by renaming the component. Langflow's [Type Convert guide](https://docs.langflow.org/type-convert) explains conversion between JSON, Table, and Message representations. First inspect the actual output so the chosen conversion reflects the data rather than only making the diagram connect.

## Understand the visible type names

The [data-type reference](https://docs.langflow.org/data-types) explains that older Data and DataFrame ports were renamed JSON and Table, with backward compatibility. Some examples and internal labels retain the earlier names. Compare their meaning and installed version instead of assuming every old name identifies an incompatible payload. A Message primarily carries text and can include message metadata; a Table represents rows and columns with different downstream possibilities.

## Check the primary text field

Structured JSON data has a `text_key` identifying its primary text and a fallback when that field is missing. A record containing a long passage under another key may therefore appear populated while its selected text representation is empty or incomplete. Inspect the fields needed for the task, including the page URL when attribution matters. Conversion does not infer an evidence policy from every available metadata field; choose and inspect the representation that the prompt will actually receive.

## Select the intended output explicitly

The [component reference](https://docs.langflow.org/concepts-components) distinguishes components emitting multiple ports from those requiring selection of an output type. Type Convert changes its output port according to the chosen type. A model component can also expose a response Message or a LanguageModel object, which serve different purposes. Check the selected port and hover information before diagnosing the downstream model. Inspect output after conversion rather than assuming a successful run proves all source content survived.

## Verify evidence at the prompt boundary

Use a short source record with a distinctive clause and URL, then inspect the converted Message and final prompt inputs. Confirm both the necessary text and its attribution remain available. The [message-content contract guide](/journal/provider-message-content-parts-contract/) illustrates why representation matters, while [citation coverage](/journal/rag-citation-precision-completeness/) tests supported claims. Keep a typed transformation separate from the later judgment that an answer faithfully uses the evidence; both are needed for a useful document workflow.
