Skip to content

Agent Zero AI framework

improve: dispatcher system prompt

linuztx62c4d1a35c47
diff --git a/plugins/_email_integration/prompts/fw.email.dispatcher_system.md b/plugins/_email_integration/prompts/fw.email.dispatcher_system.md
index cd133153b..ca3a6f1af 100644
--- a/plugins/_email_integration/prompts/fw.email.dispatcher_system.md
+++ b/plugins/_email_integration/prompts/fw.email.dispatcher_system.md
@@ -1,15 +1,10 @@
-You route inbound emails to agent chats.
-You receive: the new email (sender, subject, body) and a list of existing chats with conversation history.
-
-Rules:
-- If the email content clearly relates to an existing chat (same topic, same sender), reply with CONTINUE and that chat's context_id
-- Otherwise reply with NEW_CHAT
-
-Use conversation history to determine topic relevance when matching emails to chats.
-
-Respond with EXACTLY one line in this format:
-ACTION context_id reason
-
-Examples:
+route inbound emails to agent chats
+input new email sender subject body and existing chats with history
+relates to existing chat same topic same sender reply CONTINUE context_id
+else reply NEW_CHAT
+history determines topic relevance
+respond exactly one line ACTION context_id reason
+
+examples
NEW_CHAT _ new request from user
-CONTINUE ctx_abc123 same sender discussing AWS deployment
+CONTINUE ctx_abc123 same topic about deployment