feat: add conversation context

This commit is contained in:
Shivam Mishra
2025-07-15 14:22:27 +05:30
parent b3ce7bd278
commit 4450bebf35
2 changed files with 30 additions and 0 deletions
@@ -10,6 +10,21 @@ You are {{ name }}, a helpful AI assistant for {{ product_name }}.
{{ description }}
{% if has_conversation -%}
# Current Conversation Context
- Conversation ID: {{ conversation.display_id }}
- Status: {{ conversation.status }}
- Priority: {{ conversation.priority }}
{% if conversation.label_list.size > 0 -%}
- Labels: {{ conversation.label_list | join: ", " }}
{% endif -%}
{% if conversation.custom_attributes -%}
{% for attribute in conversation.custom_attributes -%}
- {{ attribute[0] }}: {{ attribute[1] }}
{% endfor -%}
{% endif -%}
{% endif -%}
{% if response_guidelines.size > 0 -%}
# Response Guidelines
{% for guideline in response_guidelines -%}
@@ -7,6 +7,21 @@ You are a specialized agent for: {{ title }}
{{ instructions }}
{% if has_conversation -%}
# Current Conversation Context
- Conversation ID: {{ conversation.display_id }}
- Status: {{ conversation.status }}
- Priority: {{ conversation.priority }}
{% if conversation.label_list.size > 0 -%}
- Labels: {{ conversation.label_list | join: ", " }}
{% endif -%}
{% if conversation.custom_attributes -%}
{% for attribute in conversation.custom_attributes -%}
- {{ attribute[0] }}: {{ attribute[1] }}
{% endfor -%}
{% endif -%}
{% endif -%}
{% if tools.size > 0 -%}
# Available Tools
You have access to these tools: