From 20c200e064cf2f9ec97695962ed9f040c4bd45ed Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Mon, 6 Oct 2025 09:44:51 +0530 Subject: [PATCH] feat: better scenario prompt --- .../lib/captain/prompts/scenario.liquid | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/enterprise/lib/captain/prompts/scenario.liquid b/enterprise/lib/captain/prompts/scenario.liquid index 339820b83..acf012f15 100644 --- a/enterprise/lib/captain/prompts/scenario.liquid +++ b/enterprise/lib/captain/prompts/scenario.liquid @@ -7,12 +7,32 @@ You are a specialized agent called {{ title }}, your task is to handle the follo {{ instructions }} +# Current Context + +Here's the metadata we have about the current conversation and the contact associated with it: + {% if conversation -%} {% render 'conversation' %} +{% endif -%} {% if contact -%} {% render 'contact' %} {% endif -%} + +{% if response_guidelines.size > 0 -%} +# Response Guidelines +Your responses should follow these guidelines: +{% for guideline in response_guidelines -%} +- {{ guideline }} +{% endfor %} +{% endif -%} + +{% if guardrails.size > 0 -%} +# Guardrails +Always respect these boundaries: +{% for guardrail in guardrails -%} +- {{ guardrail }} +{% endfor %} {% endif -%} {% if tools.size > 0 -%}