Log activity between 9am and 6pm

Recipe ToolsMarketingDeveloper Tool

What it does

Every 5 minutes, the clock triggers this automation to check if the current time falls between 9am and 6pm. It logs a message to the Job report only during business hours so activity is tracked by time of day.

Who it's for

Operations teams who need to monitor workflow activity during standard business hours.

How teams use this

Track business hours workflow runs

Monitor which automations execute during 9am to 6pm and log those events separately from after-hours runs. This helps the team understand peak activity times.

Filter reports by business hours only

Set up a separate Job report that includes only messages logged between 9am and 6pm. Add a filter condition to exclude after-hours entries from the main report.

Alert on unexpected after-hours activity

Extend this automation to send a notification when activity occurs outside 9am to 6pm. Check the time condition and route off-hours runs to a separate alert channel.

How it works

  1. Check the time every 5 minutes. The clock triggers this automation at 5-minute intervals throughout the day so business hours can be monitored continuously.
  2. Verify time is within business hours. Execute ruby code to check if the current time is between 9am and 6pm. If it is, the automation continues to log the activity.
  3. Log activity to the Job report. Record a message in the Job report showing that activity occurred during business hours so the team can track when workflows run.