MSG Spintax एक ऐसा syntax है जो एक template से text variations बनाने में मदद करता है। हर मैसेज यूनिक होगा लेकिन meaning same रहेगा।
दो मुख्य Constructs
{choice|selection} — Random Variant
List में से एक random option चुनता है।
{नमस्ते|हेलो|प्रणाम}
Results: नमस्ते OR हेलो OR प्रणाम
Use करें: greetings, questions, synonyms, closing phrases के लिए
[+X+सभी|variants] — Enumeration
Separator X के साथ सभी variants दिखाता है (items randomly shuffle होते हैं)।
[+, +सेब|संतरा|केला]
Result: सेब, संतरा, केला (random order में)
Separators:
[+, +]→ comma और space: “A, B, C”[+ +]→ space: “A B C”[+ और +]→ word “और”: “A और B और C”[+-+]→ hyphen: “A-B-C”[+ / +]→ slash: “A / B / C”
Use करें: service lists, product listings, dates के लिए
Real-World Examples
Example 1: Customer Greeting
{नमस्ते|हेलो|नमस्कार} {{Name}}! {कैसे हैं आप|क्या हाल है|सब ठीक है ना}?
Result: हेलो राज! क्या हाल है?
Example 2: Sales Offer
{{Name}} जी, आज [+, +स्मार्टफोन|लैपटॉप|टैबलेट] पर {20|30|50}% की छूट पाएं!
Result: प्रिया जी, आज स्मार्टफोन, लैपटॉप, टैबलेट पर 30% की छूट पाएं!
Example 3: Appointment Reminder
{नमस्ते|हेलो} {{Name}} जी!
आपकी [+, +हेयरकट|कलर ट्रीटमेंट|स्टाइलिंग] appointment {{Time}} बजे confirm है।
Result: नमस्ते अंजलि जी! आपकी कलर ट्रीटमेंट, स्टाइलिंग, हेयरकट appointment 2:00 PM बजे confirm है।
Example 4: Event Invitation
हमारे {वार्षिक|सालाना} conference में शामिल हों! तारीखें: [+-+15 मार्च|16 मार्च|17 मार्च]
Result: हमारे वार्षिक conference में शामिल हों! तारीखें: 15 मार्च-16 मार्च-17 मार्च
Example 5: Business Follow-up
{नमस्ते|हेलो} {{Name}} जी!
{{Address}} वाली {property|listing} में आपकी {रुचि के लिए धन्यवाद|interest के लिए शुक्रिया}।
क्या आप {viewing|site visit} schedule करना चाहेंगे?
Result: नमस्ते विकास जी! सेक्टर 18 वाली property में आपकी रुचि के लिए धन्यवाद। क्या आप site visit schedule करना चाहेंगे?
Nested Constructs
Complex variations के लिए constructs को combine करें।
Nested Selection
{शुभ {प्रभात|दोपहर|संध्या}|नमस्कार}
Results: शुभ प्रभात / शुभ दोपहर / शुभ संध्या / नमस्कार
Combined Constructs
हमारे पास [+, +{लकड़ी का|स्टील का} टेबल|{चमड़े की|कपड़े की} कुर्सी|{आधुनिक|पुराने जमाने का} लैंप] है
Result: हमारे पास लकड़ी का टेबल, चमड़े की कुर्सी, आधुनिक लैंप है
कैसे काम करता है: हर {...} में से एक option select होता है, फिर सभी comma से join होते हैं।
⚠️ सिफारिश: 2-3 से ज्यादा nesting levels use न करें।
Common Mistakes
❌ Constructs में Confusion
गलत: {सेब, संतरा, केला} — पूरी string select करेगा
सही: [+, +सेब|संतरा|केला] — सभी items list करेगा
❌ Unclosed Brackets
गलत: {नमस्ते|हेलो
सही: {नमस्ते|हेलो}
❌ Incorrect Syntax
गलत: [+A|B|C] — दूसरा + missing है
सही: [+, +A|B|C] — plus signs के बीच separator
❌ Empty Variants
[+, +सेब||केला] → सेब, , केला (separators के बीच कुछ नहीं)[+, +सेब| |केला] → सेब, , केला (separators के बीच space)
Excel Integration
{{ColumnName}} use करके spreadsheets से data insert करें:
{नमस्ते|हेलो} {{Name}} जी! आपका order #{{OrderID}} तैयार है।
Processing Order:
- Excel से values substitute करें:
{{Name}},{{OrderID}} - Selection process करें
{option1|option2} - Enumerations process करें
[+X+...] - Nested constructs के लिए repeat करें (50 iterations तक)
Excel Cells में MSG Spintax
Maximum uniqueness के लिए cells में directly constructs डालें:
| Name | Discount | Product |
|---|---|---|
| राज | {20|30|50}% | {फोन|टैबलेट} |
| प्रिया | {15|25}% | {लैपटॉप|हेडफोन} |
Template: {{Name}} जी, {{Product}} पर {{Discount}} छूट पाएं!
Results:
- राज जी, टैबलेट पर 30% छूट पाएं!
- प्रिया जी, लैपटॉप पर 15% छूट पाएं!
Technical Limitations
⚠️ Important:
- Maximum 50 processing iterations
- सिफारिश: 2-3 से ज्यादा nesting levels नहीं
- Unclosed brackets से errors आते हैं
- बहुत complex constructs की full processing guarantee नहीं
Construct Comparison
| Construct | Result | कब Use करें |
|---|---|---|
{A|B|C} | एक option | Greetings, questions |
[+, +A|B|C] | सभी comma से | Lists, enumerations |
{A{B|C}|D} | एक: AB, AC, D | Complex variants |
[+, +{A|B}|{C|D}] | Combination | Flexible lists |
Quick Reference
{A|B} → एक select करता है
[+, +A|B] → सभी comma से outputs
[+ +A|B] → सभी space से outputs
[+-+A|B] → सभी hyphen से outputs
{A{B|C}|D} → nested selection
[+, +{A|B}|C] → combination
{{Name}} → Excel substitution
भारतीय Business Examples
Restaurant Booking
{नमस्ते|हेलो} {{Name}} जी! {2|4|6} लोगों के लिए आपकी table {{Date}} को {{Time}} बजे confirm है।
{मिलते हैं|आपका इंतजार रहेगा|धन्यवाद}!
Gym Membership
{नमस्ते|हेलो} {{Name}} जी! आपकी {membership|subscription} में [+, +gym access|group classes|personal training|pool access] शामिल है।
{शुरू करें|अभी join करें|चलिए start करते हैं}?
E-commerce Order Update
{नमस्ते|हेलो} {{Name}} जी! आपका order {भेज दिया गया है|रास्ते में है|deliver हो रहा है}।
Tracking: {{TrackingNumber}}
{डिलीवरी|पहुंचने का समय|delivery date}: {{DeliveryDate}}
Pro Tips
- Mass sending से पहले test करें — कई generations verify करें कि natural लग रहे हैं
- Meaning consistent रखें — सभी variants interchangeable होने चाहिए
- Excel variations use करें — template + cell variations मिलाकर maximum uniqueness पाएं
- Simple से start करें — nesting से पहले basic constructs master करें
- Columns clearly name करें — Excel में descriptive names use करें जैसे
{{FirstName}},{{OrderTotal}}
Maximum Uniqueness Formula
Template variations + Excel cell variations = exponential uniqueness
Example: 2 template variants × 2 Excel variants per field = एक template से 16 unique combinations!