Skip to content
Jossue Sarango
All projects

Reunion: Group Travel Agent

I built the planning pipeline and memory layer for an iMessage agent that turns group-chat trip talk into a dated itinerary, with three teammates at the AWS Agentic AI Hackathon in San Francisco.

AWS Agentic AI Hackathon · San Francisco, CA

  • TypeScript
  • RocketRide
  • XTrace
  • Butterbase
  • Neo4j
  • iMessage

The Challenge

Friend groups plan trips in the group chat, and the chat is a terrible place to keep a plan. Who is in, which weekends work, who is vegetarian, what the budget is: all of it ends up scattered across dozens of messages until somebody gives up or becomes the unpaid trip manager. Most travel tools assume one person running a search. The problem we picked was the group, so we framed it as a coordination-memory problem rather than a travel-search problem.

The brief at the AWS Agentic AI Hackathon was to prove one visible loop: travel intent appears in chat, the system extracts the trip and the constraints, memory and application state are updated, and the agent posts a useful next step back into the same chat. That loop had to wire together five sponsor tools end to end, and I built it with three teammates: Pablo, Kevin, and Ethan. Pablo owned the on-device intent gate, Kevin the calendar and availability service, and Ethan the iMessage channel. I owned the pipeline spine, the RocketRide extraction and itinerary steps, the XTrace memory, the Butterbase state, and the Neo4j culture graph.

Reunion planning a trip over iMessage

The Design

The first call was the surface. The agent stays inside iMessage through Photon's Spectrum library, running in local mode, which reads the Messages database on one Mac with no network hop. The alternatives were Spectrum's cloud and dedicated modes, which add rich cards and effects. We turned them down because the product is supposed to behave like the friend who remembers everything without dominating the conversation, so plain text and a link preview cost us almost nothing, and local mode meant one Mac, no relay, and no tokens to expire mid-demo. We had started with WhatsApp in the planning docs and changed the channel to iMessage before building.

Next, the pipeline. A message arrives, an on-device gate decides whether it is worth waking anything, the extractor pulls out destination, dates, constraints and preferences, a router picks a path, the planner combines the message with what memory already knows, and one next action goes back to the chat. We scoped V1 to the destination-known path (known where, then who, then when) because supporting destination-known, time-known and open-ended trips all at once would have spread us too thin.

The gate matters most for privacy and noise. Sending every group message to a cloud model is both invasive and noisy, and keyword rules alone are brittle, so the gate runs on the Mac and only messages that pass it reach RocketRide. It looks at a sliding window of recent messages instead of a single one, because intent builds across turns ("we should go somewhere", then "I'm down", then "where though"). Our decision records disagree on the exact runtime: one commits to CoreML and Swift, another chose in-process ONNX over a Swift sidecar to avoid a second process that could crash mid-demo. What shipped in the main pipeline was a heuristic gate behind a stable classify seam, and Pablo built a Swift sidecar that uses Apple's on-device model.

Memory and state are deliberately separate. XTrace holds beliefs about people and the group, with belief revision: when someone changes their availability, the newer fact supersedes the stale one, so the agent answers "what is true now" instead of retrieving similar old messages. Butterbase holds the system of record, meaning trips, participants, polls and the current plan. I kept the boundary strict so that belief revision never tangled with the trip row. The Neo4j culture graph maps each friend's heritage and cuisine to food picks for the destination, which is what lets the reply feel personal.

The hackathon cover slide
The agent pipeline

The Build

The project was TypeScript throughout, and almost every sponsor tool was new to me. The decision that let four people work in parallel was putting every external tool behind one interface with an in-memory stub. The memory store, the state store, the culture graph, the calendar and the extractor each have a working stub, and every layer degrades back to its stub if the live service fails or times out. Early on we could already run the whole loop with npm run demo, and then swap live services in one at a time.

I wired RocketRide in as the visible workflow layer instead of a single opaque prompt, so judges could see the extraction and itinerary steps as a pipeline. The extraction step takes the message window as a plain-text transcript and returns a trip signal; I added parsing for the envelope formats RocketRide returns and for JSON wrapped in markdown code fences. I also wrote real adapters for XTrace and Butterbase, made the Butterbase provisioning additive so it merges with the shared live schema, and fixed a hang where a failed RocketRide call would not fall back.

Partway through the build we changed the final output. We had planned a date poll as the first useful artifact, because a full itinerary is downstream of the group's commitment. Once Kevin's calendar service shipped as an HTTP endpoint that returns the windows when everyone is free, it became possible to pick the best window automatically and render a plain-text itinerary instead. The calendar contract stayed availability-only, and the demo used mocked calendar data and preloaded group context, because multi-user OAuth was too risky for a hackathon timeline.

Terminal output from a run

The Results

We demoed a working end-to-end agent at the Agentic AI Hackathon in San Francisco. Someone drops "we should go to Mexico City in July" into the chat, and Reunion extracts the trip, folds in each person's constraints (weekends-only, vegetarian), and posts back a dated itinerary. When someone changes their availability, it revises its memory. The repository includes contract validators, fixtures and tests around each layer.

The honest limits: the demo ran on mocked calendar data and seeded context, there is no booking or payment, and only the destination-known path exists. The code is on GitHub at pleyva2004/Reunion.

What I Learned

  • A cheap on-device gate before any cloud call is what makes an always-listening chat agent usable — it wakes on intent instead of reacting to every message.
  • Separating durable memory (XTrace) from application state (Butterbase) kept "what we believe about people" from tangling with "the current trip record" — and made belief revision a first-class feature.
  • Stubbing every external tool behind one interface let the team build separate layers in parallel and still demo the full loop from day one.

Let's make something amazing.