Log Slack commands in Google Sheets

BotsDocument/File

What it does

When someone runs the Google Sheets add row command in Slack, this automation captures the command parameters. It writes them to Google Sheets as a new row so the team has a complete log of all requests.

Who it's for

Operations teams who need to track Slack commands in a shared spreadsheet without manual entry.

How teams use this

Log all Slack command requests

Record every Google Sheets add row command in a shared spreadsheet so the team has a complete audit trail. No manual logging is needed and the data stays synchronized.

Track requests across multiple channels

Invite the bot to different Slack channels and all commands from each channel flow into the same Google Sheet. The team sees all requests in one place regardless of where they were issued.

Add timestamps and user names to rows

Extend the automation to include the Slack user name and timestamp when each row is added. This requires capturing those fields from the Slack command context and mapping them to extra columns.

Filter rows by command type

Set up the automation to only log commands that match certain criteria, such as requests from specific channels or with particular keywords. This keeps the spreadsheet focused on the data the team needs most.

How it works

  1. Run the add row command. Type the Google Sheets add row command in a Slack channel or direct message where the bot is present, with the row data you want to record.
  2. Write the command to the spreadsheet. Add a new row in Google Sheets with the command parameters so the spreadsheet captures each request in real time.