iamvaar

iamvaar

Personalized Hotel Reward Emails for High-Spenders with Salesforce, Gemini AI & Brevo

This n8n workflow automatically detects high-spending hotel guests after checkout and emails them a personalized, one-time reward offer.


πŸ”§ What it does

  • Watches Salesforce Guest__c custom object for checkout updates.
  • Pulls guest spend data on optional paid amenities:
    • Room Service
    • Minibar
    • Laundry
    • Late Checkout
    • Extra Bed
    • Airport Transfer
  • Calculates total spend to identify VIP guests (β‰₯ $50 ).
  • Uses AI to:
    • Spot unused services.
    • Randomly pick one unused service.
    • Generate a realistic, short promo like:
      "Free late checkout on your next stay"
  • Parses AI output into JSON.
  • Sends a polished HTML email to the guest with their personalized offer.

πŸ“¦ Key nodes

  • Salesforce Trigger β†’ monitors new checkouts.
  • Salesforce β†’ fetches detailed spend data.
  • Function β†’ sums up total amenity spend.
  • IF β†’ filters for VIP guests.
  • LangChain LLM + Google Vertex AI β†’ drafts the offered text.
  • Structured Output Parser β†’ cleans AI output.
  • Brevo β†’ delivers branded email.

πŸ“Š Example output

Subject: John, We Have Something Special for Your Next Stay
Offer in email: Enjoy a complimentary minibar selection on your next stay.


✨ Why it matters

Rewarding guests who already spend boosts loyalty and repeat bookings β€” without generic discounts. The offer feels personal, relevant, and exclusive.

Do you want to automate your business?

Let's talk about your project