diff --git a/backend/prompt_executor.py b/backend/prompt_executor.py index d1284d5..07f4558 100644 --- a/backend/prompt_executor.py +++ b/backend/prompt_executor.py @@ -380,7 +380,12 @@ async def execute_prompt_with_data( # This makes old-style prompts work with the new executor try: processed_placeholders = get_placeholder_example_values(profile_id) - variables.update(processed_placeholders) + # Remove {{ }} from keys (placeholder_resolver returns them with wrappers) + cleaned_placeholders = { + key.replace('{{', '').replace('}}', ''): value + for key, value in processed_placeholders.items() + } + variables.update(cleaned_placeholders) except Exception as e: # Continue even if placeholder resolution fails if enable_debug: