Templates / Scheduled jobs

Daily Slack reminder on weekdays at 9am

Post a stand-up or check-in reminder to Slack every weekday at 9am in your timezone — with a different prompt each day. A cron job without a server.

The smallest useful scheduled job: a weekday morning message. Schedules run in the timezone you choose, so 9am stays 9am through daylight-saving changes.

Build it with Wisp

Type this into Wisp, or press Build this — it writes the code below, deploys it and gives you a URL:

Every weekday at 9am Berlin time, post a stand-up reminder to Slack via SLACK_WEBHOOK_URL, with a different question each day of the week.

The code

*standup-reminder · schedule `0 9 * 1-5`**

import { config } from 'wisp';

const QUESTIONS = {
  1: 'What’s the one thing you want to finish this week?',
  2: 'Anything blocking you today?',
  3: 'Halfway there — what’s at risk for Friday?',
  4: 'Who could use a hand today?',
  5: 'What did you ship this week? :tada:',
};

export async function handler() {
  const day = new Date().toLocaleDateString('en-US', { weekday: 'short', timeZone: 'Europe/Berlin' });
  const n = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'].indexOf(day);
  const text = `:sunrise: Stand-up time! ${QUESTIONS[n] ?? ''}`;
  await fetch(config.require('SLACK_WEBHOOK_URL'), {
    method: 'POST',
    headers: { 'content-type': 'application/json' },
    body: JSON.stringify({ text }),
  });
  return { posted: text };
}

Set it up

Add these in the project’s Variables & secrets (secrets are encrypted and never shown in logs):

Try it

Press Run to post the reminder now. Publish, and it runs on schedule from the next weekday.

How it works

Variations

Questions

Can I set the time in words? Yes — in the function’s Schedule settings, type “every weekday at 9am” and Wisp writes the cron expression.

Build it with Wisp — free trial

Related