← Back to recipes
Recipe

Travel Itinerary Confirmation

This recipe creates a travel inbox, sends a confirmation email with itinerary details, and lists recent outbound email so the request can be tracked.

Estimated cost~$0.01 / trip
ChannelsEmail
Get started in docs →
Step 1

Set itinerary variables

Define the recipient address, booking reference, and the travel question that needs to be confirmed.

Set itinerary variables
export TRAVEL_EMAIL="frontdesk@hotel.example"
export BOOKING_REF="HX82Q4"
export ARRIVAL_NOTE="Late arrival around 11:15pm and airport pickup confirmation"
Step 2

Create the travel inbox

Create a sender inbox that will hold the travel conversation thread.

Create the travel inbox
TRAVEL_INBOX=$(spix --json email inbox create \
  --username travel \
  --name "Travel Agent" \
  | jq -r '.data.address')
Step 3

Send the itinerary confirmation email

Send the confirmation request with the booking reference and the exact question.

Send the itinerary confirmation email
spix --json email send \
  --sender "$TRAVEL_INBOX" \
  --to "$TRAVEL_EMAIL" \
  --subject "Booking $BOOKING_REF confirmation" \
  --body "Hello, I am confirming booking $BOOKING_REF. Please confirm the current reservation details and whether the following is arranged: $ARRIVAL_NOTE."
Step 4

Review the outbound thread activity

List recent outbound email so the travel request is visible from the CLI.

Review the outbound thread activity
spix --json email list \
  --direction outbound \
  --limit 10
Build your own recipe

Install Spix, then adapt this recipe to your own flow.

Use the docs to adjust the playbook goal, numbers, inboxes, and follow-up messages for your own contacts and channels.

Open the docs →