π± Personalized hotel reward emails for high-spenders with Salesforce, Gemini AI & Brevo
β‘ 1,538 views Β· π± Social Media & Email Marketing
Description
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__ccustom 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 offer 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.
π Nodes Used
Salesforce, Brevo, Basic LLM Chain, Structured Output Parser, Salesforce Trigger, Google Vertex Chat Model
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File