Slack Integration for Federated GraphQL | Cosmo by WunderGraph - WunderGraph
Get federated graph notifications directly in Slack
Authorize the WunderGraph Cosmo app, select a channel, choose which events to receive, and you're done. No middleware, no custom bots, no code. Setup takes under 2 minutes.
The problem
Teams live in Slack. Schema alerts don't.
Engineers check Slack, not dashboards. Getting federation events there without building custom infrastructure has been harder than it should be.
Building a Slack bot takes significant engineering time
A custom bot needs OAuth setup, message formatting, hosting, and ongoing maintenance. For something as common as schema change notifications, that time is wasted.
Routing webhooks through middleware adds complexity
Sending webhooks to a middleware layer that reformats and posts to Slack introduces another failure point. If the middleware goes down, notifications stop.
Teams miss changes because they live in Slack
Engineers check Slack, not dashboards. If schema change alerts land anywhere else, they get ignored until something breaks.
Our solution
Native Slack integration with zero code
Cosmo connects directly to the Slack API using official OAuth 2.0. Authorize once, select a channel, subscribe to events. Notifications land in Slack the moment a schema change occurs.
From click to notifications in 2 minutes
- In Cosmo Studio, go to the Slack integrations section and click "Integrate".
- You are redirected to Slack to authorize the WunderGraph Cosmo app.
- Select the channel where you want notifications to appear.
- After authorization, name the integration and choose which events to subscribe to.
- Cosmo posts formatted notifications to your channel via the Slack API when subscribed events occur.
- Add more integrations to route different events to different channels or teams.
Slack Integration
Before & After
| Before Cosmo | With Cosmo |
|---|---|
| Building a custom Slack bot for schema notifications | Native one-click integration, no code required |
| Routing webhooks through middleware to Slack | Direct Slack API connection, no intermediary |
| Maintaining bot infrastructure | Zero maintenance overhead |
| Separate Slack setup per team | Multiple named integrations per organization, each independently configured |
Cosmo vs. building your own
| Cosmo | Webhook + middleware | Custom bot | |
|---|---|---|---|
| Setup time | 2 minutes | 30+ minutes | Hours/days |
| Code required | None | Some | Significant |
| Maintenance | None | Medium | High |
| Official OAuth | Yes | No | Yes |
| GraphQL-aware messages | Yes | Requires custom formatting | Requires implementation |
How Cosmo Slack integration works
Authorize
Click "Integrate" in Cosmo Studio. Slack redirects you through the official OAuth 2.0 flow. Authorize the WunderGraph Cosmo app and select a channel.
Configure
Name the integration for easy identification. Select which event types it should receive. A single integration can cover all events, or you can narrow it to specific ones.
Receive
When a subscribed event occurs, Cosmo posts a formatted notification directly to your chosen channel via the Slack API. No middleware, no relay.
Scale
Add more integrations for different teams or channels. Each integration is independently named, configured, and subscribed. Different teams receive the events they care about.
What's included
Everything in the Slack integration
OAuth, channel selection, event filtering, and multi-channel routing. Nothing to install or maintain.
Official OAuth 2.0
Authorization goes through Slack's official OAuth flow. The WunderGraph Cosmo app requests only the permissions needed to post to the channel you select.
Any channel, any workspace
Public or private channels. Standard Slack workspaces or Enterprise Grid. Any channel you can authorize the app to post to.
Multiple named integrations
Each integration has its own name, channel, and event subscription. Route different events to different channels. Give each one a descriptive name so teams know what to expect.
Zero maintenance
There is no bot to host, no middleware to keep running, and no credentials to rotate. Cosmo manages the Slack API connection.
Get schema changes in Slack in 2 minutes
Authorize the integration in Cosmo Studio. Notifications land in your channel the moment a schema event fires.
FAQ
Slack Integration on Cosmo
- Does the Slack integration use official Slack OAuth?
- What Slack permissions does the integration require?
- Can I send notifications to a private channel?
- Can I have multiple Slack integrations?
- What events can trigger Slack notifications?
- Do I need to write any code?
- Does this work with Slack Enterprise Grid?
Full setup guide in the Slack integration documentation.