Skip to main content

Concierge

A personal assistant that books travel and manages a calendar through the person's own accounts, and never sees their credentials.

ApplicationPlanned
This example is planned. Not built yet. This page is the specification for the example.
Works with
JavaScript / TypeScriptNext.jsOpenAI Agents SDKMCP TypeScript SDK
Stack
Next.js app for phones, Node.js agent on the OpenAI Agents SDK, two sample outside services

Scenario​

A person tells the assistant: "Book me a flight to Lisbon on Friday and put it in my calendar." The assistant uses the person's calendar account and travel account. Both are linked once, in LumoAuth. A purchase needs a tap on the phone. The person can see every connected account and remove the assistant at any time.

People and agents​

WhoRole in the applicationIdentity in LumoAuth
The personGives instructions and approves purchases.A user who signs in with a passkey, with a magic link as the fallback.
ConciergePlans and acts.A registered agent that acts for the person, with a budget.
Calendar and travel servicesTwo outside APIs.Two connections in the token vault.

Flows​

FlowWhat happensWhat LumoAuth does
Sign-inThe person signs in with a passkey.Hosted sign-in.
ConnectThe person links the calendar account.The hosted connections page runs the consent of the outside service and stores the tokens.
ReadThe assistant reads the calendar.Hands the agent a short-lived token for that connection and that person.
BuyThe assistant wants to book the flight.Sends an approval request to the phone, with the price in the request.
ToolsThe assistant calls the travel tools through an MCP server.The MCP client identifies itself with a metadata document.
ControlThe person opens "My agents" and removes the assistant.Revokes the delegation. The next call is refused.

Parts​

PartBuilt withJob
AppNext.js, @lumoauth/nextjsChat, connections, the approval state.
AgentOpenAI Agents SDK, @lumoauth/agentThe agent loop.
Travel tools@lumoauth/mcpAn MCP server that calls the sample travel service with a vault token.
Sample servicesNode.jsA calendar and a travel API, each with its own OAuth server, for local runs.

What the seed script creates​

  • An application for the app.
  • The agent, with a daily budget.
  • Two connections that point at the sample services.
  • An MCP server registration.

Walkthrough​

  1. Sign in with a passkey.
  2. Link the calendar.
  3. Ask for the flight, and approve the purchase on the phone.
  4. Ask for a second purchase and deny it.
  5. Remove the assistant, and ask again.

Before you run it​

  • The approval request shows the text that the agent sends. LumoAuth does not enforce a spending limit for each person.
  • Check that your plan includes agent connections and acting for users in the plans matrix.