Skip to content

Message to Data

Message to Data turns a message, such as the one coming from a chat or an AI model, into a data record. You need it when the next component only accepts data and not messages.

When to use it

  • Save an agent’s reply in a spreadsheet or database that expects data.
  • Pass what a user writes in the chat to components that filter or transform data.
  • Combine a message with other records using components such as Merge Data.

Configuration

FieldWhat it does
MessageThe message you want to convert. Connect it to the output of a chat, an agent or a model.

Output

  • Data: a record with the message text in the text field and the information that comes with it, such as the sender and the date. If what arrives is not a message, the record contains an error field with the explanation.

Example

An agent answers your customers’ questions and you want to save each reply in a tracking sheet. You connect the agent’s output to Message to Data and its Data output to the component that writes to the sheet. Each reply is logged as a row with its text.