Skip to contentSkip to navigationSkip to topbar
On this page

Enable Chat Attachments (Webchat 2.0)


(information)

Info

This guide is for Flex UI 1.x.x and channels that use Programmable Chat and Proxy. If you are using Flex UI 2.x.x or you are starting out, we recommend that you build with Webchat 3.0.

(information)

Info

This Twilio product is currently available as a Public Beta release. Some features are not yet implemented and others may be changed before the product is declared as Generally Available. Beta products are not covered by a Twilio SLA. Learn more about beta product support(link takes you to an external page).

Attachment support in the Flex UI allows agents and customers to share files such as documents and images over a chat channel. To enable the web chat attachment pilot you'll need to be on Flex UI 1.20 and Flex Web Chat 2.5.

You have to enable chat attachments in both the Flex UI and Web Chat UI.

chat attachments.

Enabling attachments in Flex UI

enabling-attachments-in-flex-ui page anchor

To enable chat attachments in the Flex UI, visit the pre-release features page(link takes you to an external page) within Flex Admin.


Enable attachments in WebChat UI

enable-attachments-in-webchat-ui page anchor

To enable sending attachments between agents and customers, add the following code to Flex Web Chat UI webchat-appConfig.js configuration files.

1
fileAttachment: {
2
enabled: true
3
}

Enable read-only mode for Flex UI or WebChat UI

enable-read-only-mode-for-flex-ui-or-webchat-ui page anchor

If you want to limit users (customers or agents) from sending attachments but still want he to be able to see and download attachments sent to them, then you can configure attachments feature to be in readOnly mode.

1
fileAttachment: {
2
readOnly: true
3
}

The default configuration allows the following files types to be sent. The file can be up to 10Mb in size.

ImagesDocuments
.jpeg, .jpg, .png, .gif.txt, .pdf

Need some help?

Terms of service

Copyright © 2024 Twilio Inc.