Team birthdays and work anniversaries on Slack
Every morning, celebrate today's birthdays and work anniversaries in your team channel.
How it works
- Read the Employees sheet (name, birthday, start date).
- Find birthdays and work anniversaries that fall today.
- Post one celebration message to Slack.
Diagram
Code
JavaScript used in the Code step — already included in the template below.
// Employees sheet columns: name | birthday (YYYY-MM-DD) | start_date (YYYY-MM-DD) | department
// Finds today's birthdays and work anniversaries and builds one Slack message.
const now = new Date();
const md = (d) => `${d.getMonth() + 1}-${d.getDate()}`;
const today = md(now);
const lines = [];
for (const { json: e } of $input.all()) {
if (e.birthday && md(new Date(e.birthday)) === today) {
lines.push(`🎂 Happy birthday, ${e.name}!`);
}
if (e.start_date) {
const start = new Date(e.start_date);
const years = now.getFullYear() - start.getFullYear();
if (years > 0 && md(start) === today) {
lines.push(`🎉 ${e.name} has been with us ${years} year${years > 1 ? "s" : ""} today. Thank you!`);
}
}
}
if (!lines.length) return [];
return [{ json: { message: lines.join("\n") } }];Build it
Pick your tool — same automation, step by step.
Copy and paste straight into an n8n canvas (Ctrl+V), or download and use Import from File. Then connect your own credentials and replace every YOUR_… placeholder.
Show code (139 lines)
{
"name": "Team birthdays and work anniversaries on Slack (Flowngn)",
"nodes": [
{
"parameters": {
"content": "## Team birthdays and work anniversaries on Slack\nEvery morning, celebrate today's birthdays and work anniversaries in your team channel.\n\n**Setup**\n1. Open each node and connect your own credentials.\n2. Replace every YOUR_… placeholder.\n3. Test once, then activate.\n\nFree template from Flowngn",
"height": 260,
"width": 340
},
"id": "3da33d1f-ca34-490c-ab07-dfbd5de24b43",
"name": "Setup notes",
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
-420,
-60
]
},
{
"parameters": {
"rule": {
"interval": [
{
"triggerAtHour": 9
}
]
}
},
"id": "3da33d1f-ca34-490c-ab07-dfbd5de24b43",
"name": "Every day 9:00",
"type": "n8n-nodes-base.scheduleTrigger",
"typeVersion": 1.2,
"position": [
0,
0
]
},
{
"parameters": {
"operation": "read",
"documentId": {
"__rl": true,
"value": "YOUR_SPREADSHEET_ID",
"mode": "id"
},
"sheetName": {
"__rl": true,
"value": "Employees",
"mode": "name"
},
"options": {}
},
"id": "3da33d1f-ca34-490c-ab07-dfbd5de24b43",
"name": "Read employees",
"type": "n8n-nodes-base.googleSheets",
"typeVersion": 4.5,
"position": [
300,
0
]
},
{
"parameters": {
"jsCode": "// Employees sheet columns: name | birthday (YYYY-MM-DD) | start_date (YYYY-MM-DD) | department\n// Finds today's birthdays and work anniversaries and builds one Slack message.\nconst now = new Date();\nconst md = (d) => `${d.getMonth() + 1}-${d.getDate()}`;\nconst today = md(now);\n\nconst lines = [];\nfor (const { json: e } of $input.all()) {\n if (e.birthday && md(new Date(e.birthday)) === today) {\n lines.push(`🎂 Happy birthday, ${e.name}!`);\n }\n if (e.start_date) {\n const start = new Date(e.start_date);\n const years = now.getFullYear() - start.getFullYear();\n if (years > 0 && md(start) === today) {\n lines.push(`🎉 ${e.name} has been with us ${years} year${years > 1 ? \"s\" : \"\"} today. Thank you!`);\n }\n }\n}\n\nif (!lines.length) return [];\nreturn [{ json: { message: lines.join(\"\\n\") } }];"
},
"id": "3da33d1f-ca34-490c-ab07-dfbd5de24b43",
"name": "Find today's celebrations",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
600,
0
]
},
{
"parameters": {
"select": "channel",
"channelId": {
"__rl": true,
"value": "#general",
"mode": "name"
},
"text": "={{ $json.message }}",
"otherOptions": {}
},
"id": "3da33d1f-ca34-490c-ab07-dfbd5de24b43",
"name": "Post to Slack",
"type": "n8n-nodes-base.slack",
"typeVersion": 2.2,
"position": [
900,
0
]
}
],
"connections": {
"Every day 9:00": {
"main": [
[
{
"node": "Read employees",
"type": "main",
"index": 0
}
]
]
},
"Read employees": {
"main": [
[
{
"node": "Find today's celebrations",
"type": "main",
"index": 0
}
]
]
},
"Find today's celebrations": {
"main": [
[
{
"node": "Post to Slack",
"type": "main",
"index": 0
}
]
]
}
},
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"meta": {
"templateCredsSetupCompleted": false
},
"tags": []
}In Make, create a new scenario and add these modules in order:
- Schedule the scenario: Every day 9:00
- Google Sheets › Search Rows
- Tools › Set variable / Iterator + Array aggregator (same logic as the Code step)
- Slack › Create a Message
- Every module run uses Make operations — the free plan includes a monthly quota.
- Make's built-in functions (map, sum, formatDate…) can replace most Code steps; for complex logic use a code module.
- Module and step names can differ slightly as Make and Zapier update their apps.
In Zapier, create a new Zap and add these steps in order:
- Schedule by Zapier — Every day 9:00
- Google Sheets — Lookup Spreadsheet Rows (or Code by Zapier)
- Code by Zapier — Run JavaScript (paste the code from the Code section)
- Slack — Send Channel Message
- Zaps with more than two steps need a paid Zapier plan.
- Webhooks, Filters/Paths and Code by Zapier are premium features on some Zapier plans.
- Code by Zapier runs JavaScript: reuse the code shown above, reading inputs from inputData instead of $json.
- Module and step names can differ slightly as Make and Zapier update their apps.
Tips
- Ask people before adding their birthday; some prefer not to share it.
Related flows
New hire welcome kit: email, first-day invite and team intro
Add a new hire to a sheet and they get a welcome email, a first-day calendar invite, and a hello from the team on Slack.
Staff check-in and check-out with a Telegram bot
Staff send "in" or "out" (or دخول / خروج) to a Telegram bot, and every check-in lands in an attendance sheet.
Instant alert when a Stripe payment fails
Know about failed payments right away and log them for follow-up.