如何在 Hostex 自动消息中使用短代码
Hostex allows you to send highly personalized messages to your guests using shortcodes. These dynamic tags automatically pull the right information from your property settings or booking details—so every guest receives accurate, tailored communication without manual effort.
Whether you’re setting up Automated Replies 或者 Triggered Messages, shortcodes make your messages smarter and more efficient.

What Are Shortcodes?
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.
例如:
Writing Hi {{guest_first_name}}
will send Hi Alex
to a guest named Alex.
Shortcode Categories
Shortcodes fall into three main categories:
1. Property-Related Shortcodes
(Requires info to be set in the check-in guide or property settings)
Shortcode | Description |
---|---|
{{property_name}} | Name of the property |
{{property_location}} | Address or location of the property |
{{door_lock_code}} | Smart lock code |
{{visible_time_of_door_lock}} | Time when the door code becomes visible |
{{wifi_name}} | Wi-Fi network name |
{{wifi_password}} | Wi-Fi password |
{{contact_number}} | Host’s primary contact number |
{{other_contact_methods}} | Any other contact methods provided |
💡 Tip: Make sure these details are saved in your check-in guide for the shortcode to work properly.
2. Booking-Related Shortcodes
(Automatically pulled from the reservation)
Shortcode | Description |
---|---|
{{nights_of_stay}} | Total number of nights |
{{checkin_guide_link}} | Link to the digital check-in guide |
{{checkin_guide_qrcode}} | QR code image link for the guide |
{{checkin_date}} | Check-in date |
{{checkout_date}} | Check-out date |
{{booking_channel}} | Booking platform (e.g., Airbnb) |
{{guest_full_name}} | Guest’s full name |
{{guest_first_name}} | Guest’s first name |
{{guest_last_name}} | Guest’s last name |
{{phone_number}} | Guest’s phone number (if available) |
{{guest_phone_last_4}} | Last 4 digits of guest’s phone |
{{guest_phone_last_5}} | Last 5 digits of guest’s phone |
{{guest_phone_last_6}} | Last 6 digits of guest’s phone |
{{guest_phone_last_7}} | Last 7 digits of guest’s phone |
✅ These shortcodes are updated in real time with each reservation.
3. Third-Party Integration Shortcodes
(Manually added based on your integration)
If you’re using tools like BetterSTR to provide digital guidebooks, you can manually insert the shortcode provided by the platform. Example:
Shortcode | Description |
---|---|
{{cf.better_guide}} | BetterSTR digital guidebook link |
📣 Note: The actual shortcode may vary depending on the third-party service.
Example Message Template
Here’s what a complete automated message might look like:
Hi {{guest_first_name}},
We’re excited to host you at {{property_name}}!
Your check-in date is {{checkin_date}} and you’ll be staying for {{nights_of_stay}} nights.
Your digital guide: {{checkin_guide_link}}
Wi-Fi: {{wifi_name}} / {{wifi_password}}
Smart lock code (visible at {{visible_time_of_door_lock}}): {{door_lock_code}}
If you need anything, contact us at {{contact_number}}.
See you soon!
– The Hostex Team