Sample Task Prompt
---
task: TASK-2.6
title: Slack Notification Integration
phase: Phase 2 — Core Product
size: L
depends_on: [TASK-2.4, TASK-1.5]
created: 2026-03-18
---
# TASK-2.6: Slack Notification Integration
## Context
Task assignment is the core collaboration action in Taskflow. Right now, when a Member assigns a task to someone, the assignee has no idea — they have to check the app manually. This is the friction that our Slack integration removes.
TASK-2.4 (task detail modal) is complete, so the assignment action exists and `logTaskEvent()` is being called correctly on assignment. TASK-1.5 established the `logTaskEvent()` utility. We now need to hook into that event and fire a Slack DM to the assignee when a task is assigned to them.
Slack tokens are stored in `workspace_settings.slack_bot_token` — AES-256-GCM encrypted at rest (see `lib/crypto.ts`). Never log or expose the decrypted token.
**Current state:** Assignment works, events are logged, no Slack notifications exist.
**Why now:** This is the last blocker before Phase 3. TASK-2.7 (email digest) also depends on understanding how we handle async notification delivery.
**Constraints:** Do not modify `logTaskEvent()` itself — hook into Inngest instead. Keep the Slack API call isolated in `lib/notifications/slack.ts`.
---
## Goal
When a task is assigned to a user who has Slack connected, that user receives a Slack DM within 30 seconds of the assignment.
---
## Steps
### Step 1 — Inngest event definition
In `lib/inngest/events.ts`, add a new event type:when to use it
Community prompt sourced from the open-source GitHub repo lifestoryco/book-of-claude (MIT). A "Sample Task Prompt" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.
tags
productivitycommunitydeveloper
source
lifestoryco/book-of-claude · MIT
more in Productivity
Productivity✓ tested
Summarize a doc into decisions & actions
chief of staff who extracts what to DO, not just what was said
Productivity✓ tested
Draft a reply to a hard email
calm, direct communicator who de-escalates without caving
Productivity✓ tested
Turn a brain-dump into a weekly plan
planning coach who protects your focus, not just your calendar