Commit ·
d3ae060
1
Parent(s): 5f7776b
adjusting prompts
Browse files
Messaging_system/Message_generator.py
CHANGED
|
@@ -181,7 +181,9 @@ class MessageGenerator:
|
|
| 181 |
instructions = f"""
|
| 182 |
Your task is to select the best 'header' and a 'message' for a {self.Core.get_instrument()} student as a push notification.
|
| 183 |
Based on the user instructions, you might need to **modify the selected option** very minimal and slightly to improve personalization if capable while preserving the original brand voice, tone, rhythm, and structure.
|
|
|
|
| 184 |
**Important Note**: header < {self.Core.config_file["header_limit"]} and message < {self.Core.config_file["message_limit"]} characters.
|
|
|
|
| 185 |
|
| 186 |
### Don't use below phrases, words, or similar variations of them:
|
| 187 |
{banned_phrases}
|
|
|
|
| 181 |
instructions = f"""
|
| 182 |
Your task is to select the best 'header' and a 'message' for a {self.Core.get_instrument()} student as a push notification.
|
| 183 |
Based on the user instructions, you might need to **modify the selected option** very minimal and slightly to improve personalization if capable while preserving the original brand voice, tone, rhythm, and structure.
|
| 184 |
+
|
| 185 |
**Important Note**: header < {self.Core.config_file["header_limit"]} and message < {self.Core.config_file["message_limit"]} characters.
|
| 186 |
+
**Important Note**: NEVER use time-related words (“new,” “recent,” “latest,” etc.) and NEVER imply recency in any way.
|
| 187 |
|
| 188 |
### Don't use below phrases, words, or similar variations of them:
|
| 189 |
{banned_phrases}
|
Messaging_system/MultiMessage.py
CHANGED
|
@@ -346,9 +346,11 @@ We have previously sent these push notifications to the user and The user has no
|
|
| 346 |
instructions = f"""
|
| 347 |
Your task is to select the best 'header' and a 'message' for a {self.Core.get_instrument()} student as a push notification.
|
| 348 |
Based on the user instructions, you might need to **modify the selected option** very minimal and slightly to improve personalization if capable while preserving the original brand voice, tone, rhythm, and structure.
|
|
|
|
| 349 |
**Important Note**: header < {self.Core.config_file["header_limit"]} and message < {self.Core.config_file["message_limit"]} characters.
|
|
|
|
| 350 |
|
| 351 |
-
# Don't use below phrases, words, or similar variations of them:
|
| 352 |
{banned_phrases}
|
| 353 |
{jargon_list}
|
| 354 |
"""
|
|
|
|
| 346 |
instructions = f"""
|
| 347 |
Your task is to select the best 'header' and a 'message' for a {self.Core.get_instrument()} student as a push notification.
|
| 348 |
Based on the user instructions, you might need to **modify the selected option** very minimal and slightly to improve personalization if capable while preserving the original brand voice, tone, rhythm, and structure.
|
| 349 |
+
|
| 350 |
**Important Note**: header < {self.Core.config_file["header_limit"]} and message < {self.Core.config_file["message_limit"]} characters.
|
| 351 |
+
**Important Note**: NEVER use time-related words (“new,” “recent,” “latest,” etc.) and NEVER imply recency in any way.
|
| 352 |
|
| 353 |
+
### Don't use below phrases, words, or similar variations of them:
|
| 354 |
{banned_phrases}
|
| 355 |
{jargon_list}
|
| 356 |
"""
|
Messaging_system/PromptGenerator.py
CHANGED
|
@@ -163,14 +163,14 @@ When incorporating this content into the message and header, follow these guidel
|
|
| 163 |
3. **Artist/Instructor Name**:
|
| 164 |
- If the full name of the **ARTIST** is available, mention it casually if appropriate (e.g., "led by Jordan Mitchell").
|
| 165 |
- If only the first name is known, do *not* include it in the message at all.
|
| 166 |
-
-
|
| 167 |
|
| 168 |
4. **Tone & Style**:
|
| 169 |
- Keep the tone light, supportive, and personal — like a helpful suggestion from a friend.
|
| 170 |
- Avoid sounding pushy, overly promotional, or marketing pitch.
|
| 171 |
|
| 172 |
5. **Time References**
|
| 173 |
-
-
|
| 174 |
|
| 175 |
6. **Flexibility**:
|
| 176 |
- You don’t need to include all elements every time. Prioritize what feels most relevant and natural based on the context.
|
|
|
|
| 163 |
3. **Artist/Instructor Name**:
|
| 164 |
- If the full name of the **ARTIST** is available, mention it casually if appropriate (e.g., "led by Jordan Mitchell").
|
| 165 |
- If only the first name is known, do *not* include it in the message at all.
|
| 166 |
+
- **DO NOT ASSUME or HALLUCINATE Artist name based on previous messages**, only refer to Recommended Content Details provided.
|
| 167 |
|
| 168 |
4. **Tone & Style**:
|
| 169 |
- Keep the tone light, supportive, and personal — like a helpful suggestion from a friend.
|
| 170 |
- Avoid sounding pushy, overly promotional, or marketing pitch.
|
| 171 |
|
| 172 |
5. **Time References**
|
| 173 |
+
- NEVER use time-related words (“new,” “recent,” “latest,” etc.) and Never imply recency in any way.
|
| 174 |
|
| 175 |
6. **Flexibility**:
|
| 176 |
- You don’t need to include all elements every time. Prioritize what feels most relevant and natural based on the context.
|