Slack
PerSQL gives each Slack channel its own SQLite database — a shared scratch your bot or agent can read and write right from the conversation.
Add the integration
Section titled “Add the integration”-
Go to slack.persql.com/install/start, authorize the app for your workspace, and connect it to your PerSQL workspace.
-
Each channel maps to a top-level database named
slack-<channelId>in your workspace, created the first time the channel is used.
Query from the bot
Section titled “Query from the bot”Point a bot or agent at the Slack MCP:
https://slack.persql.com/mcpAuthenticate with a PerSQL bearer token. channel_recipe returns the snippet
that creates and queries a per-channel database; channel_list shows the
channels already wired up. From the bot:
import { PerSQL } from "@persql/sdk";
const db = new PerSQL({ token: process.env.PERSQL_TOKEN }) .database(`<namespace>/slack-${channelId}`);
await db.query("INSERT INTO notes (author, body) VALUES (?, ?)", [user, text]);