Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Supabase 8 min read How-to mediumAdept

Slack Consolidate: a slackbot built with Python and Supabase

A Python Slack bot polls watched channels via conversations.history and reposts new messages to consolidated destination channels. Supabase Postgres tables hold the channel routing config and act as a dedup buffer. The slack_watcher table's primary key on (channel_id, ts, ts_ms) makes inserts fail for already-seen messages, so only new ones get forwarded. The guide covers the Slack app manifest and OAuth scopes, the table schemas, env setup, and the full polling loop, which uses a 1.4s delay to stay under Slack Tier 3 rate limits and reloads the channel list hourly.

Assumes: Python basicsSlack API appsbasic SQL

Related posts

  • Agentic analytics in Slack with ClickHouse, MCP, and PydanticAI

    ClickHouse mediumAdept

    A Slack bot built with PydanticAI and the Anthropic API answers natural-language analytics questions by querying ClickHouse through the mcp-clickhouse MCP server. The walkthrough covers Slack app setup in Socket Mode (scopes, events, tokens), launching the MCP server on demand via MCPServerStdio (simpler to manage, at some latency cost), configuring the Agent with a system prompt, and handling DMs and mentions with thread history passed as context. Logs show the LLM listing tools, databases and tables before issuing SQL against the public sql.clickhouse.com playground.

  • Building Slack notifications to monitor pg_dump and restore workflows

    Neon mediumAdept

    A nightly GitHub Actions workflow that pg_dumps an RDS production Postgres database and restores it to a Neon dev branch can be extended to post success and failure alerts to a Slack channel through an incoming webhook. Separate jobs capture start and end times and query the database name and size via psql. These values pass through job outputs and env vars into Node scripts that format Slack Block Kit messages, gated by success() and failure() conditions. Posting to Slack lets the whole team see job status without granting everyone access to the GitHub repo.

  • Exploring Support Tooling at Supabase: A Dive into SLA Buddy

    Supabase mediumAdept

    SLA Buddy is Supabase's internal support-ticket SLA enforcer, built almost entirely in Postgres with Edge Functions. Edge Functions scan Slack channels into a slack_watcher table; a PL/pgSQL trigger enqueues four escalation tasks per ticket with due times based on channel and plan. A periodic function guarded by an advisory lock checks for replies and posts Slack escalations, and Google Calendar shifts are pulled via the http extension and Vault secrets. Escalation runs from non-embedded support to the head of success over 10–50 minutes for Enterprise and 1–12 hours for Team, and engineers can snooze it 30 minutes by mentioning the bot.

  • Flutter Tutorial: building a Flutter chat app

    Supabase mediumAdept

    A real-time single-room chat app can be built with Flutter on the frontend and Supabase as the entire backend, using the supabase_flutter SDK instead of a custom API. The walkthrough creates profiles and messages tables in Postgres with username validation constraints, adds the messages table to the supabase_realtime publication for live updates, initializes the Supabase client, routes users via a splash page based on auth session, and defines Dart data models plus a registration page. Authentication and row-level security are deferred to a second part.

  • Slack Overflow: How We Scaled Slack to Support 1000s of Developers

    Railway mediumAdept

    Railway built a two-way bridge between Slack Connect channels and its in-house Help Station support tool, auto-creating channels when customers hit growth thresholds. Early assumptions failed: external Slack Connect users can't invoke the host's slash commands, a "!support" workaround went unused, and Socket Mode silently stopped delivering messages after deploys. The fix was to thread every message by default, classify intent as sales or support with GPT-4o-mini, let employees impersonate so replies come from real people, switch Bolt to HTTP routes, and run message processing through Temporal workflows with idempotent activities so crashes don't lose messages. Railway credits Slack with 50x better engagement and 8x faster response times than email, and is opening Slack Connect to all Pro teams.

The quest for software engineering knowledge.

Look:
Layout: