Connecting Slack to Lovable takes about 5 minutes using the native Slack shared connector. Go to Settings → Connectors → Shared connectors, click Slack, and authorize via OAuth. Lovable then manages all token handling automatically — no API keys to paste, no token refresh logic to write. Your AI agent understands Slack capabilities immediately and can generate message-sending, channel-reading, and digest features on demand.
Send Slack messages and read channels directly from your Lovable app
Slack is one of Lovable's 17 shared connectors and one of only a handful that use the gateway architecture. This means Lovable holds the OAuth tokens on your behalf — they are never written into your project's code, never stored in Cloud Secrets, and never visible in your chat history. Token refresh happens automatically. You authorize once, and the connection stays live.
The gateway architecture changes what the Lovable AI agent understands. Once the Slack connector is active, the AI knows exactly which Slack API capabilities are available, what data structures messages and channels return, and which patterns work best inside a Lovable project. You describe what you want in plain English — 'notify the #alerts channel when a new user signs up' — and the AI generates correct, working code without you needing to explain OAuth scopes, rate limits, or API endpoints.
The rate limit for the Slack connector is 1,000 requests per minute per connector per project, which is well above what most apps need. Common use cases include sending automated alerts and notifications, posting digest summaries of app activity, forwarding form submissions to a Slack channel, and building lightweight internal dashboards that push updates to your team without anyone needing to check the app itself.
Integration method
Slack connects through Lovable's gateway architecture — OAuth tokens are managed automatically by the platform, so credentials never appear in your project code and token refresh happens behind the scenes.
Prerequisites
- A Lovable account with an active workspace (free plan works)
- A Slack workspace where you are an admin or have permission to install apps
- A deployed or in-progress Lovable project to add Slack functionality to
- Basic familiarity with Lovable's chat interface for prompting
Step-by-step guide
Open Shared Connectors in Settings
Open Shared Connectors in Settings
Start by navigating to your workspace settings. In the Lovable editor, look for the Settings option — this is typically accessible from the left sidebar or the top-right area of the interface depending on your screen layout. Once inside Settings, look for the Connectors section in the left navigation. Click on it, then select Shared connectors from the submenu or tab options that appear. Shared connectors are workspace-level, meaning you configure them once and they become available to every project in your workspace. You will see a list of all 17 available connectors. Scroll through the list until you find Slack — it appears in the Productivity section. The connector card shows the Slack logo, a brief description, and its current connection status. If this is your first time, the status will show as 'Not connected'. Click the Slack connector card to open its configuration panel. You do not need to visit the Slack developer portal, create an app, or generate API keys. The entire OAuth flow is handled through Lovable's interface, and the credentials are managed at the platform level — not the project level.
Expected result: You are on the Slack connector configuration page inside Settings → Connectors → Shared connectors, with a Connect button visible.
Authorize Slack via OAuth
Authorize Slack via OAuth
Click the Connect button on the Slack connector page. This opens a Slack OAuth authorization window — the standard purple Slack screen asking you to confirm which workspace you want to connect and what permissions Lovable is requesting. If you are already logged into Slack in your browser, your workspace name will be pre-filled. If you have access to multiple Slack workspaces, use the dropdown at the top of the OAuth screen to select the correct one. Review the permissions listed. Lovable's Slack connector requests scopes needed for messaging and channel reading: sending messages to channels, reading channel history, accessing the list of public channels, and posting as the connector rather than as your personal account. These are standard scopes for any Slack integration. Click Allow to complete the authorization. You are returned to the Lovable Settings page automatically. The Slack connector card now shows a green Connected status and the name of the Slack workspace you authorized. This OAuth token is stored and managed entirely by Lovable's gateway infrastructure — it is not stored in your project's Cloud Secrets, is not visible in your code, and will refresh automatically before it expires. You will not need to re-authorize unless you revoke the connection from the Slack side.
Expected result: The Slack connector shows a green 'Connected' status and displays your Slack workspace name in Settings → Connectors → Shared connectors.
Tell Lovable what Slack feature you want to build
Tell Lovable what Slack feature you want to build
Return to your project in the Lovable editor. Now that the Slack connector is active, Lovable's AI agent understands your Slack workspace's capabilities and can generate correct integration code from a plain-English description. Open the chat prompt at the bottom-left of the editor and describe what you want. You do not need to explain how Slack works, list API endpoints, or specify authentication methods. The connector gives the AI enough context to handle all of that. Focus your prompt on the outcome you want: which event should trigger the message, which channel it should go to, and what the message should contain. For example, if you want to notify your team whenever a new user signs up, describe exactly that. If you want a daily digest button that posts a summary of that day's signups to a #reports channel, describe that. The AI will generate an Edge Function to handle the Slack API call server-side (routed through the gateway), update your frontend to trigger it on the right event, and wire up the connection without exposing any credentials. After the AI finishes generating, review the changes in the code panel to confirm the implementation matches your expectations before testing.
The Slack connector is now connected. Add a feature that sends a Slack message to the #general channel whenever a new user registers in the app. The message should include the user's email address and the timestamp of when they signed up. Use the Slack shared connector.
Paste this in Lovable chat
Expected result: Lovable generates an Edge Function and updates the relevant frontend code. The chat confirms the Slack notification feature has been added and shows which files were modified.
Test the Slack integration in your deployed app
Test the Slack integration in your deployed app
Slack integration via shared connector only works in your deployed application — it does not run inside Lovable's preview iframe. This is expected behavior and applies to all shared connectors that make authenticated external API calls. To test, click the Publish button (the icon in the top-right of the Lovable editor) and deploy your current changes to your live app URL. Once deployed, open your live app URL in a new browser tab. Perform the action that should trigger the Slack message — in the example from step 3, this means completing the user registration flow. After the action completes, switch to your Slack workspace and check the target channel. The message should appear within a few seconds. If the message does not appear, go back to the Lovable editor and check Cloud → Logs (accessible via the Cloud tab, the '+' icon next to Preview). The logs show Edge Function execution in real time, including any error messages from the Slack API. Common first-run issues include targeting a channel name that does not exist in your workspace, or a channel the connector's Slack app has not been invited to. If you see a 'channel_not_found' error in the logs, verify the channel name in your prompt matches an existing Slack channel exactly.
My Slack message is not appearing in the channel after I test it in the deployed app. Check Cloud Logs and tell me what error is showing, then fix it.
Paste this in Lovable chat
Expected result: A Slack message appears in your specified channel within seconds of triggering the action in your deployed app. The message content matches what you described in your prompt.
Expand with more Slack features
Expand with more Slack features
Once the basic notification is working, you can ask Lovable to add more sophisticated Slack functionality. The gateway connector supports reading channel history — useful for building digest features that summarize recent activity — as well as listing channels, sending messages with rich Block Kit formatting, and posting to specific users via direct messages. For digest use cases, you can add a button in your app that triggers a summary of recent data from your Supabase database, formats it as a structured Slack message, and posts it to a designated channel. Ask Lovable to build this by describing the data you want summarized and the format you want the Slack message to take. The AI understands both your Supabase schema (if the Supabase connector is also active) and Slack's Block Kit layout system, so it can generate visually organized messages with sections, fields, and dividers rather than plain text walls. For complex integrations that need conditional routing — for example, sending critical errors to #engineering and general activity to #general — describe the routing logic in your prompt. RapidDev's team can also help you architect multi-channel notification systems if your requirements become more complex than a single prompt can address. The rate limit of 1,000 requests per minute means you can safely send a high volume of notifications without throttling for most app scales.
Add a 'Send Daily Digest' button to the admin dashboard. When clicked, it should query the last 24 hours of signups from the users table, format them as a Slack Block Kit message with a header, a count, and a bulleted list of emails, and post it to the #reports channel.
Paste this in Lovable chat
Expected result: New Slack features are added to the app. Digest messages appear in the correct channels with the formatted content you described. All messages route through the gateway without any credentials appearing in your project code.
Common use cases
Tell Lovable what Slack feature you want to build
Use Slack with Lovable to tell lovable what slack feature you want to build. This is one of the most common use cases when integrating Slack into your Lovable application.
The Slack connector is now connected. Add a feature that sends a Slack message to the #general channel whenever a new user registers in the app. The message should include the user's email address and the timestamp of when they signed up. Use the Slack shared connector.
Copy this prompt to try it in Lovable
Test the Slack integration in your deployed app
Take your Slack integration further by test the slack integration in your deployed app. This builds on the basic setup to create a more complete experience.
My Slack message is not appearing in the channel after I test it in the deployed app. Check Cloud Logs and tell me what error is showing, then fix it.
Copy this prompt to try it in Lovable
Expand with more Slack features
Prepare your Slack integration for production by expand with more slack features. Ensures your integration works reliably for real users.
Add a 'Send Daily Digest' button to the admin dashboard. When clicked, it should query the last 24 hours of signups from the users table, format them as a Slack Block Kit message with a header, a count, and a bulleted list of emails, and post it to the #reports channel.
Copy this prompt to try it in Lovable
Troubleshooting
Slack message sends successfully in Lovable's preview but not in the deployed app
Cause: This is actually the reverse of the expected behavior. The Slack connector does not run in the preview iframe at all — it only works in the deployed app. If the preview appears to work, it may be showing a mocked response. If the deployed app is not sending, check Cloud → Logs for Edge Function errors.
Solution: Always test Slack integration from your deployed app URL, not the Lovable preview. Open Cloud → Logs in the Cloud tab to see real-time Edge Function output. Look for error codes from the Slack API such as 'channel_not_found', 'not_in_channel', or 'token_revoked' and address them based on the specific error.
Slack shows 'channel_not_found' error in Cloud Logs
Cause: The channel name in your prompt or generated code does not match an existing channel in your Slack workspace, or the channel name was specified with a leading # in the API call when Slack expects just the channel name without it.
Solution: Check the exact channel name in your Slack workspace — channel names are case-sensitive and do not include the # symbol when passed to the Slack API. Return to the Lovable chat and clarify: 'The Slack channel name should be alerts not #alerts — update the Edge Function to use the correct format.' Then redeploy and test again.
Slack connector shows as Connected but the AI does not seem to know about it
Cause: The AI context updates when a connector is activated, but if you were already in a project chat when you connected Slack, the existing chat session may not reflect the new connector state.
Solution: Refresh the Lovable editor after connecting the Slack connector, then start a new message in the chat. Mention the Slack connector explicitly in your prompt — for example, 'Using the Slack shared connector that is now connected, add...' This ensures the AI includes the connector in its context for that request.
Best practices
- Use specific channel names in your prompts rather than asking Lovable to pick a channel — this avoids ambiguity and ensures messages land in the right place from the start.
- Invite the Lovable Slack app to private channels before trying to post to them — the connector can only access channels it has been explicitly added to in your Slack workspace.
- Add error handling to your Slack Edge Functions so a failed Slack notification does not block the main action in your app — describe this requirement in your prompt by saying 'if the Slack message fails, log the error but do not prevent the signup from completing.'
- Test with a non-critical channel like #test or #sandbox before pointing notifications at high-traffic channels such as #general, especially when setting up digest or batch notification features.
- Keep Slack messages concise and actionable — prompts that specify a character limit or a specific format (such as 'two lines maximum' or 'include a link to the user profile') produce cleaner messages than open-ended descriptions.
- Use Slack Block Kit formatting for digest messages and structured data rather than plain text — ask Lovable to 'format as a Slack Block Kit message with a header and bullet list' to get visually organized output.
- Remember the 1,000 requests per minute rate limit when designing high-frequency notification features — for apps expecting large traffic spikes, build in logic to batch notifications rather than sending one per event.
- Do not attempt to store or access the Slack OAuth token directly — the gateway architecture intentionally keeps it hidden from your code, and any attempt to extract it will break the integration.
Alternatives
Choose Teams if your organization already runs on Microsoft 365 — it requires manual Edge Function setup rather than a native connector, but integrates directly with your existing Microsoft infrastructure.
Choose Linear if your goal is project management automation rather than team messaging — Linear also uses the gateway architecture and lets you create issues, update statuses, and track cycles from your app.
Choose Notion as a personal MCP connector if you want to feed your PRDs and specs into Lovable's AI during building rather than send runtime notifications to your team.
Frequently asked questions
Do I need a Slack API key or Bot Token to use the Lovable Slack connector?
No. The Slack shared connector uses a gateway architecture where Lovable manages all OAuth tokens on your behalf. You authorize via the standard Slack OAuth screen in Settings → Connectors → Shared connectors, and after that the tokens are handled entirely by Lovable's infrastructure. You never need to create a Slack app, generate a Bot Token, or store any Slack credentials in your project.
Why does the Slack integration not work in Lovable's preview?
Shared connectors — including Slack — only function in your deployed application, not in the preview iframe inside the Lovable editor. This is by design: the gateway that manages your OAuth tokens operates at the deployed app level. To test Slack functionality, click Publish to deploy your app and test from your live URL. Check Cloud → Logs for any errors during testing.
Can I send Slack messages to private channels?
Yes, but the Lovable Slack app needs to be added to the private channel first. In your Slack workspace, open the private channel, click the channel name at the top to open its settings, go to Integrations → Add apps, and add the Lovable app. After that, you can target the channel by name in your Lovable prompts just like any public channel.
What is the rate limit for the Slack connector?
The Slack connector is capped at 1,000 requests per minute per connector per project. For most apps, this is far more than enough — even a busy app with 100 concurrent users triggering one notification each would use only a fraction of this limit. If you are building a high-volume notification system, ask Lovable to implement batching logic to group multiple events into a single Slack message.
Can I use the Slack connector to read messages or just send them?
The connector supports both sending and reading. You can send messages to channels, read channel history for digest and summary features, and list available channels. Reading is commonly used to generate AI-powered summaries of recent channel activity. Describe what you want to read and how you want to display or use that data in your Lovable prompt.
Can I connect multiple Slack workspaces to one Lovable project?
The shared connector supports one connected Slack workspace per Lovable workspace at a time. If you need to send messages to multiple Slack workspaces — for example, if you are building a multi-tenant app — this requires a more advanced setup using Edge Functions with the Slack API directly, storing per-tenant tokens in Supabase rather than relying on the single shared connector. For this pattern, start by describing your multi-tenant requirements to Lovable and let it scaffold the Edge Function approach.
Talk to an Expert
Our team has built 600+ apps. Get personalized help with your project.
Book a free consultation