What is a File Block
The file block enables receiving responses in various file formats, such as videos, images, audios, and documents, allowing users to submit attachments in any required format. This block type ensures versatility in data collection and validation.
Why use the File Block?
File blocks can be used to receive a file from the end-user. This block ensures that the user's input is validated as a file in an accepted format. By incorporating the file block, businesses enhance efficiency in handling diverse user needs, ensuring that all necessary information is processed according to specified requirements.
Steps to create a File Block
1. Click the Add icon.
2. Choose File under the Ask Question section.
3. Enter Block Name.
4. Add the Question in the question field.
5. Choose the Format options you want your user to send the file in and click Save.
Allowed formats:
Document: TXT, PDF, DOC, DOCX, ZIP, XLS, CSV, HTML, XML, PPT
Image: JPEG, PNG, GIF, TIFF, BMP, HEIC
Audio: MP3, WAV, AIFF, OGG
Video: MP4, 3GP, AVI, MPG, MOV, MKV
WhatsApp approves files only in PDF
6. Block Variable will be auto-populated according to the added block name. You can edit the block variable if needed.
7. Adjust the existing Validation Error Message to fit the context of your file block.
8. Navigate to Advanced Settings.
8. Click the Preview option to see how the block would be displayed to the user.
9. Click Save.
- If this block is not mandatory for your user to answer, toggle on the option to Skip Block.
- This option is not available for flows of WhatsApp, Telegram, and Facebook Messenger channels.
- If you want to keep this block as the end of your conversational flow, toggle on the End block option.
- Files can be either dragged and dropped or attached. They cannot exceed 14 MB.
- For WhatsApp, Telegram, and Facebook Messenger, the limit should not exceed 10 MB.
Edit the File Block
You can edit File Block whenever required, even after the flow is published or in the drafts section, by following these steps:
1. Open the flow and click Edit.
2. Click the File Block, which you may have named differently.
3. Choose Edit from the displayed options.
4. Make the required changes to the block.
5. Publish the flow.
- If you edit a block while an end user is engaged in a live session with the bot, the previous version of the flow will be rendered until they restart the conversation.
- After making changes, it is necessary to republish the flow for those changes to be reflected in an end user's session.
- If a change is made to an input variable, it will be updated automatically across all flows where the variable is used.
Copy a File Block
If you need to reuse a block that you previously created, you can copy that block and add it to your flow as it is or edit it according to the requirement.
1. Click on the File Block you wish to copy.
2. Copy the block to be pasted on the clipboard.
3. When you want to paste that block, click the Add block icon (+).
4. The copied block will appear on the block listing section and be stated as Clipboard.
5. Click Paste Block and edit the details.
- The copied file block can be pasted multiple times.
- If you no longer need to paste it, you can clear the clipboard by clicking the close icon corresponding to the clipboard option.
- When copying an existing file block, all of its content, including any variables, will be copied as is.
- You can edit it as needed before adding it to the flow.
- Since the names of each block must be unique, the word '_copy' will be added to the copied blocks automatically; this can be changed if required.
- If you have copied a block and it is in the clipboard, deleting the copied block later will also remove it from the clipboard.
1. Open the flow and click on Edit.

2. Click the File Block, which you may have named differently.
3. Select Delete.
4. Confirm deleting the selected block by clicking Yes, Delete it.
5. Restore the deleted block by clicking the Undo option, but not otherwise.
5. Click Save.
6. Publish the flow.
- If you delete a file block while an end user is engaged in a live session with the bot, the previous version of the flow will be rendered until they restart the conversation.
- After making changes, you will need to publish the flow for those changes to be reflected in an end user's session.
If the block was used to jump to a different flow:
A customer from the online store Zylker Electronics received their order but encountered an issue. They immediately visited the website and started a conversation with the bot.
During the interaction, the customer reported that the gadget they received was physically damaged and making unusual sounds. Additionally, the package it came in was in poor condition. Among the available options, the customer chose to attach a video file to demonstrate all the issues at once.
Examples of the file blocks in a flow
Multiple issues
The package is damaged from all the sides. The gadget is physically damaged and is making unusual sounds.
Bot Prompt: Please upload a file addressing all the issues you are facing with the gadget.
Input given in the builder:
GC widget's output:
After the user adds the file and submits:
Best practices
- Clearly explain what type of files are needed and why. For instance, "Please upload your resume and cover letter in PDF."
- List all supported file types and any restrictions.
- Clearly specify maximum file size limits and offer tips for compressing files if needed.
- Inform users about how their files will be used, stored, and shared, ensuring compliance with data protection regulations.
A total of 500 blocks can be added in a flow. If you reach that count, you can use the jump block to create a new flow.