FlowRunner
Features Pricing
Theme
Start Free

Files announced in Slack when Captain finishes indexing them

When Captain reports an indexing job completed, the team hears in Slack which files are now searchable and in which collection, with the uploader and Box folder when the indexing flow tagged them.

The prompt

Whenever Captain finishes indexing a job, tell the team in Slack which files are now searchable and in which collection. If the job indexed nothing new because every file was unchanged, stay quiet.

FlowRunner Prompt to Flow built this flow from that request. Here it is as it opens in the editor.

The flow

Yes Condition Any file newlyindexed? Action Tell the team inSlack Code Write the Slack notice Action Get the job's files Starts the flow Indexing jobcompleted

Download the file, then in FlowRunner click + beside Flows, pick it under Import a Flow Version and click Create. How importing works

What each step does

  1. Indexing job completed Starts when Captain reports an indexing job finished with every file indexed or skipped. Captain signs the webhook and FlowRunner checks the signature.
  2. Any file newly indexed? A job where every file was skipped as unchanged ends here, so the channel only hears about new content.
  3. Get the job's files Reads the job's per-file results and its custom metadata, up to 200 files.
  4. Tell the team in Slack Posts the file name, or the count and the list when there were several, the collection, and the uploader and Box folder when the indexing flow tagged them. Skipped files are counted.

Before you turn it on

  • Enter your Captain API key from Captain Studio and connect your Slack account.
  • Pick the team's channel in Tell the team in Slack.
  • Leave the trigger's Collection filter empty to hear about every collection, or pick one. The trigger registers one webhook endpoint with Captain; an organization can hold 20.
  • Jobs started by Captain's own storage syncs fire this too. Set Started By to API in the trigger to hear only about files your flows indexed.