[{"data":1,"prerenderedAt":547},["ShallowReactive",2],{"help-article-campaigns-personalizing-messages":3,"help-siblings-campaigns":508},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"category":5,"order":10,"difficulty":11,"time_to_complete":12,"related":13,"body":17,"_type":502,"_id":503,"_source":504,"_file":505,"_stem":506,"_extension":507},"\u002Fhelp\u002Fcampaigns\u002Fpersonalizing-messages","campaigns",false,"","Personalizing messages with template variables","How to use dynamic variables in campaign messages to personalize each recipient's experience.",3,"beginner","3 minutes",[14,15,16],"\u002Fhelp\u002Fcampaigns\u002Fcreate-first-campaign","\u002Fhelp\u002Fcampaigns\u002Fadding-recipients","\u002Fhelp\u002Fsettings\u002Fcreating-templates",{"type":18,"children":19,"toc":489},"root",[20,28,34,41,70,79,88,96,104,112,120,126,133,138,146,157,163,168,179,205,211,216,236,242,247,333,339,344,370,387,393,453,459,469,479],{"type":21,"tag":22,"props":23,"children":25},"element","h1",{"id":24},"personalizing-messages-with-template-variables",[26],{"type":27,"value":8},"text",{"type":21,"tag":29,"props":30,"children":31},"p",{},[32],{"type":27,"value":33},"Make every campaign message feel personal by using dynamic variables that fill in each recipient's data.",{"type":21,"tag":35,"props":36,"children":38},"h2",{"id":37},"how-variables-work",[39],{"type":27,"value":40},"How variables work",{"type":21,"tag":29,"props":42,"children":43},{},[44,46,53,55,61,62,68],{"type":27,"value":45},"Template variables are placeholders like ",{"type":21,"tag":47,"props":48,"children":50},"code",{"className":49},[],[51],{"type":27,"value":52},"{{1}}",{"type":27,"value":54},", ",{"type":21,"tag":47,"props":56,"children":58},{"className":57},[],[59],{"type":27,"value":60},"{{2}}",{"type":27,"value":54},{"type":21,"tag":47,"props":63,"children":65},{"className":64},[],[66],{"type":27,"value":67},"{{3}}",{"type":27,"value":69}," that get replaced with actual values for each recipient.",{"type":21,"tag":29,"props":71,"children":72},{},[73],{"type":21,"tag":74,"props":75,"children":76},"strong",{},[77],{"type":27,"value":78},"Template:",{"type":21,"tag":80,"props":81,"children":83},"pre",{"code":82},"Hi {{1}}! Your order {{2}} is ready for pickup at {{3}}. Show this message at the counter.\n",[84],{"type":21,"tag":47,"props":85,"children":86},{"__ignoreMap":7},[87],{"type":27,"value":82},{"type":21,"tag":29,"props":89,"children":90},{},[91],{"type":21,"tag":74,"props":92,"children":93},{},[94],{"type":27,"value":95},"Sent to John:",{"type":21,"tag":80,"props":97,"children":99},{"code":98},"Hi John! Your order #ORD-789 is ready for pickup at Store A. Show this message at the counter.\n",[100],{"type":21,"tag":47,"props":101,"children":102},{"__ignoreMap":7},[103],{"type":27,"value":98},{"type":21,"tag":29,"props":105,"children":106},{},[107],{"type":21,"tag":74,"props":108,"children":109},{},[110],{"type":27,"value":111},"Sent to Jane:",{"type":21,"tag":80,"props":113,"children":115},{"code":114},"Hi Jane! Your order #ORD-456 is ready for pickup at Store B. Show this message at the counter.\n",[116],{"type":21,"tag":47,"props":117,"children":118},{"__ignoreMap":7},[119],{"type":27,"value":114},{"type":21,"tag":35,"props":121,"children":123},{"id":122},"providing-variable-values",[124],{"type":27,"value":125},"Providing variable values",{"type":21,"tag":127,"props":128,"children":130},"h3",{"id":129},"in-manual-entry",[131],{"type":27,"value":132},"In manual entry",{"type":21,"tag":29,"props":134,"children":135},{},[136],{"type":27,"value":137},"Add values after the phone number and name, separated by commas:",{"type":21,"tag":80,"props":139,"children":141},{"code":140},"+919876543210, John, ORD-789, Store A\n+919876543211, Jane, ORD-456, Store B\n",[142],{"type":21,"tag":47,"props":143,"children":144},{"__ignoreMap":7},[145],{"type":27,"value":140},{"type":21,"tag":29,"props":147,"children":148},{},[149,151],{"type":27,"value":150},"Format: ",{"type":21,"tag":47,"props":152,"children":154},{"className":153},[],[155],{"type":27,"value":156},"phone, name ({{1}}), {{2}}, {{3}}, ...",{"type":21,"tag":127,"props":158,"children":160},{"id":159},"in-csv-import",[161],{"type":27,"value":162},"In CSV import",{"type":21,"tag":29,"props":164,"children":165},{},[166],{"type":27,"value":167},"Add columns for each variable:",{"type":21,"tag":80,"props":169,"children":174},{"code":170,"language":171,"meta":7,"className":172},"phone_number,name,order_id,store\n+919876543210,John,ORD-789,Store A\n+919876543211,Jane,ORD-456,Store B\n","csv",[173],"language-csv",[175],{"type":21,"tag":47,"props":176,"children":177},{"__ignoreMap":7},[178],{"type":27,"value":170},{"type":21,"tag":29,"props":180,"children":181},{},[182,184,190,192,197,198,203],{"type":27,"value":183},"The columns after ",{"type":21,"tag":47,"props":185,"children":187},{"className":186},[],[188],{"type":27,"value":189},"name",{"type":27,"value":191}," map to ",{"type":21,"tag":47,"props":193,"children":195},{"className":194},[],[196],{"type":27,"value":60},{"type":27,"value":54},{"type":21,"tag":47,"props":199,"children":201},{"className":200},[],[202],{"type":27,"value":67},{"type":27,"value":204},", etc. in order.",{"type":21,"tag":127,"props":206,"children":208},{"id":207},"from-contactssegments",[209],{"type":27,"value":210},"From contacts\u002Fsegments",{"type":21,"tag":29,"props":212,"children":213},{},[214],{"type":27,"value":215},"When importing from contacts or segments, AIsoule auto-maps:",{"type":21,"tag":217,"props":218,"children":219},"ul",{},[220,231],{"type":21,"tag":221,"props":222,"children":223},"li",{},[224,229],{"type":21,"tag":47,"props":225,"children":227},{"className":226},[],[228],{"type":27,"value":52},{"type":27,"value":230}," → Contact name",{"type":21,"tag":221,"props":232,"children":233},{},[234],{"type":27,"value":235},"Other variables need default values (set in the campaign settings)",{"type":21,"tag":35,"props":237,"children":239},{"id":238},"auto-mapped-variables",[240],{"type":27,"value":241},"Auto-mapped variables",{"type":21,"tag":29,"props":243,"children":244},{},[245],{"type":27,"value":246},"AIsoule automatically fills these common variables:",{"type":21,"tag":248,"props":249,"children":250},"table",{},[251,270],{"type":21,"tag":252,"props":253,"children":254},"thead",{},[255],{"type":21,"tag":256,"props":257,"children":258},"tr",{},[259,265],{"type":21,"tag":260,"props":261,"children":262},"th",{},[263],{"type":27,"value":264},"Variable pattern",{"type":21,"tag":260,"props":266,"children":267},{},[268],{"type":27,"value":269},"Auto-fills with",{"type":21,"tag":271,"props":272,"children":273},"tbody",{},[274,299,316],{"type":21,"tag":256,"props":275,"children":276},{},[277,294],{"type":21,"tag":278,"props":279,"children":280},"td",{},[281,286,288],{"type":21,"tag":47,"props":282,"children":284},{"className":283},[],[285],{"type":27,"value":52},{"type":27,"value":287}," or ",{"type":21,"tag":47,"props":289,"children":291},{"className":290},[],[292],{"type":27,"value":293},"{{name}}",{"type":21,"tag":278,"props":295,"children":296},{},[297],{"type":27,"value":298},"Recipient's name",{"type":21,"tag":256,"props":300,"children":301},{},[302,311],{"type":21,"tag":278,"props":303,"children":304},{},[305],{"type":21,"tag":47,"props":306,"children":308},{"className":307},[],[309],{"type":27,"value":310},"{{phone}}",{"type":21,"tag":278,"props":312,"children":313},{},[314],{"type":27,"value":315},"Recipient's phone number",{"type":21,"tag":256,"props":317,"children":318},{},[319,328],{"type":21,"tag":278,"props":320,"children":321},{},[322],{"type":21,"tag":47,"props":323,"children":325},{"className":324},[],[326],{"type":27,"value":327},"{{email}}",{"type":21,"tag":278,"props":329,"children":330},{},[331],{"type":27,"value":332},"Recipient's email",{"type":21,"tag":35,"props":334,"children":336},{"id":335},"default-values",[337],{"type":27,"value":338},"Default values",{"type":21,"tag":29,"props":340,"children":341},{},[342],{"type":27,"value":343},"For variables that can't be auto-mapped, set default values:",{"type":21,"tag":345,"props":346,"children":347},"ol",{},[348,360,365],{"type":21,"tag":221,"props":349,"children":350},{},[351,353,358],{"type":27,"value":352},"In the campaign builder, look for the ",{"type":21,"tag":74,"props":354,"children":355},{},[356],{"type":27,"value":357},"\"Template Parameters\"",{"type":27,"value":359}," section",{"type":21,"tag":221,"props":361,"children":362},{},[363],{"type":27,"value":364},"Enter a default value for each variable",{"type":21,"tag":221,"props":366,"children":367},{},[368],{"type":27,"value":369},"This value is used when a recipient doesn't have specific data",{"type":21,"tag":29,"props":371,"children":372},{},[373,378,380,385],{"type":21,"tag":74,"props":374,"children":375},{},[376],{"type":27,"value":377},"Example:",{"type":27,"value":379}," If ",{"type":21,"tag":47,"props":381,"children":383},{"className":382},[],[384],{"type":27,"value":60},{"type":27,"value":386}," is \"order_id\" and some recipients don't have one, the default might be \"your recent order\".",{"type":21,"tag":35,"props":388,"children":390},{"id":389},"tips-for-personalization",[391],{"type":27,"value":392},"Tips for personalization",{"type":21,"tag":345,"props":394,"children":395},{},[396,413,423,433,443],{"type":21,"tag":221,"props":397,"children":398},{},[399,404,406,411],{"type":21,"tag":74,"props":400,"children":401},{},[402],{"type":27,"value":403},"Always use the name",{"type":27,"value":405}," — ",{"type":21,"tag":47,"props":407,"children":409},{"className":408},[],[410],{"type":27,"value":52},{"type":27,"value":412}," should be the recipient's name",{"type":21,"tag":221,"props":414,"children":415},{},[416,421],{"type":21,"tag":74,"props":417,"children":418},{},[419],{"type":27,"value":420},"Keep defaults natural",{"type":27,"value":422}," — \"your order\" is better than \"N\u002FA\" or blank",{"type":21,"tag":221,"props":424,"children":425},{},[426,431],{"type":21,"tag":74,"props":427,"children":428},{},[429],{"type":27,"value":430},"Test first",{"type":27,"value":432}," — Send to yourself to verify variables fill correctly",{"type":21,"tag":221,"props":434,"children":435},{},[436,441],{"type":21,"tag":74,"props":437,"children":438},{},[439],{"type":27,"value":440},"Don't over-personalize",{"type":27,"value":442}," — 2-3 variables is usually enough",{"type":21,"tag":221,"props":444,"children":445},{},[446,451],{"type":21,"tag":74,"props":447,"children":448},{},[449],{"type":27,"value":450},"Validate data",{"type":27,"value":452}," — Missing variables cause message failures",{"type":21,"tag":35,"props":454,"children":456},{"id":455},"troubleshooting",[457],{"type":27,"value":458},"Troubleshooting",{"type":21,"tag":29,"props":460,"children":461},{},[462,467],{"type":21,"tag":74,"props":463,"children":464},{},[465],{"type":27,"value":466},"\"Missing template parameters\"",{"type":27,"value":468}," — Some recipients don't have values for all variables. Either provide defaults or ensure your CSV has all columns filled.",{"type":21,"tag":29,"props":470,"children":471},{},[472,477],{"type":21,"tag":74,"props":473,"children":474},{},[475],{"type":27,"value":476},"\"Variable count mismatch\"",{"type":27,"value":478}," — Your CSV has fewer columns than the template expects. Add the missing columns.",{"type":21,"tag":29,"props":480,"children":481},{},[482,487],{"type":21,"tag":74,"props":483,"children":484},{},[485],{"type":27,"value":486},"\"Blank variable in message\"",{"type":27,"value":488}," — The recipient's data was empty for that field. Set a default value to prevent this.",{"title":7,"searchDepth":490,"depth":490,"links":491},2,[492,493,498,499,500,501],{"id":37,"depth":490,"text":40},{"id":122,"depth":490,"text":125,"children":494},[495,496,497],{"id":129,"depth":10,"text":132},{"id":159,"depth":10,"text":162},{"id":207,"depth":10,"text":210},{"id":238,"depth":490,"text":241},{"id":335,"depth":490,"text":338},{"id":389,"depth":490,"text":392},{"id":455,"depth":490,"text":458},"markdown","content:help:campaigns:personalizing-messages.md","content","help\u002Fcampaigns\u002Fpersonalizing-messages.md","help\u002Fcampaigns\u002Fpersonalizing-messages","md",[509,511,514,517,520,523,525,528,531,534,537,538,541,544],{"_path":15,"title":510},"Adding recipients to a campaign",{"_path":512,"title":513},"\u002Fhelp\u002Fcampaigns\u002Fbest-practices","Campaign best practices (avoid getting banned)",{"_path":515,"title":516},"\u002Fhelp\u002Fcampaigns\u002Fcampaign-analytics","Campaign analytics and reporting",{"_path":518,"title":519},"\u002Fhelp\u002Fcampaigns\u002Fcampaign-media","Uploading header media for campaigns",{"_path":521,"title":522},"\u002Fhelp\u002Fcampaigns\u002Fcampaign-statuses","Understanding campaign statuses",{"_path":14,"title":524},"Creating your first broadcast campaign",{"_path":526,"title":527},"\u002Fhelp\u002Fcampaigns\u002Fcsv-import-recipients","Importing recipients from CSV",{"_path":529,"title":530},"\u002Fhelp\u002Fcampaigns\u002Fmeta-messaging-limits","Understanding Meta's messaging limits",{"_path":532,"title":533},"\u002Fhelp\u002Fcampaigns\u002Fmonitoring-delivery","Monitoring campaign delivery in real-time",{"_path":535,"title":536},"\u002Fhelp\u002Fcampaigns\u002Fpause-resume","Pausing and resuming campaigns",{"_path":4,"title":8},{"_path":539,"title":540},"\u002Fhelp\u002Fcampaigns\u002Fretry-failed","Retrying failed campaign messages",{"_path":542,"title":543},"\u002Fhelp\u002Fcampaigns\u002Fscheduling-campaigns","Scheduling campaigns for later",{"_path":545,"title":546},"\u002Fhelp\u002Fcampaigns\u002Fsegment-import","Importing recipients from contact segments",1780423182716]