← Back to directory
Marketing Medium to set up AI workflow Generate from Brief

Personalized Hotel Reward Emails for High-Spenders

Source reviewed Updated 2026-07-07

After a hotel guest checks out, the agent calculates their total amenity spend and emails a personalized free service offer if they spent...

What it does

You receive a personalized free service offer via email after your checkout if you spent at least $50 on hotel amenities. The system automatically calculates your total spend, identifies your VIP status, and sends a branded reward for unused services based on your specific usage.

Step by step

  1. Configure a Salesforce trigger to fire on checkout events and extract guest ID and line-item spend data.
  2. Implement a deterministic code block that sums amenity costs and filters for guests with totals >= $50.
  3. Format the filtered VIP list into a structured JSON payload containing guest name, total spend, and available amenities.

Where the LLM does the work

  • Prompt the Vertex Chat Model to draft a personalized email body that highlights specific unused services based on the guest's history.
  • Instruct the LLM to output strictly valid JSON with fields for subject line and HTML content to ensure downstream parsing reliability.
  • Use the Structured Output Parser to validate the LLM response before passing it to the email sending tool.

Watch out for

Brevo authentication tokens expire periodically, so integrate automatic token refresh logic to prevent silent delivery failures.
High spend thresholds might exclude valuable mid-tier guests, so review the $50 cutoff monthly and adjust based on conversion metrics.

Tools that fit

Salesforce Service Monitor checkouts and fetch guest spend data
Code API Calculate total amenity spend and filter VIP guests
Google Vertex Chat Model LLM Generate personalized promo text using AI
Structured Output Parser API Clean and parse AI output into JSON
Brevo Service Send personalized HTML reward emails

The agent brief

Everything your agent needs, including the gotchas. Copy it and go.
agent-brief.md
You are helping me build the following AI agent workflow.

## Goal
Personalized Hotel Reward Emails for High-Spenders: After a hotel guest checks out, the agent calculates their total amenity spend and emails a personalized free service offer if they spent...

## Specification
- What it does: You receive a personalized free service offer via email after your checkout if you spent at least $50 on hotel amenities. The system automatically calculates your total spend, identifies your VIP status, and sends a branded reward for unused services based on your specific usage.
- Trigger: Triggered by an event (Event · on new checkout)
- Autonomy: Fully hands-off
- Expected setup effort: about an afternoon
- Tools/services involved:
  - Salesforce: Monitor checkouts and fetch guest spend data
  - Code: Calculate total amenity spend and filter VIP guests
  - Google Vertex Chat Model: Generate personalized promo text using AI
  - Structured Output Parser: Clean and parse AI output into JSON
  - Brevo: Send personalized HTML reward emails

## Known pitfalls, handle each one explicitly in your implementation
1. Brevo authentication tokens expire periodically, so integrate automatic token refresh logic to prevent silent delivery failures.
2. High spend thresholds might exclude valuable mid-tier guests, so review the $50 cutoff monthly and adjust based on conversion metrics.

## Reference implementation
https://n8n.io/workflows/5936 (workflow template)
Fetch and inspect this before building. If it matches my stack, adapt it;
if not, rebuild the pattern with my tools.

## Process requirements
1. Before building: ask me which of the listed tools I actually use and
   what my platform is (n8n / Make / code / other). Do not assume.
2. Adapt the pattern to my answers; do not force the reference stack.
3. Address every pitfall above; tell me how you handled each.
4. Provide a test plan I can run before letting this touch real data.
5. Ask before any step that sends messages, modifies data, or spends money.

Source: https://usecasesforagents.com/use-case/personalized-hotel-reward-emails-for-high-spenders/ via usecasesforagents.com

Frequently asked questions

Can I use a different CRM than Salesforce?

Yes. Salesforce is only the example CRM in this recipe. The same flow works with Agile CRM, Attio, Close CRM and Freshworks CRM. Swap the CRM connection and keep the rest of the setup as written.

Want this running in your business?

This is what I do. I design and build AI agents like this one, and keep them running. If you want it set up for your team instead of doing it yourself, get in touch.
Get in touch →

Who it's for

Also fits E-commerce Operator.

Seen in the wild

← Back to directory