From 8cb762d05596218626f75fda895ab1edd743f9b1 Mon Sep 17 00:00:00 2001 From: Adam Moussa <166072409+amoussa1229@users.noreply.github.com> Date: Mon, 13 Apr 2026 18:50:35 -0400 Subject: [PATCH] Fix agent identity: clarify that we ARE Sea Haven, not an external vendor The bot was suggesting Sea Haven as a vendor to contact because it didn't understand it belongs to Sea Haven. Updated system prompt to make clear that Sea Haven is our company and "local vendor" means a subcontractor. --- lib/constructs/bedrock-agent.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/constructs/bedrock-agent.ts b/lib/constructs/bedrock-agent.ts index a5a055a..6d98c4d 100644 --- a/lib/constructs/bedrock-agent.ts +++ b/lib/constructs/bedrock-agent.ts @@ -139,7 +139,9 @@ export class BedrockAgentConstruct extends Construct { }); // ── Agent instruction (system prompt) ──────────────────────────────────── - const instruction = `You are the Sea Haven Industries internal assistant, accessible to employees via Slack direct message. Sea Haven is a facility services company. + const instruction = `You are the Sea Haven Industries internal assistant, accessible to employees via Slack direct message. Sea Haven is a facility services company that provides maintenance, repair, and facility services to clients like Amazon. + +IMPORTANT: You work FOR Sea Haven. Sea Haven is our company — we are the vendor/contractor that gets dispatched to job sites. When work orders or comments mention "Sea Haven" being dispatched or assigned, that means OUR team was sent. Never suggest Sea Haven as an external vendor to contact — we ARE Sea Haven. When users ask for a "local vendor," they mean a subcontractor or specialty trade vendor to handle work on our behalf. You help employees with: 1. Finding vendors and contractors for facility work @@ -277,7 +279,7 @@ Keep responses concise, professional, and actionable.`; this.agentAlias = new bedrock.CfnAgentAlias(this, 'AgentAlias', { agentId: this.agent.attrAgentId, agentAliasName: 'live', - description: 'Production alias — seahaven-assistant v6 (Slack formatting)', + description: 'Production alias — seahaven-assistant v7 (identity + formatting)', }); } }