Send a Box folder listing to Slack on request

BotsArtificial IntelligenceSales EnablementDocument/FileMarketing

What it does

When someone runs the Box list files command in Slack, this automation finds the named folder and replies with up to five files or folders inside it. An empty folder gets a short reply instead of a blank list.

Who it's for

Operations teams who need a Box folder's contents in Slack without opening Box.

How teams use this

Check a shared folder before a meeting

List the folder from Slack just before a meeting so the team can see the latest files without opening Box. Nothing else has to change for the team to use it.

Let sales see a deal folder

Invite the bot to a deal channel so anyone can list the Box folder tied to that account from the thread. The flow stays the same and only the channel changes.

Help support find a customer folder

Add the command to the support channel so agents can list a customer's Box folder while they handle a request. The flow stays the same and only the channel changes.

Limit the listing to files only

Add a filter so the Slack reply includes files and skips subfolders when the channel only needs documents. That is the only extra piece this setup needs.

How it works

  1. Ask for a folder in Slack. Type the Box list files command with the folder name in a Slack channel or direct message.
  2. Find the folder in Box. Search Box for the folder named in the command so the listing starts from the right place.
  3. List what is inside. List the files and folders in that Box folder, and keep the reply to the first five items.
  4. Reply with the listing. Post the items in the same Slack conversation, or say the folder is empty when Box returns nothing.