# Personalized hotel reward emails for high-spenders: n8n workflow

> Started by an event in a connected app, and works across Salesforce. It hands the judgement calls to a language model.

Source: https://millionrounds.com/workflow/personalized-hotel-reward-emails-for-high-spenders (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [CRM](https://millionrounds.com/workflows?category=CRM#library)

# Personalized hotel reward emails for high-spenders

Started by an event in a connected app, and works across Salesforce. It hands the judgement calls to a language model. 8 steps, 1 branch: small enough to read in one sitting and change without fear.

Small Calls a model

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fpersonalized-hotel-reward-emails-for-high-spenders)

**8 steps** Small: readable in one sitting

**1** Branch: places the flow splits

**0** Loops or waits

**1** Service it connects to

## The flow

Starts it 1 Model 3 Logic 2 Service 2

The steps in the order they run, from what starts it.

- 1 **Structured Output Parser** Output Parser Structured *Model*
- 2 **Check for any latest checkouts** Salesforce trigger *Starts it*
- 3 **Give Away Personalised Offers** Lm Chat Google Vertex *Model*
- 4 **Basic LLM Chain** Chain Llm *Model*
- 5 **Extract Checkout information** Salesforce *Service*
- 6 **Send offer via email** Send In Blue *Service*
- 7 **Look For VIP Clients** Code *Logic*
- 8 **Check the threshold exceedings** If *Logic*

## How it's built

- **Starts on:** An event in a connected app
- **Steps:** 8, with 1 branch
- **Size:** Small: readable in one sitting
- **Connects to:** Salesforce
- **Model:** A language model, family not declared

## Questions

What does it need to run?

An n8n account, plus your own Salesforce account, and a key for a language model. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an event in a connected app.

Does it use AI?

Yes. It calls a language model. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Not long. At 8 steps it can be read in one sitting and changed without fear.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 8 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fpersonalized-hotel-reward-emails-for-high-spenders)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Salesforce](https://millionrounds.com/workflows?service=Salesforce#library)

## Workflows like it

Also crm, with the same services where possible, closest in size first.

- [**Multi-channel campaign messaging with OpenAI and Salesforce** 9 steps · calls a model · Email, Salesforce](https://millionrounds.com/workflow/multi-channel-campaign-messaging-with-openai-and-salesforce)
- [**Resilient AI Opportunity Scoring Engine with Salesforce** 9 steps · calls a model · Postgres, Salesforce](https://millionrounds.com/workflow/resilient-ai-opportunity-scoring-engine-with-salesforce)
- [**CallForge - 01 - filter Gong calls synced** 9 steps · Salesforce](https://millionrounds.com/workflow/callforge-01-filter-gong-calls-synced)
- [**LoneScale - Push contacts to track from Salesforce to LoneScale** 9 steps · Salesforce](https://millionrounds.com/workflow/lonescale-push-contacts-to-track-from-salesforce-to-lonescal)
- [**Provision new employee accounts** 9 steps · Gmail, Jira](https://millionrounds.com/workflow/provision-new-employee-accounts)
- [**Automate stale deal follow-ups in Salesforce with OpenAI** 10 steps · calls a model · Email, Salesforce](https://millionrounds.com/workflow/automate-stale-deal-follow-ups-in-salesforce-with-openai)
