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.
This commit is contained in:
parent
8b6e65bd20
commit
8cb762d055
1 changed files with 4 additions and 2 deletions
|
|
@ -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)',
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue