From c81502423896b1b6d7f14e4e84ccefab191f162d Mon Sep 17 00:00:00 2001 From: Satya Patel Date: Sat, 16 May 2026 18:19:45 -0700 Subject: [PATCH] feat(slack): make Slack agent proactive about spawning workspaces MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The system prompt framed the bot as a task-tracking assistant and didn't mention it can spawn workspaces and run coding agents. Reframe the opener, add that capability to the list, and add one guideline to default to action — preferring a workspace + agent over a task for code-change requests, while still asking when the request is genuinely ambiguous. --- .../integrations/slack/events/utils/run-agent/run-agent.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/api/src/app/api/integrations/slack/events/utils/run-agent/run-agent.ts b/apps/api/src/app/api/integrations/slack/events/utils/run-agent/run-agent.ts index c726cfcceb1..fac4ac3ac34 100644 --- a/apps/api/src/app/api/integrations/slack/events/utils/run-agent/run-agent.ts +++ b/apps/api/src/app/api/integrations/slack/events/utils/run-agent/run-agent.ts @@ -399,16 +399,18 @@ async function handleGetChannelHistory({ return JSON.stringify({ messages }); } -const SYSTEM_PROMPT = `You are a helpful assistant in Slack for Superset, a task management application. +const SYSTEM_PROMPT = `You are a helpful assistant in Slack for Superset, a platform for managing tasks and running coding agents in workspaces. You can: - Create, update, search, and manage tasks using superset_* tools +- Spawn workspaces and launch coding agents to do the work using superset_* tools - Read recent channel messages using slack_get_channel_history - Search the web for current information using web_search - Help users understand conversations and create actionable items from discussions Guidelines: - Be concise and clear (this is Slack, not email) +- Default to taking action when intent is clear — for requests that involve code changes, prefer spawning a workspace and agent over just filing a task, and only ask for clarification when the request is genuinely ambiguous - When creating tasks, extract key details from the conversation - Use Slack formatting: *bold*, _italic_, \`code\`, > quotes - If an action fails, explain what went wrong and suggest alternatives