{"id":1492,"date":"2025-07-10T19:17:47","date_gmt":"2025-07-11T02:17:47","guid":{"rendered":"https:\/\/hostex.io\/help\/?p=1492"},"modified":"2025-07-10T19:17:47","modified_gmt":"2025-07-11T02:17:47","slug":"shortcode","status":"publish","type":"post","link":"https:\/\/hostex.io\/help\/shortcode\/","title":{"rendered":"How to Use Shortcodes in Hostex Automated Messages"},"content":{"rendered":"\n<p>Hostex allows you to send highly personalized messages to your guests using&nbsp;<strong>shortcodes<\/strong>. These dynamic tags automatically pull the right information from your property settings or booking details\u2014so every guest receives accurate, tailored communication without manual effort.<\/p>\n\n\n\n<p>Whether you&#8217;re setting up&nbsp;<strong>Automated Replies<\/strong>&nbsp;or&nbsp;<strong>Triggered Messages<\/strong>, shortcodes make your messages smarter and more efficient.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"691\" height=\"1024\" src=\"https:\/\/hostex.io\/help\/wp-content\/uploads\/2025\/07\/image-1-691x1024.png\" alt=\"\" class=\"wp-image-1493\" style=\"width:358px;height:auto\" srcset=\"https:\/\/hostex.io\/help\/wp-content\/uploads\/2025\/07\/image-1-691x1024.png 691w, https:\/\/hostex.io\/help\/wp-content\/uploads\/2025\/07\/image-1-202x300.png 202w, https:\/\/hostex.io\/help\/wp-content\/uploads\/2025\/07\/image-1-768x1138.png 768w, https:\/\/hostex.io\/help\/wp-content\/uploads\/2025\/07\/image-1-1037x1536.png 1037w, https:\/\/hostex.io\/help\/wp-content\/uploads\/2025\/07\/image-1-8x12.png 8w, https:\/\/hostex.io\/help\/wp-content\/uploads\/2025\/07\/image-1.png 1088w\" sizes=\"auto, (max-width: 691px) 100vw, 691px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">What Are Shortcodes?<\/h2>\n\n\n\n<p>Shortcodes are dynamic placeholders you can insert into your message templates. When a message is sent, the system replaces each shortcode with the corresponding data from the reservation or property.<\/p>\n\n\n\n<p>For example:<br>Writing&nbsp;<code>Hi {{guest_first_name}}<\/code>&nbsp;will send&nbsp;<code>Hi Alex<\/code>&nbsp;to a guest named Alex.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Shortcode Categories<\/h2>\n\n\n\n<p>Shortcodes fall into\u00a0three main categories:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. Property-Related Shortcodes<\/h3>\n\n\n\n<p><em>(Requires info to be set in the <a href=\"https:\/\/hostex.io\/help\/check-in-guide\/\"><strong>check-in guide<\/strong><\/a> or property settings)<\/em><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Shortcode<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td><code>{{property_name}}<\/code><\/td><td>Name of the property<\/td><\/tr><tr><td><code>{{property_location}}<\/code><\/td><td>Address or location of the property<\/td><\/tr><tr><td><code>{{door_lock_code}}<\/code><\/td><td>Smart lock code<\/td><\/tr><tr><td><code>{{visible_time_of_door_lock}}<\/code><\/td><td>Time when the door code becomes visible<\/td><\/tr><tr><td><code>{{wifi_name}}<\/code><\/td><td>Wi-Fi network name<\/td><\/tr><tr><td><code>{{wifi_password}}<\/code><\/td><td>Wi-Fi password<\/td><\/tr><tr><td><code>{{contact_number}}<\/code><\/td><td>Host\u2019s primary contact number<\/td><\/tr><tr><td><code>{{other_contact_methods}}<\/code><\/td><td>Any other contact methods provided<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\ud83d\udca1 Tip: Make sure these details are saved in your check-in guide for the shortcode to work properly.<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">2. Booking-Related Shortcodes<\/h3>\n\n\n\n<p><em>(Automatically pulled from the reservation)<\/em><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Shortcode<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td><code>{{nights_of_stay}}<\/code><\/td><td>Total number of nights<\/td><\/tr><tr><td><code>{{checkin_guide_link}}<\/code><\/td><td>Link to the digital check-in guide<\/td><\/tr><tr><td><code>{{checkin_guide_qrcode}}<\/code><\/td><td>QR code image link for the guide<\/td><\/tr><tr><td><code>{{checkin_date}}<\/code><\/td><td>Check-in date<\/td><\/tr><tr><td><code>{{checkout_date}}<\/code><\/td><td>Check-out date<\/td><\/tr><tr><td><code>{{booking_channel}}<\/code><\/td><td>Booking platform (e.g., Airbnb)<\/td><\/tr><tr><td><code>{{guest_full_name}}<\/code><\/td><td>Guest\u2019s full name<\/td><\/tr><tr><td><code>{{guest_first_name}}<\/code><\/td><td>Guest\u2019s first name<\/td><\/tr><tr><td><code>{{guest_last_name}}<\/code><\/td><td>Guest\u2019s last name<\/td><\/tr><tr><td><code>{{phone_number}}<\/code><\/td><td>Guest\u2019s phone number (if available)<\/td><\/tr><tr><td><code>{{guest_phone_last_4}}<\/code><\/td><td>Last 4 digits of guest\u2019s phone<\/td><\/tr><tr><td><code>{{guest_phone_last_5}}<\/code><\/td><td>Last 5 digits of guest\u2019s phone<\/td><\/tr><tr><td><code>{{guest_phone_last_6}}<\/code><\/td><td>Last 6 digits of guest\u2019s phone<\/td><\/tr><tr><td><code>{{guest_phone_last_7}}<\/code><\/td><td>Last 7 digits of guest\u2019s phone<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u2705 These shortcodes are updated in real time with each reservation.<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">3. Third-Party Integration Shortcodes<\/h3>\n\n\n\n<p><em>(Manually added based on your integration)<\/em><\/p>\n\n\n\n<p>If you&#8217;re using tools like\u00a0BetterSTR\u00a0to provide digital guidebooks, you can manually insert the shortcode provided by the platform. Example:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Shortcode<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td><code>{{cf.better_guide}}<\/code><\/td><td>BetterSTR digital guidebook link<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\ud83d\udce3 Note: The actual shortcode may vary depending on the third-party service.<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">Example Message Template<\/h2>\n\n\n\n<p>Here\u2019s what a complete automated message might look like:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Hi {{guest_first_name}},\n\nWe\u2019re excited to host you at {{property_name}}!  \nYour check-in date is {{checkin_date}} and you\u2019ll be staying for {{nights_of_stay}} nights.\n\nYour digital guide: {{checkin_guide_link}}  \nWi-Fi: {{wifi_name}} \/ {{wifi_password}}  \nSmart lock code (visible at {{visible_time_of_door_lock}}): {{door_lock_code}}\n\nIf you need anything, contact us at {{contact_number}}.\n\nSee you soon!  \n\u2013 The Hostex Team\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Hostex allows you to send highly personalized messages to your guests using&nbsp;shortcodes. These dynamic tags automatically pull the right information from your property settings or booking details\u2014so every guest receives accurate, tailored communication without manual effort. Whether you&#8217;re setting up&nbsp;Automated Replies&nbsp;or&nbsp;Triggered Messages, shortcodes make your messages smarter and more efficient. What Are Shortcodes? Shortcodes are [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32],"tags":[],"yst_prominent_words":[],"class_list":["post-1492","post","type-post","status-publish","format-standard","hentry","category-automations"],"_links":{"self":[{"href":"https:\/\/hostex.io\/help\/wp-json\/wp\/v2\/posts\/1492","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hostex.io\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hostex.io\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hostex.io\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hostex.io\/help\/wp-json\/wp\/v2\/comments?post=1492"}],"version-history":[{"count":2,"href":"https:\/\/hostex.io\/help\/wp-json\/wp\/v2\/posts\/1492\/revisions"}],"predecessor-version":[{"id":1501,"href":"https:\/\/hostex.io\/help\/wp-json\/wp\/v2\/posts\/1492\/revisions\/1501"}],"wp:attachment":[{"href":"https:\/\/hostex.io\/help\/wp-json\/wp\/v2\/media?parent=1492"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hostex.io\/help\/wp-json\/wp\/v2\/categories?post=1492"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hostex.io\/help\/wp-json\/wp\/v2\/tags?post=1492"},{"taxonomy":"yst_prominent_words","embeddable":true,"href":"https:\/\/hostex.io\/help\/wp-json\/wp\/v2\/yst_prominent_words?post=1492"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}