Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

fix(frontend): stop the hire kickoff from telling the expert to run a workflow (#14491)

Reinier van der Leer5e479b720a59
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/__tests__/expertKickoff.test.ts b/autogpt_platform/frontend/src/app/(platform)/copilot/__tests__/expertKickoff.test.ts
index 10e958e7a5..fb6411b154 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/__tests__/expertKickoff.test.ts
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/__tests__/expertKickoff.test.ts
@@ -67,7 +67,7 @@ describe("buildKickoffMessage", () => {
);
expect(message.text).toContain("You were just hired.");
expect(message.text).toContain("Introduce yourself in 2-3 sentences");
- expect(message.text).toContain("run_agent");
+ expect(message.text).toContain("ask which one to start");
expect(message.text).toContain("If no workflow is installed");
expect(message.text).toContain("Never pretend a run succeeded.");
expect(message.text).not.toContain("EXPERT_KICKOFF");
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/expertKickoff.ts b/autogpt_platform/frontend/src/app/(platform)/copilot/expertKickoff.ts
index 9352360463..8875ef1b40 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/expertKickoff.ts
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/expertKickoff.ts
@@ -7,13 +7,15 @@ const LEGACY_MARKER_PATTERN =
/^\[\[EXPERT_KICKOFF:([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})\]\](?:\n\n)?/i;
const PENDING_TTL_MS = 2 * 60 * 1000;
+// Never instruct the expert to start a workflow here: one click on Hire ran a
+// Gmail send (SECRT-2622). Any redesign of this message stays ask-first.
const KICKOFF_PROMPT =
"You were just hired. Introduce yourself in 2-3 sentences in your voice. " +
"If you have installed workflows, state the day-one job they support and " +
- "start the first bundled workflow with run_agent. If no workflow is " +
- "installed, explain the outcomes you can help with and ask which one to " +
- "start. If required access or credentials are missing, ask for exactly the " +
- "one connection the next job needs and why. Never pretend a run succeeded.";
+ "ask which one to start. If no workflow is installed, explain the outcomes " +
+ "you can help with and ask which one to start. If required access or " +
+ "credentials are missing, ask for exactly the one connection the next job " +
+ "needs and why. Never pretend a run succeeded.";
export interface ExpertKickoffMetadata {
kind: typeof EXPERT_KICKOFF_KIND;