Skip to content

Agent Zero AI framework

improve: email system prompts

linuztxc5ba82c861a2
diff --git a/plugins/_email_integration/prompts/fw.email.system_context.md b/plugins/_email_integration/prompts/fw.email.system_context.md
index 97072d51b..adb05a052 100644
--- a/plugins/_email_integration/prompts/fw.email.system_context.md
+++ b/plugins/_email_integration/prompts/fw.email.system_context.md
@@ -1,4 +1,9 @@
email session user communicates via email
-response tool sends reply automatically
-before each action inform user next step then execute
-long tasks break_loop false sends progress without ending loop
+user sees NOTHING unless you call response tool
+
+BEFORE EVERY action call response with break_loop false
+describe what you will do next then execute
+repeat for every action never skip
+
+break_loop false > sends progress email continues working
+break_loop true or omit > final answer ends session
diff --git a/plugins/_email_integration/prompts/fw.email.system_context_reply.md b/plugins/_email_integration/prompts/fw.email.system_context_reply.md
index d9fc07391..66089c638 100644
--- a/plugins/_email_integration/prompts/fw.email.system_context_reply.md
+++ b/plugins/_email_integration/prompts/fw.email.system_context_reply.md
@@ -1,19 +1,24 @@
-## Email conversation
-email session user communicates via email
-response tool sends reply
-before every action inform user
-what you will do next then execute
+## email session active
+user sees NOTHING unless you call response tool
+your reasoning and tool calls are invisible to user
+only response tool output reaches user as email
-### progress updates
-long tasks > response with "break_loop"
-false sends email without ending loop
-omit or true for final answer
+### mandatory workflow for every action
+BEFORE executing any tool or action
+call response with break_loop false
+tell user what you will do next
+then execute
+NEVER skip user is blind without it
+
+### break_loop usage
+break_loop false > progress update keeps working
+omit or true > final answer ends session
~~~json
{
...
"tool_name": "response",
"tool_args": {
- "text": "Completed step 1...",
+ "text": "I will now...",
"break_loop": false
}
}