Outputs

Text Output and Chat Output components define where data exits your flow. They can send data to the user or the Playground, or define how the data is presented in the Playground.

  • Text Output takes Text`input with no additional formatting or metadata and creates a `Message object.

  • Chat Output handles multiple input types and creates a Message object that includes chat-specific features like message history and sender information.

Chat Output

This component displays chat messages in the Playground.

The Chat Output component creates a Message object that includes the input text, sender information, session ID, and styling properties. It can optionally store the message in a chat history.

The component accepts the following input types.

  • Data

  • DataFrame

  • Message

Parameters

Inputs
Name Display Name Info

input_value

Text

The message to be passed as output.

should_store_message

Store Messages

The flag to store the message in the history.

sender

Sender Type

The type of sender.

sender_name

Sender Name

The name of the sender.

session_id

Session ID

The session ID of the chat. If this option is empty, the current session ID parameter is used.

data_template

Data Template

The template to convert Data to Text. If this option is empty, it is dynamically set to the Data’s text key.

background_color

Background Color

The background color of the icon.

chat_icon

Icon

The icon of the message.

text_color

Text Color

The text color of the name.

clean_data

Basic Clean Data

When enabled, DataFrame inputs are cleaned when converted to text. Cleaning removes empty rows, empty lines in cells, and multiple newlines.

Outputs
Name Display Name Info

message

Message

The resulting chat message object with all specified properties.

Component code

chat.py
404: Not Found

Text Output

The Text output component takes a single input of text and returns a Message object containing that text.

The output does not appear in the Playground.

Parameters

Inputs
Name Display Name Info

input_value

Text

The text to be passed as output.

Outputs
Name Display Name Info

text

Text

The response message containing the input text.

Component code

text.py
404: Not Found

Was this helpful?

Give Feedback

How can we improve the documentation?

© 2025 DataStax | Privacy policy | Terms of use | Manage Privacy Choices

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: +1 (650) 389-6000, info@datastax.com