Send File Attachment - CodelessBot

What Does This Plugin Do?

This plugin allows you send a file attachment to your user! (Chatfuel doesn’t have a send attachment feature)

Level of Difficulty: Easy

Compatibility: Chatfuel

Plugin Request URL
  • Chatfuel:{{cbot_accesskey}}&secretkey={{cbot_secretkey}}

Example Use Cases

Send Lead Magnets

Send users a helpful PDF or cheatsheet to encourage them to subscribe to your bot!

Send E-Book

Looking to promote a book? Send a sample chapter to provide users with a sneak peek!


Send Worksheet

Send a fill-in-the-blank worksheet after a user registers for a webinar!

How-To Setup the Plugin

Follow the 3 Simple Steps...or Login to CodelessBot to access the Plugin Wizard!

Step 1. Download & Install the Quick-Start Plugin Template

Login to CodelessBot, navigate to Templates on the sidebar and download the Quick-Start Template. Follow the prompt to install the Template. Next, you'll need to create a copy of the template for this specific plugin. See and follow the instructions below.

(If you've already install the Quick Start Template and created a copy of the plugin template - skip this step!

Chatfuel Instructions

a. From your Chatfuel dashboard, open the new bot called "JSON API Tutorial & CodelessBot Template" 

b. Find the group containing the name of this plugin.

c. Click on the arrow next to the plugin name to clone this group and blocks from the template into your own Chatfuel Bot.

d. Navigate back to the Chatfuel Dashboard

e. Open your Bot and find the new plugin group that you just cloned. 

f. Open the new Plugin block and enter in your CodelessBot access key and secret key.

Tip: Rename the plugin block to something more meaningful. For more details, refer to the Getting Started Guide.

Step 2. Send information to CodelessBot

To quickly do this, use the Plugin Wizard to answer a few questions. It'll then generate the code with the information below for you to copy and paste into your bot.


The URL of your file attachment.

Chatfuel Instructions
  1. In this plugin block, scroll down to the "JSON API" card
  2. Copy and paste the code from the Plugin Wizard into the textbox. (Or you can enter the correct value by referring to the descriptions above.)

Tip: Make sure the "Send as" is set to JSON. Not URL encoded or Full JSON Profile.

3. CodelessBot will send users the file attachment

Chatfuel Instructions

That’s it! You’re done! Here’s what the end result can look like:

Users just need to tap on this to download the file attachment.

More Information


1. Is there a maximum size limit for the file attachment?

The maximum file size is 25MB. This is a rule implemented by Facebook.

2. Where should I host my files?

You can host your file attachment using:

  • Dropbox (free & easy to setup)
  • Google Drive (free & also easy to setup)
  • Amazon S3 (slightly more difficult to setup)
  • Or upload it to your website

Enhance Your Bot with CodelessBot

CodelessBot plans start from $18/month