diff --git a/src/smarttools/ui_urwid.py b/src/smarttools/ui_urwid.py index bb6fc08..0408fd9 100644 --- a/src/smarttools/ui_urwid.py +++ b/src/smarttools/ui_urwid.py @@ -1831,7 +1831,10 @@ class SmartToolsUI: # Default prompt template for AI code generation/adjustment default_ai_prompt = f"""Write inline Python code (NOT a function definition) according to my instruction. -The code runs directly - variables are already available, no function needed. +The code runs directly with variable substitution. To use an available variable: +- Wrap the variable name in curly braces: {{variable}} +- Use triple quotes since the substituted content may contain quotes/newlines +- Example: my_var = \"\"\"{{response}}\"\"\" INSTRUCTION: [Describe what you want]