Your flight to Lisbon now leaves at 11:40, not 9:10. Booking reference QX7P2L.
Every trip change, caught in time.
Bookings carry the agent's address, so it files every confirmation, passes on schedule changes and reminds travelers to check in.
// A change from an airline we list: pass it onPOST /v1/messages/em_1Vb6Nq9R/forward{ "to": "maria.lopez@marlow.example", "text": "Your Lisbon flight moved to 11:40." }202 { "status": "sent" }
marlow-travel
Marlow Travel, for the team's trips
Your Lisbon flight moved to 11:40, Maria. Your check-in reminder moved with it.
Marlow Travel · marlow-travel
{ "type": "email.received", "data": { "inbox": { "address": "marlow-travel@blueping.dev " }, "message": { "id": "em_1Vb6Nq9R", "from": { "name": "Aerolinea" }, "to": [ { "address": "marlow-travel+maria@blueping.dev" } ], "subject": "Schedule change: flight AL482", "auth": { "dmarc": "pass" } } }}
The airline writes to Maria's tag of marlow-travel@blueping.dev, the agent checks the sender and forwards the change to her with a line on top.
How can an AI travel agent manage bookings, changes and check-ins by email?
Book with the agent's address, tagged per traveler such as marlow-travel+maria@blueping.dev, so airlines and hotels send every confirmation, change and check-in notice to an inbox the agent reads. The agent files each booking, forwards schedule changes to the traveler with POST /v1/messages/{id}/forward, and schedules the check-in reminder as a draft with a send_at 24 hours before departure.
Why travel email needs an address the agent owns
Marlow's 200 employees travel about 200 times a month. A travel agent, part software and part people, books their flights and hotels. Every booking produces mail for weeks: the confirmation, the receipt, a schedule change, the check-in reminder, the hotel's arrival details. Today it goes to the traveler's own inbox, where the agent can't see it, or to a shared travel mailbox, where nobody can tell which email belongs to which trip.
Then an airline moves a flight by three hours and emails the booking address, nobody passes it on, and the traveler misses a meeting. A check-in window opens and closes. A hotel asks for an arrival time and gets no answer.
Now every booking carries marlow-travel@blueping.dev, tagged per traveler, and the agent sees each change as it lands. A +tag sorts the mail without an inbox per person, and the work is the same for every trip: file the confirmation, pass on the change, remind the traveler to check in.
From a booking to a traveler who checked in
The agent books through the airline's or the hotel's site; Blueping supplies the address every notice goes to, the reminders and the forwards.
Create the travel desk's inbox
One inbox for the company, with a
display_nametravelers recognize when a forward arrives.Call: POST
/v1/inboxeswithclient_idanddisplay_nameAnswer:
201withidandaddress, such asmarlow-travel@blueping.devChecked: The plan's inboxes; airlines can write to it as soon as the call answers
Book with a tagged address
For Maria's trip, the agent enters
marlow-travel+maria@blueping.devas the contact email on the booking. Every email about it reaches the desk's inbox, with the tagged address into.Call: None: the address is built from
addressAnswer: Confirmations and notices, sorted by tag
Checked: Tags reach the same inbox and stay in the message's
toFile the confirmation
The agent reads the booking reference and the departure time from the confirmation, and labels the message with the trip. Calendar files attached by airlines and hotels read as text,
.icsincluded.Call: GET
/v1/messages/{id}/attachments/{attachment_id}/text, then PATCH/v1/messages/{id}Answer: The file's
text, then the message'slabelsChecked: A file's text carries its own
safetyresultSchedule the check-in reminder
A draft to the traveler with
send_at24 hours before departure goes by itself. When the airline moves the flight, the agent moves the draft with a newsend_at.Call: POST
/v1/inboxes/{id}/draftswithto,textandsend_atAnswer:
201withstatus: scheduledChecked: Between one minute and 30 days ahead, 100 scheduled sends at most per agent
Pass on schedule changes
A schedule change goes to the traveler as a forward with a short note on top, the airline's email below it and its files attached.
Call: POST
/v1/messages/{id}/forwardwithtoandtextAnswer:
202with the forward'sidand its ownthread_idChecked: A held message is never forwarded; a traveler who never wrote to the desk counts once as a new recipient
A confirmation as step 3 reads it, cut to the fields the desk uses. The booking reference and the flight number both read like codes:
{
"id": "em_8Qx5Lw9Tc3Vb2Kp1",
"subject": "Booking confirmed: Paris to Lisbon",
"from": { "address": "bookings@aerolinea.example", "name": "Aerolinea" },
"to": [{ "address": "marlow-travel+maria@blueping.dev", "name": null }],
"extracted_text": "Confirmation for your trip to Lisbon.\nBooking reference: QX7P2L\nDeparture: 2026-12-03T07:45:00+01:00\nFlight AL482, Paris to Lisbon.",
"codes": [{ "value": "QX7P2L" }, { "value": "AL482" }],
"attachments": [{ "id": "att_3Vb8Kp1R7Hn2Qx5L", "filename": "itinerary.ics", "content_type": "text/calendar", "size": 1184 }],
"auth": { "spf": "pass", "dkim": "pass", "dmarc": "pass", "verdict": "pass" }
}The travel desk in Python and Node.js
The program files each new booking email once. It finds the traveler from the address's tag, reads the booking reference and the departure time, schedules the check-in reminder, and forwards schedule changes from the airlines it trusts. TRAVELERS maps each tag to the traveler's own address, and AIRLINES lists the senders allowed to move a trip; the patterns stand in for your model, which reads real airline emails better than a regular expression.
# trips.py: file booking emails for each traveler, schedule check-in reminders, pass on changes.
# pip install requests
import os
import re
from datetime import datetime, timedelta, timezone
import requests
API = "https://blueping.dev/v1"
session = requests.Session()
session.headers["Authorization"] = f"Bearer {os.environ['BLUEPING_API_KEY']}"
TRAVELERS = { # the tag each traveler books with, and where their reminders go
"maria": "maria.lopez@marlow.example",
"tom": "tom.reyes@marlow.example",
}
AIRLINES = ["aerolinea.example"] # the airlines and hotels you book with: only they move a trip
inbox = session.post(f"{API}/inboxes", json={"client_id": "travel-desk", "display_name": "Marlow Travel"}).json()
user = inbox["address"].split("@")[0]
page = session.get(f"{API}/inboxes/{inbox['id']}/messages", params={"limit": 50}).json()
for message in reversed(page["data"]):
if message["direction"] != "in" or "trip:filed" in message["labels"]:
continue
tags = [to["address"].split("@")[0].split("+", 1)[1] for to in message["to"] if to["address"].startswith(user + "+")]
traveler = TRAVELERS.get(tags[0]) if tags else None
if traveler is None:
print("no traveler for", message["id"])
continue
text = message["extracted_text"]
reference = re.search(r"Booking reference:\s*([A-Z0-9]{6})", text)
labels = ["trip:filed"] + ([f"ref:{reference.group(1).lower()}"] if reference else [])
proven = message["auth"]["verdict"] == "pass" and message["from"]["address"].split("@")[1] in AIRLINES
if "schedule change" in message["subject"].lower() and proven:
note = "Your flight changed. The airline's email is below; reply here if the new time doesn't work."
session.post(
f"{API}/messages/{message['id']}/forward",
json={"to": traveler, "text": note},
headers={"Idempotency-Key": f"change-{message['id']}"},
)
print("forwarded change to", traveler)
departure = re.search(r"Departure:\s*(\S+)", text)
if departure:
remind = datetime.fromisoformat(departure.group(1)) - timedelta(hours=24)
if remind > datetime.now(timezone.utc) + timedelta(minutes=5):
draft = session.post(
f"{API}/inboxes/{inbox['id']}/drafts",
json={
"to": traveler,
"subject": f"Check-in reminder: {message['subject']}",
"text": f"Online check-in opens soon. Booking reference: {reference.group(1) if reference else 'in the airline email'}.",
"send_at": remind.isoformat(),
},
headers={"Idempotency-Key": f"remind-{message['id']}"},
).json()
print("reminder", draft["id"], "for", traveler, "at", draft["send_at"])
session.patch(f"{API}/messages/{message['id']}", json={"add_labels": labels})// trips.mjs: file booking emails for each traveler, schedule check-in reminders, pass on changes.
// Node.js 18 or later, nothing to install.
const API = "https://blueping.dev/v1";
const headers = { Authorization: `Bearer ${process.env.BLUEPING_API_KEY}`, "Content-Type": "application/json" };
const call = async (method, path, body, extra = {}) =>
(await fetch(API + path, { method, headers: { ...headers, ...extra }, body: body && JSON.stringify(body) })).json();
const TRAVELERS = {
// the tag each traveler books with, and where their reminders go
maria: "maria.lopez@marlow.example",
tom: "tom.reyes@marlow.example",
};
const AIRLINES = ["aerolinea.example"]; // the airlines and hotels you book with: only they move a trip
const inbox = await call("POST", "/inboxes", { client_id: "travel-desk", display_name: "Marlow Travel" });
const user = inbox.address.split("@")[0];
const page = await call("GET", `/inboxes/${inbox.id}/messages?limit=50`);
for (const message of page.data.reverse()) {
if (message.direction !== "in" || message.labels.includes("trip:filed")) continue;
const tag = message.to.map((to) => to.address).find((address) => address.startsWith(`${user}+`))?.split("@")[0].split("+")[1];
const traveler = TRAVELERS[tag];
if (!traveler) {
console.log("no traveler for", message.id);
continue;
}
const text = message.extracted_text;
const reference = text.match(/Booking reference:\s*([A-Z0-9]{6})/)?.[1];
const labels = ["trip:filed", ...(reference ? [`ref:${reference.toLowerCase()}`] : [])];
const proven = message.auth.verdict === "pass" && AIRLINES.includes(message.from.address.split("@")[1]);
if (/schedule change/i.test(message.subject) && proven) {
const note = "Your flight changed. The airline's email is below; reply here if the new time doesn't work.";
await call("POST", `/messages/${message.id}/forward`, { to: traveler, text: note }, { "Idempotency-Key": `change-${message.id}` });
console.log("forwarded change to", traveler);
}
const departure = text.match(/Departure:\s*(\S+)/)?.[1];
if (departure) {
const remind = new Date(new Date(departure).getTime() - 24 * 3_600_000);
if (remind.getTime() > Date.now() + 5 * 60_000) {
const draft = await call(
"POST",
`/inboxes/${inbox.id}/drafts`,
{ to: traveler, subject: `Check-in reminder: ${message.subject}`, text: `Online check-in opens soon. Booking reference: ${reference ?? "in the airline email"}.`, send_at: remind.toISOString() },
{ "Idempotency-Key": `remind-${message.id}` },
);
console.log("reminder", draft.id, "for", traveler, "at", draft.send_at);
}
}
await call("PATCH", `/messages/${message.id}`, { add_labels: labels });
}A booking reference often sits next to the word confirmation, so it may also show up in the message's codes: Blueping reads it as a code because it looks like one. The program reads the reference from the text, which is where it belongs.
The reminder's Idempotency-Key is tied to the confirmation's id, so a pass that runs twice schedules one reminder. Drafts has every field a scheduled send takes.
A travel desk run from an MCP client
A travel coordinator can hand the inbox to a model in Claude or Cursor through the MCP server, and keep the bookings themselves in the airline's and the hotel's own sites.
Check marlow-travel for new airline and hotel emails. For each booking confirmation, schedule a check-in reminder to the traveler 24 hours before departure. For schedule changes, forward the email to the traveler with one line on what changed, and move their reminder to the new time.| Tool | What it does here |
|---|---|
list_messages | Reads new booking mail, with the tagged to that names the traveler. |
read_attachment | Reads a hotel's PDF or a calendar .ics as text. |
create_draft | Schedules the check-in reminder with send_at. |
update_draft | Moves a reminder when the flight moves. |
forward_email | Passes a schedule change to the traveler with a note. |
label_thread | Files every email of a trip under its reference. |
Scheduled reminders leave by themselves, so the tools ask the model to check with you before it schedules one, and list_drafts with status scheduled shows every reminder waiting.
Pass on schedule changes as they land
A schedule change is the one email that can't wait for the next pass. Subscribe to email.received, check the signature as Webhooks shows, and pass each event to the handler below, which forwards changes the moment they arrive.
# changes_hook.py: the part of your webhook server that forwards schedule changes at once.
# Check the Blueping-Signature header before calling handle(): /docs/webhooks#verify has the code.
import os
import requests
API = "https://blueping.dev/v1"
TRAVELERS = {"maria": "maria.lopez@marlow.example", "tom": "tom.reyes@marlow.example"}
AIRLINES = ["aerolinea.example"] # only these senders move a trip
session = requests.Session()
session.headers["Authorization"] = f"Bearer {os.environ['BLUEPING_API_KEY']}"
def handle(event):
if event["type"] != "email.received":
return
message = event["data"]["message"]
proven = message["auth"]["verdict"] == "pass" and message["from"]["address"].split("@")[1] in AIRLINES
if "schedule change" not in message["subject"].lower() or not proven:
return
user = event["data"]["inbox"]["address"].split("@")[0]
tags = [to["address"].split("@")[0].split("+", 1)[1] for to in message["to"] if to["address"].startswith(user + "+")]
traveler = TRAVELERS.get(tags[0]) if tags else None
if traveler:
note = "Your flight changed. The airline's email is below; reply here if the new time doesn't work."
# The same key and words as the desk's forward: the traveler gets one email.
session.post(
f"{API}/messages/{message['id']}/forward",
json={"to": traveler, "text": note},
headers={"Idempotency-Key": f"change-{message['id']}"},
)
print("forwarded change to", traveler)The handler and the desk forward under the same Idempotency-Key, so whichever runs second sends nothing: the key already holds the first forward, for 24 hours.
Travel scams and personal data
Travel mail carries names, dates, booking references and sometimes passports, and scammers know it.
Fake cancellations
"Your flight is canceled, rebook here" forged in an airline's name fails the airline's DMARC policy, and is turned away or held as unauthenticated. A lookalike domain proves only itself, so the desk forwards a change only from the airlines it lists, with auth.verdict: pass, and a lookalike's email never reaches a traveler.
Payment details stay out of email
The agent pays on the airline's or the hotel's own site. An email that asks to confirm card details next to a link is what phishing looks like, and the agent's own outbound mail is refused with 422 content_refused if it ever reads that way.
A tagged address sorts, the sender's proof decides
Anyone who learns marlow-travel+maria@blueping.dev can write to it. The tag sorts mail, and the sender's DMARC result decides whether the agent acts on it.
Trips leave the inbox
Mail is kept in the European Union: 90 days on Free, and until you delete it on a paid plan. Deleting a trip's threads after the traveler is home removes boarding passes and itineraries at once.
What 200 trips a month need
Two hundred trips bring about five emails each, a thousand a month into one inbox. The agent sends a reminder per trip and forwards some changes, about 400 sends, to travelers who become known recipients after their first trip.
Developer fits this setup: 50 inboxes, 15,000 sends a month and 1,500 a day, and 15 GB of storage, for $19 a month, or $180 a year. Its mail goes to people outside your company without a footer. Free runs the same flow at no cost, with a one-line footer on each email, which suits a trial.
Receiving is never counted, and each recipient of a send counts once. Every limit is on Limits, and every price on Pricing.
The API referenceWebhooksThe MCP serverBlueping vs NylasAll use cases
Last checked against the API on .
Questions about travel email
What builders ask before they set it up. The docs answer the rest.
Why tags instead of one inbox per traveler?
One inbox holds every trip, so the agent reads one place and the plan's inbox count stays small. The tag in to says whose trip each email belongs to.
Do airlines accept a blueping.dev address?
It is an ordinary email address, so a booking form takes it like any other, tag included. Some forms refuse the + sign; give those the inbox's plain address and sort by the booking reference instead.
Can the agent check the traveler in?
Check-in happens on the airline's site, with the agent's browser tool and the booking reference from the email. The inbox gives it the reminder, the reference and the link.
Why does a booking reference show up in codes?
codes holds 4 to 8 capitals and digits near words such as confirmation, so a reference like QX7P2L can be one. Read references from the text; use codes for sign-in codes.
How are changes tracked?
Each confirmation is labeled with its reference, a change threads with the booking when the airline answers in the same conversation, and labels=ref:qx7p2l lists a trip's mail.
What about hotel and train confirmations?
They arrive the same way, at the tagged address the agent booked with, and their PDFs and calendar files read as text. The program files any email with a booking reference and a departure time; your model reads each provider's own layout.
Can travelers write to the desk?
Yes. A traveler who answers a forward writes to the desk's address, the agent answers in that thread, and that traveler never counts as a new recipient again.
More agents at work
- Books Dana's meetings,dana-scheduling
@blueping.dev. The meetings a trip is for, scheduled by email with everyone in the thread. - Assists Olderwick's partners,olderwick-assistant
@blueping.dev. One person's travel and the rest of their forwarded mail. - Answers Larkspur's order emails,larkspur-orders
@blueping.dev. Confirmations and status updates from shops, read the same way.
Let your agent read every booking
Confirmations filed, changes passed on, reminders sent.