Skip to main content

Personalized hotel reward emails for high-spenders with Salesforce, Gemini AI & Brevo

Workflow preview

Workflow preview
100%
Personalized hotel reward emails for high-spenders with Salesforce, Gemini AI & Brevo preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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 custom object for checkou...

Best for

  • Social Media automation workflows
  • Multimodal AI automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.chainllm, @n8n/n8n-nodes-langchain.outputparserstructured, n8n-nodes-base.salesforcetrigger, n8n-nodes-base.salesforce, n8n-nodes-base.code, n8n-nodes-base.if, @n8n/n8n-nodes-langchain.lmchatgooglevertex, n8n-nodes-base.sendinblue

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by iamvaar.

Original n8n.io source

1.1 Workflow description

Title
Personalized hotel reward emails for high-spenders with Salesforce, Gemini AI & Brevo
Workflow name
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 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.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Basic LLM Chain

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.7

Block 2 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 3 - Check for any latest checkouts

Type / Role
n8n-nodes-base.salesforceTrigger - salesforceTrigger
Config choices
Version 1

Block 4 - Extract Checkout information

Type / Role
n8n-nodes-base.salesforce - salesforce
Config choices
Version 1

Block 5 - Look For VIP Clients

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 6 - Check the threshold exceedings

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 7 - Give Away Personalised Offers

Type / Role
@n8n/n8n-nodes-langchain.lmChatGoogleVertex - lmChatGoogleVertex
Config choices
Version 1

Block 8 - Send offer via email

Type / Role
n8n-nodes-base.sendInBlue - sendInBlue
Config choices
Version 1

Block 9 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Personalized hotel reward emails for high-spenders with Salesforce, Gemini AI & Brevo
Complexity intermediate
Nodes 9
Categories Social Media, Multimodal AI
Author iamvaar
Published 13 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/5936/5936.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Personalized hotel reward emails for high-spenders with Salesforce, Gemini AI & Brevo do?

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 custom object for checkou...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Social Media, Multimodal AI use case.