• Townie
    AI
  • Blog
  • Docs
  • Pricing
Log inSign up
stevekrouse

stevekrouse

attio-slack-summaries

Get debounced summaries of updates from Attio in Slack
Public
Like
attio-slack-summaries
Home
Code
10
attio
3
README.md
C
alert.ts
auth.ts
openai.ts
scratch.ts
setup.ts
slack.ts
sqlite.ts
H
webhook.ts
Branches
1
Pull requests
Remixes
2
History
Environment variables
2
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
README.md
Code
/
README.md
Search
8/14/2025
Viewing readonly version of main branch: v325
View latest version
README.md

Attio Slack Summaries

This repository creates an intelligent Slack notification system for Attio CRM events. It receives webhooks from Attio, stores them in a SQLite database, and periodically sends AI-generated summaries of recent activity to Slack. The system uses OpenAI to transform raw webhook data into human-readable summaries, helping teams stay informed about CRM activity without being overwhelmed by individual notifications.

Files

Core Components

  • webhook.ts - HTTP endpoint that receives webhooks from Attio
  • alert.ts - Cron job that processes recent events and sends Slack summaries
  • slack.ts - Utility to send messages to Slack via webhook
  • sqlite.ts - Database operations for storing and retrieving Attio events
  • auth.ts - Webhook signature verification middleware
  • openai.ts - AI-powered event summarization using OpenAI
  • setup.ts - One-time setup script to initialize database and Attio webhook

Attio Integration

  • attio/webhook.ts - Attio webhook management and secret handling
  • attio/webhook-payload-types.ts - Complete TypeScript types for all Attio webhook events
  • attio/hydrate.ts - Converts raw webhook events into human-readable descriptions

Development

  • scratch.ts - Development scratchpad for testing functions

Set up

  1. Remix this val
  2. Get a Slack webhook & set it as SLACK_WEBHOOK_URL in this val's Environment variables in the left sidebar
  3. Get an Attio Access Token (with all read & write permissions) & set it as ATTIO_API_KEY in this val's Environment variables in the left sidebar
  4. Go to setup.ts and click run to set up the events database and Attio webhook
  5. Go trigger some Attio events and see the message in Slack!
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
ExploreDocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareersBrandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.