Slack + Postgres MCP Answer Agent
Answer Slack channel questions by letting an Agent query Postgres through MCP, then post the answer back to Slack.
The full canvas, before you import it
Click any node to see its config.
Click a node to select it — same as the Heym editor; the panel shows its settings.
6 nodes · Free & source-available
Slack + Postgres MCP Answer Agent
Turn a Slack channel into a database-aware assistant. A Slack Trigger receives the question, an Agent uses a configured Postgres MCP server to inspect approved tables and produce a concise answer, then a Slack node posts the response back to the channel.
What this workflow does
- Slack Trigger listens for new channel messages
- AnswerFromPostgres (Agent) receives the Slack text and has a Postgres MCP connection available as tools
- The Agent queries Postgres only through MCP, summarizes the result, and avoids inventing missing data
- SendChannelAnswer posts the final answer back to the same Slack channel
- AnswerLog returns the Slack send status for debugging
Use cases
- Internal support questions backed by product or CRM tables
- Ops questions such as "Which invoices are overdue?"
- Lightweight BI answers inside Slack without giving everyone database credentials
MCP and Agent setup
In the Agent node, replace the placeholder Postgres MCP connection with your real database URL. The sample URL follows Heym's .env.example defaults: postgres, postgres, localhost:6543, database heym. For production, use a read-only database user and keep secrets in your own Heym instance.
The Agent prompt is written as a Text-to-SQL workflow: understand the Slack question, generate a read-only SELECT, execute it with Postgres MCP tools, then show the SQL and results clearly.
How to import this template
- 1Click Import → Copy JSON on this page.
- 2Open your Heym and navigate to a workflow canvas.
- 3PressCmd+V/Ctrl+V— nodes appear instantly.
- 4Add your API keys in the node config panels and click Run.
Discover more automations
- IntegrationJina Web FetcherFetch clean, LLM-ready text from any URL using the Jina Reader API.
- IntegrationOpen-Meteo Weather SnapshotPull live weather (no API key) from Open-Meteo for any city coordinates — great for travel bots and dashboards.
- IntegrationZenQuotes Random QuoteFetch a random inspirational quote as JSON from the free ZenQuotes API — no API key, ideal for bots and UI demos.
- IntegrationDiscord Incoming WebhookPost a message to a Discord channel with a single HTTP node — structured text input and webhook JSON body.
- IntegrationGoogle Sheets AI EnricherRead new rows from Google Sheets, classify or enrich them with an LLM, and write the results back automatically.
- IntegrationRealtime WebSocket Alert RelayListen to an external WebSocket feed, audit critical events, and forward them to another realtime channel.
- IntegrationDrive Share Link MailerFetch a remote file into Drive, return the download link immediately, and email the same link asynchronously.
- IntegrationRabbitMQ Delayed PublisherPublish a release message to RabbitMQ with an optional delivery delay for downstream consumers.