Skip to content

File Message

File Message builds a new message with two parts: a text you define and the files carried by another message, for example the images a user attaches in the chat. Use it when you want to send those files to another step of the flow together with your own instruction, instead of the user’s original text.

When to use it

  • A customer sends a photo of a damaged product through the chat and you want to pass it to an agent with the instruction “Describe the damage and suggest a solution”.
  • You want to forward the attachments of a conversation with a fixed introduction text.
  • You need a model to always receive the same question together with the files that arrive in each run.

Configuration

FieldWhat it does
TextThe text of the new message. You can type it or connect it from another component.
Message with filesThe message the attachments are taken from, for example the output of Chat Input. If it is not connected or carries no files, the new message has only the text.

Output

The Message output is a message with the text from Text and the files from Message with files. You can connect it to an agent or to any component that takes messages.

Example

A customer service team receives photos of incidents through the chat.

  1. Connect the Chat Input output to Message with files.
  2. In Text, type “Check the attached image, say which part is damaged and whether the damage looks like it happened in transit”.
  3. Connect Message to the agent that handles incidents.