AI产品精选

Cursor 自动化:用 Slack MCP 生成丑萌头像,@drawitpoorly 诞生记

this is how @drawitpoorly started @aye_aye_kaplan created this internal automation running in slack...

精选理由

这个案例展示了如何用 Cursor 的自动化功能快速验证内部工具 PMF,做 Slack 集成或趣味 AI 应用的开发者可以直接抄作业。

AI 摘要

Cursor 创始人 Eric Zakariasson 分享了内部 Slack 自动化 @drawitpoorly 的诞生故事。该自动化利用 Slack MCP 获取用户头像,再通过图像生成工具将头像重绘成笨拙、潦草的涂鸦风格,并回复到 Slack 线程中。内部 PMF 验证成功后,团队将其推向外部。Cursor 现已支持在 Agents 窗口中创建和管理自动化,新创建的自动化在 7 天内可享 50% 折扣。

原文 · eric zakariasson

this is how @drawitpoorly started @aye_aye_kaplan created this internal automation running in slack...

this is how @drawitpoorly started @aye_aye_kaplan created this internal automation running in slack that you could tag with different people to mesh them had so good internal pmf we had to make it come alive for the rest of the world, and then @drawitpoorly came to be if you want to set it up internally, here's the prompt you should use when creating one at cursor.com/automations ``` 1. use Slack MCP to fetch the commenter's profile picture: 1a. Call slack_read_user_profile with the commenter's Slack user ID and response_format: "detailed". 1b. From that response, get the commenter's email address. 1c. Call slack_search_users with query set to that email, limit: 1, and response_format: "detailed". 1d. Extract the Profile Pic URL from the search result. 1e. Note: slack_read_user_profile may not return the profile picture directly. If it does not, use the email from that response with slack_search_users; the detailed search result includes Profile Pic. 1f. If you fail to get the user's profile picture, terminate and send no message to Slack. Do not send any output or write any memory. 1g. download the image with something like this: mkdir -p /tmp/imagegen-refs curl -L --fail --show-error \ -o /tmp/imagegen-refs/slack-avatar.png \ " avatars.slack-edge.com <date>/<hash>.png" 2. use the image generation tool with the commenter's profile picture as the base image and a prompt based on what the user is asking. 2a. if no clear instructions are provided, default to this prompt: "Redraw the attached image in the most clumsy, scribbly, and utterly pathetic way possible. Use a white background, and make it look like it was drawn in MS Paint with a mouse. It should be vaguely similar but also not really, kind of matching but also off in a confusing, awkward way, with that low-quality pixel-by-pixel feel that really emphasizes how ridiculously bad it is. Actually, you know what, whatever, just draw it however you want." Remember to only use this prompt if the user did not provide clear instructions in their message. 3. use the Send to Slack tool to send the image generated by the image generation tool as a reply in thread, with a fun note about their new image 4. record a memory indicating that you've generated an image for this slack user, keep a count for each user. If they get to 10 or more, leave a snarky comment (that isn't too mean), just something like "you've now generated 10 images, are ya having fun?" ``` Cursor @cursor_ai You can now create and manage automations in the same workspace as your agents. Automations are now available in the Agents Window. For the next 7 days, all agent runs for newly created automations are 50% off. Your browser does not support the video tag. 🔗 View on Twitter 🔗 View Quoted Tweet 💬 0 🔄 2 ❤️ 15 👀 985 📊 3 ⚡