Skip to content

armgit / alook

Public Imported from GitHub
0

Multi-Agent Collaboration for Team and Friends

feat(studio): revamp scenario templates to 6 presets and improve picker UI

Gener56d28dc29b95
diff --git a/src/web/src/app/api/studios/route.ts b/src/web/src/app/api/studios/route.ts
index 1fbd5561a..38e963e1b 100644
--- a/src/web/src/app/api/studios/route.ts
+++ b/src/web/src/app/api/studios/route.ts
@@ -60,24 +60,20 @@ const SCENARIO_LINK_INSTRUCTIONS: Record<string, Record<string, LinkInstruction>
toLeader: "Report with: Status, what was done (formatted, published, submitted), next step (awaiting review, scheduled for X), and any blockers (platform issues, access problems).",
},
},
- productivity: {
- assistant: {
- fromLeader: "Delegate operational tasks: what action, who's the target, what's the deadline, and tone guidance for external communications.",
- toLeader: "Report with: Status, action taken, next step (waiting for reply, follow-up on X date), and escalation flags (no response, bounced email, conflicting info).",
- },
- },
- "full-team": {
+ "sales-outreach": {
researcher: {
- fromLeader: "Delegate research tasks with: clear question, decision context, scope boundary, and expected output format.",
- toLeader: "Report with: Status, summary, evidence with sources, recommendation, and confidence level. Flag low-confidence conclusions.",
+ fromLeader: "Delegate prospect research: target criteria, market/industry focus, what intelligence is needed, and how it will be used (outreach, pitch, proposal).",
+ toLeader: "Report with: Status, prospect list with context and suggested angles, market signals, source reliability, and confidence levels.",
},
- engineer: {
- fromLeader: "Delegate coding tasks with: clear requirement, relevant context (file paths, patterns), and expected behavior.",
- toLeader: "Report with: Status, files changed, tests run + results, self-review findings, and concerns about correctness.",
+ assistant: {
+ fromLeader: "Delegate outreach tasks: who to contact, messaging angle, follow-up cadence, and desired outcome.",
+ toLeader: "Report with: Status, emails sent/scheduled, responses received, pipeline updates, and deals needing attention.",
},
+ },
+ "customer-support": {
assistant: {
- fromLeader: "Delegate operational tasks: action needed, target person/system, deadline, and tone guidance.",
- toLeader: "Report with: Status, action taken, next step, and escalation flags.",
+ fromLeader: "Delegate support tasks: customer issue summary, urgency level, prior interaction context, and resolution approach.",
+ toLeader: "Report with: Status, response drafted/sent, issue resolution status, follow-up schedule, and recurring patterns flagged.",
},
},
};
diff --git a/src/web/src/components/studio-onboarding/relation-preview.tsx b/src/web/src/components/studio-onboarding/relation-preview.tsx
index 8f3087985..4bff3e0d3 100644
--- a/src/web/src/components/studio-onboarding/relation-preview.tsx
+++ b/src/web/src/components/studio-onboarding/relation-preview.tsx
@@ -26,24 +26,20 @@ const SCENARIO_RELATIONS: Record<string, Record<string, RelationText>> = {
reports: "publication status and next steps",
},
},
- productivity: {
- assistant: {
- receives: "actions with targets, deadlines, and tone guidance",
- reports: "completion status with next steps and escalation flags",
- },
- },
- "full-team": {
+ "sales-outreach": {
researcher: {
- receives: "research briefs with clear questions and scope",
- reports: "structured findings with sources and confidence levels",
+ receives: "prospect research tasks with target criteria and market focus",
+ reports: "actionable intelligence with prospect lists and confidence levels",
},
- engineer: {
- receives: "coding tasks with requirements and context",
- reports: "verified code changes with test results and self-review",
+ assistant: {
+ receives: "outreach tasks with prospect details, messaging angle, and timeline",
+ reports: "outreach status with responses received and follow-up schedule",
},
+ },
+ "customer-support": {
assistant: {
- receives: "operational tasks with actions, targets, and deadlines",
- reports: "completion status with next steps and escalation flags",
+ receives: "support tickets with customer context and urgency level",
+ reports: "resolution status with customer response and follow-up needs",
},
},
};
diff --git a/src/web/src/components/studio-onboarding/scenario-picker.tsx b/src/web/src/components/studio-onboarding/scenario-picker.tsx
index 0a73b622d..1822d947d 100644
--- a/src/web/src/components/studio-onboarding/scenario-picker.tsx
+++ b/src/web/src/components/studio-onboarding/scenario-picker.tsx
@@ -22,12 +22,12 @@ export function ScenarioPicker({
onClick={onBrowseTemplates}
className="text-[11px] text-muted-foreground hover:text-foreground transition-colors underline underline-offset-2"
>
- Browse templates
+ Browse templates <span aria-hidden="true">&rsaquo;</span>
</button>
)}
</div>
<div className="grid grid-cols-1 sm:grid-cols-2 gap-3">
- {SCENARIO_PRESETS.map((s, i) => (
+ {SCENARIO_PRESETS.map((s) => (
<button
key={s.id}
onClick={() => onSelect(s.id)}
@@ -36,17 +36,18 @@ export function ScenarioPicker({
selected === s.id
? "border-foreground/50 bg-muted/50"
: "border-border",
- i === SCENARIO_PRESETS.length - 1 && SCENARIO_PRESETS.length % 2 !== 0 && "sm:col-span-2",
)}
>
- <span className="text-lg">{s.icon}</span>
+ <div className="flex items-center justify-between w-full">
+ <span className="text-lg">{s.icon}</span>
+ <span className="text-[10px] text-muted-foreground/70">
+ {s.members.length} agent{s.members.length > 1 ? "s" : ""}
+ </span>
+ </div>
<span className="text-sm font-medium">{s.label}</span>
<span className="text-xs text-muted-foreground leading-tight">
{s.description}
</span>
- <span className="text-[10px] text-muted-foreground/70 mt-1">
- {s.members.length} agent{s.members.length > 1 ? "s" : ""}
- </span>
</button>
))}
</div>
diff --git a/src/web/src/components/studio-onboarding/scenario-presets.ts b/src/web/src/components/studio-onboarding/scenario-presets.ts
index acf5dda21..ae61fe6c8 100644
--- a/src/web/src/components/studio-onboarding/scenario-presets.ts
+++ b/src/web/src/components/studio-onboarding/scenario-presets.ts
@@ -1,4 +1,4 @@
-export type ScenarioId = "software-dev" | "content-research" | "productivity" | "full-team" | "custom";
+export type ScenarioId = "software-dev" | "content-research" | "personal-assistant" | "sales-outreach" | "customer-support" | "custom";
export type MemberRole = "leader" | "researcher" | "engineer" | "assistant";
@@ -356,11 +356,155 @@ Report additionally:
${ESCALATION_SECTION}`;
+// --- Personal Assistant: solo all-in-one agent ---
+
+const LEADER_PERSONAL_ASSISTANT = `You are a personal AI assistant. You work solo — there's no team to delegate to. You handle everything directly: emails, research, scheduling, writing, analysis, and whatever else comes your way.
+
+## Core Principle
+Be fast, accurate, and proactive. The user chose a single-agent setup for speed and simplicity — deliver accordingly.
+
+## How You Work
+1. When you receive a task, handle it directly. No delegation, no coordination overhead.
+2. For complex tasks, break them into steps and work through them methodically.
+3. Prioritize getting things done over asking for clarification — but if a task is genuinely ambiguous, ask one focused question.
+4. Proactively suggest next steps when you see opportunities.
+
+## Communication Style
+- Be concise. The user wants results, not status reports.
+- Lead with the answer or deliverable, then context if needed.
+- Never ask "should I continue?" — if you have what you need, keep moving.
+- Match the user's tone: casual if they're casual, precise if they're precise.
+
+${REPORTING_PROTOCOL_SECTION}
+${ESCALATION_SECTION}`;
+
+// --- Sales & Outreach roles ---
+
+const RESEARCHER_SALES = `You are the sales research specialist. You find prospects, research companies, analyze markets, and gather the intelligence the team needs to sell effectively.
+
+## Core Principle
+Your research directly drives revenue. Every finding should be actionable — not academic. The team needs to know who to contact, what they care about, and how to position.
+
+## Before You Begin
+When you receive a research request:
+- What are we looking for? (prospects, company intel, market data, competitive info)
+- What will this feed into? (outreach email, pitch, proposal, strategy)
+- What scope is reasonable?
+
+If the request is ambiguous, ask one focused clarification before starting.
+
+## How You Work
+1. Research companies, industries, and individuals using available sources.
+2. Focus on actionable intelligence: pain points, recent news, decision-makers, tech stack, company size.
+3. For prospect research, prioritize signals that indicate buying intent or fit.
+4. For competitive analysis, focus on positioning differences, not feature lists.
+
+## Output Standards
+- Lead with the most actionable finding, then supporting detail.
+- Cite sources: URLs, dates, reliability indicators.
+- For prospect lists, include: name, role, company, why they're relevant, suggested angle.
+- If data is stale or unverifiable, flag it clearly.
+
+${REPORTING_PROTOCOL_SECTION}
+Report additionally:
+- **Summary:** Key findings for the outreach team
+- **Prospects:** Prioritized list with context and suggested approach
+- **Market context:** Relevant trends or signals
+- **Confidence:** High / Medium / Low per finding
+
+## What NOT to Do
+- Don't deliver raw data dumps — synthesize into actionable intelligence.
+- Don't include prospects without a reason for why they're relevant.
+- Don't present outdated information without flagging the date.
+- Don't over-research at the expense of timeliness — sales moves fast.
+
+${ESCALATION_SECTION}`;
+
+const ASSISTANT_SALES = `You are the sales operations specialist. You handle outreach emails, follow-ups, pipeline tracking, and the logistics that keep deals moving forward.
+
+## Core Principle
+Deals die in the follow-up gap. You ensure every prospect gets timely, personalized communication and nothing falls through the cracks.
+
+## Before You Begin
+When you receive a task:
+- Who are we reaching out to and why?
+- What stage is this deal/prospect in?
+- What's the desired outcome of this communication?
+
+If any of these are ambiguous, ask one focused question before starting.
+
+## How You Work
+1. Draft outreach emails that are personalized, concise, and have a clear call-to-action.
+2. Track follow-up timelines — know when to nudge and when to wait.
+3. Keep records of interactions: who was contacted, when, what was discussed, next steps.
+4. Flag deals that are going cold or need escalation.
+
+## Email Standards
+- Subject lines: specific, intriguing, not salesy.
+- Body: short. Personalize the first line. Get to the value proposition fast.
+- Follow-ups: reference previous context, add new value, don't just "check in."
+- Tone: professional but human. Never robotic or template-feeling.
+
+${REPORTING_PROTOCOL_SECTION}
+Report additionally:
+- **What I did:** Emails sent, follow-ups scheduled, pipeline updates
+- **Next step:** Upcoming follow-ups, responses pending
+- **Concerns:** Cold deals, bounced emails, objections to address
+
+## What NOT to Do
+- Don't send generic templates — every email should feel personal.
+- Don't follow up more than twice without escalating to the leader.
+- Don't make pricing or commitment promises — that's the leader's domain.
+- Don't guess at prospect details — ask the researcher or leader.
+
+${ESCALATION_SECTION}`;
+
+// --- Customer Support roles ---
+
+const ASSISTANT_SUPPORT = `You are the customer support specialist. You draft responses to customer inquiries, track open issues, and ensure every customer gets a timely, helpful resolution.
+
+## Core Principle
+Every customer interaction is a chance to build trust. Be empathetic, accurate, and efficient — resolve issues on the first response whenever possible.
+
+## Before You Begin
+When you receive a task:
+- What is the customer's issue or question?
+- What's the urgency and impact?
+- Is there relevant context from previous interactions?
+
+If any of these are ambiguous, ask one focused question before starting.
+
+## How You Work
+1. Understand the customer's issue fully before drafting a response.
+2. Draft replies that are empathetic, clear, and actionable — tell the customer exactly what's happening and what to expect.
+3. Track open issues and follow up proactively when resolutions are pending.
+4. Escalate complex or sensitive issues to the leader with full context.
+
+## Response Standards
+- Lead with acknowledgment of the issue, then the solution or next step.
+- Use simple language — no jargon unless the customer is technical.
+- If you can't resolve immediately, set clear expectations: what you'll do, by when.
+- For known issues, provide workarounds while the fix is pending.
+
+${REPORTING_PROTOCOL_SECTION}
+Report additionally:
+- **What I did:** Response drafted/sent, issue tracked, escalation made
+- **Next step:** Awaiting customer reply, follow-up scheduled, pending resolution
+- **Concerns:** Recurring issues, unhappy customers, systemic problems to flag
+
+## What NOT to Do
+- Don't dismiss or minimize customer frustrations.
+- Don't promise timelines you can't guarantee — set realistic expectations.
+- Don't make policy exceptions without escalating to the leader.
+- Don't send a response you're unsure about — flag it as DONE_WITH_CONCERNS.
+
+${ESCALATION_SECTION}`;
+
export const SCENARIO_PRESETS: ScenarioPreset[] = [
{
id: "software-dev",
label: "Software Development",
- description: "Build and ship code with a coordinated dev company",
+ description: "Build and ship code with a coordinated dev team",
icon: "🖥",
members: [
{ role: "leader", description: "Coordinates work, summarizes results, and replies to you", instructions: LEADER_INSTRUCTIONS },
@@ -380,32 +524,40 @@ export const SCENARIO_PRESETS: ScenarioPreset[] = [
],
},
{
- id: "productivity",
- label: "General Productivity",
- description: "A lean company for everyday tasks and communications",
- icon: "🏢",
+ id: "personal-assistant",
+ label: "Personal Assistant",
+ description: "One AI that handles your everyday tasks and communications",
+ icon: "🤖",
+ members: [
+ { role: "leader", description: "Handles all tasks directly — emails, research, scheduling, and more", instructions: LEADER_PERSONAL_ASSISTANT },
+ ],
+ },
+ {
+ id: "sales-outreach",
+ label: "Sales & Outreach",
+ description: "Prospect, follow up, and close deals as a team",
+ icon: "📈",
members: [
- { role: "leader", description: "Handles tasks, coordinates work, and replies to you", instructions: LEADER_INSTRUCTIONS },
- { role: "assistant", description: "Manages follow-ups, reminders, and administrative work", instructions: ASSISTANT_PRODUCTIVITY },
+ { role: "leader", description: "Coordinates outreach strategy and manages deal flow", instructions: LEADER_INSTRUCTIONS },
+ { role: "researcher", description: "Researches prospects, companies, and market intelligence", instructions: RESEARCHER_SALES },
+ { role: "assistant", description: "Handles outreach emails, follow-ups, and pipeline tracking", instructions: ASSISTANT_SALES },
],
},
{
- id: "full-team",
- label: "Full Company",
- description: "All roles covered — dev, research, and operations",
- icon: "🚀",
+ id: "customer-support",
+ label: "Customer Support",
+ description: "Handle tickets, draft replies, and track resolutions",
+ icon: "🎧",
members: [
- { role: "leader", description: "Coordinates the team and communicates with you", instructions: LEADER_INSTRUCTIONS },
- { role: "researcher", description: "Gathers context, reads docs, and organizes findings", instructions: RESEARCHER_GENERAL },
- { role: "engineer", description: "Writes code, runs tests, and checks implementations", instructions: ENGINEER_INSTRUCTIONS },
- { role: "assistant", description: "Handles follow-ups, reminders, and task tracking", instructions: ASSISTANT_GENERAL },
+ { role: "leader", description: "Coordinates support queue and handles escalations", instructions: LEADER_INSTRUCTIONS },
+ { role: "assistant", description: "Drafts customer responses and tracks open issues", instructions: ASSISTANT_SUPPORT },
],
},
{
id: "custom",
label: "Custom",
- description: "Choose your own company size and roles",
- icon: "⚙️",
+ description: "Build your own team from scratch",
+ icon: "✨",
members: [
{ role: "leader", description: "Coordinates work and replies to you", instructions: LEADER_INSTRUCTIONS },
],
diff --git a/src/web/src/lib/templates/presets/client-ops.ts b/src/web/src/lib/templates/presets/client-ops.ts
index e19fe9c35..7cbf15dea 100644
--- a/src/web/src/lib/templates/presets/client-ops.ts
+++ b/src/web/src/lib/templates/presets/client-ops.ts
@@ -22,7 +22,7 @@ export const clientOps: TemplatePreset = {
{ title: "Consultants", description: "Manage multiple client relationships without dropping any balls." },
{ title: "Small agencies", description: "Scale client communications without hiring a dedicated account manager." },
],
- baseScenario: "productivity",
+ baseScenario: "personal-assistant",
members: [
{
role: "leader",
diff --git a/src/web/src/lib/templates/presets/executive-assistant.ts b/src/web/src/lib/templates/presets/executive-assistant.ts
index 44035d724..33b65f223 100644
--- a/src/web/src/lib/templates/presets/executive-assistant.ts
+++ b/src/web/src/lib/templates/presets/executive-assistant.ts
@@ -22,7 +22,7 @@ export const executiveAssistant: TemplatePreset = {
{ title: "Executives", description: "Never miss a follow-up or walk into a meeting unprepared." },
{ title: "Consultants", description: "Manage multiple client communications with consistent, timely responses." },
],
- baseScenario: "productivity",
+ baseScenario: "personal-assistant",
members: [
{
role: "leader",