Attachment input

Daria Zaboj product content specialist
Daria Zabój
3 min read
updated: Apr 4, 2022

The Attachment input interaction lets users attach files in an ongoing conversation with your chatbot.

ChatBot allows users to exchange files while chatting, including:

  • images (png, jpg, gif, raw, webp, image),

  • videos (webm, mp4, avi, mov, rm, rmvb, mpeg),

  • documents (txt, doc, docx, odt, ods, pdf, xls, xlsx, ppt, pptx).

You can define what type of attachments your chatbot can receive and which ones will trigger a subsequent chatbot interaction.

Sending attachments can be useful when you process receipts, forms, and various types of customer documents. This way, the customer doesn’t have to send their attachment via email — they can share it directly with your chatbot while chatting.

The Attachment input interaction is unavailable for the Chat Widget integration. It works within the LiveChat and Facebook Messenger integrations.
The Attachment input interaction is unavailable for the Chat Widget integration. It works within the LiveChat and Facebook Messenger integrations.

How to configure the Attachment input interactionLink icon

  1. Open your ChatBot Story.

  2. Head to the Actions and Interactions menu. Select the Attachment input block and add it after the Bot response block.

  3. Select the added block and name it.

  4. Select what type of attachment will trigger a subsequent chatbot response.

  5. When your chatbot receives the file from the user, it will save it as a URL. ChatBot saves collected data as attributes. To help you save the file URL, we’ve added a default attachment attribute to this interaction, so you don’t have to configure it on your own. All collected attachments are saved in the Archives.

If needed, you can use the attached file later in a conversation — for instance, when you want to remind the user about shared files or when you require a confirmation from them.
If needed, you can use the attached file later in a conversation — for instance, when you want to remind the user about shared files or when you require a confirmation from them.
  1. Then, you can add a Bot response after the Attachment input block to thank the user for the file, confirm you’ve received the data, or let them know what will happen next.

Note: If your Story doesn’t contain the Attachment input interaction, but the user tries to share a file anyway, ChatBot will ignore it by default. This means it won’t display a Fallback message.

To display a Fallback message when the user tries to share a file, but your Story doesn’t allow for that, go to Bot Settings and turn the React to attachment input option on. As a result, your chatbot will display a Fallback message anytime it’s not able to match the attached files with any available interaction.

Was this article helpful?

Got it!

Thanks for your feedback.

Thank you!

We’re happy to help.

Start a free ChatBot trial
and build your first chatbot today!

Free 14-day trial No credit card required

Discover our text| products