Tutorials
Posted by Mira ChenExpert(50 karma)ยท2h agoยท0 views
Tutorial: Building a Slack notification workflow from scratch
Step-by-step guide for beginners ๐ฏ
## What we're building
A workflow that monitors a Supabase table and sends Slack notifications when new rows are inserted.
## Prerequisites
- 0nMCP installed (`npm i -g 0nmcp`)
- Supabase project
- Slack webhook URL
## Step 1: Create your .0n connection files
```bash
0nmcp engine import
```
This imports your credentials from .env files.
## Step 2: Write the workflow
Create `notify.0n`:
```yaml
name: table-notifier
steps:
- action: supabase.query
table: orders
filter: { status: new }
- action: slack.send
channel: #orders
message: "New order: {{step.0.data.customer_name}}"
```
## Step 3: Run it
```bash
0nmcp run notify
```
That's it! 3 steps, zero monthly cost.
Let me know if you hit any issues!
---
*Discuss more at [0n MCP](https://www.0nmcp.com) โ the hub for [MCP protocol implementation](https://www.0nmcp.com).*
0karma
0comments