---
title: "Real-Time Notifications Tutorials"
source: https://docs.autohand.ai/tutorials/automations/real-time-notifications
---

# Real-Time Notifications

In this tutorial you will configure Autohand Code to send Slack notifications while an agent runs. You will start with shell hooks and then switch to SDK events for richer formatting.

## What you will build

-   A shell hook that posts to Slack when a session ends.
-   An SDK event handler that streams tool progress to a channel.
-   A filter that suppresses notifications for sensitive sessions.

## Prerequisites

-   Autohand Code installed and authenticated.
-   A Slack incoming webhook URL stored in `SLACK_WEBHOOK`.
-   A project directory with a `.autohand/config.json` file.

## Step 1: add a session-end hook

Run a session and verify the message arrives in Slack.

## Step 2: stream tool progress

Create a small TypeScript worker that streams `tool_start` and `tool_end` events to Slack.

## Step 3: suppress notifications

Use an environment variable to disable notifications for sensitive work.

## Next steps

Route different events to different channels, or build a CI reviewer bot in the next tutorial.