How I Connected Cursor to Slack to Automate My AI Workflows
vom 29. Juni 2025
โWrite me a Symfony app.โ Thatโs all it takes โ if you say it to Cursor inside Slack. But what if you want to automate that request?
In this article, Iโll show you how I integrated Cursor, the AI-powered IDE, directly into Slack, and then went one step further by building a custom Slack app in Symfony to automate those interactions. Finally, Iโll show how I used Flow, my functional orchestration system, to scale the whole process.
๐ง Why Connect Cursor to Slack?
Cursor recently introduced a native Slack integration: you can now simply write @Cursor fix the login bug in a channel, and it will launch a background agent that:
- Reads the conversation context
- Applies fixes to your repo
- Creates a pull request on GitHub
Itโs magical โ especially for fast-paced teams working in Slack all day.
Official docs: https://docs.cursor.com/slack
โ๏ธ Connect Cursor to Slack
From your Cursor dashboard:
- Go to Integrations
- Click Connect Slack
- Choose a repo, configure your default settings
- Youโre done โ now just mention
@Cursorin Slack!
From there, you can use commands like:
@Cursor settings
@Cursor list my agents
@Cursor [repo=my-org/project, branch=main] fix validation
Itโs already powerful. But what if you want to automate it?
๐ ๏ธ Build a Slack App with Symfony
To automate Slack messages, I created a custom Slack app with OAuth 2.0. The app retrieves a user token (xoxp-...) that allows my Symfony backend to:
- List Slack conversations
- Post messages
- Retrieve users (to mention
@Cursorby ID)
Using ngrok to expose my local server, I implemented an OAuth callback in Symfony and configured the Slack app with:
chat:writechannels:readusers:read
๐ Full code available here: ๐ฆ https://github.com/matyo91/cursor-slack-symfony
๐ค Automate with Flow
Cursor only responds to human mentions of @Cursor.
Slack does not yet allow bots to trigger app mentions like that.
But hereโs the workaround: I used Flow, my automation orchestrator (built in Symfony), to:
- List Slack channels
- Identify the right one (e.g.
#social) - Find the user ID for Cursor
- Format the message (
<@UXXXXXXX> write me a Hello World in PHP) - Post the message using a real user token
๐ Whatโs Next? Try It with Uniflow
If youโre tired of cobbling scripts together, you can build this kind of automation visually using Uniflow โ my no-code tool for developers.
With Uniflow, you can:
- Automate Slack flows without writing boilerplate
- Chain events between GitHub, Slack, Notion, and more
- Deploy orchestrations with logs, retries, and conditionals
๐ก I use Flow as the core engine in Uniflow. So if you like this article, youโll love what weโre building at https://uniflow.io
๐งช Want to Try It?
Check out the full source code for the Slack + Cursor integration on GitHub: ๐ https://github.com/matyo91/cursor-slack-symfony
And if youโd rather click than code, head over to: ๐ https://uniflow.io