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.
Email
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"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')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."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 10Build 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.