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.
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
| Who | Role in the application | Identity in LumoAuth |
|---|---|---|
| The person | Gives instructions and approves purchases. | A user who signs in with a passkey, with a magic link as the fallback. |
| Concierge | Plans and acts. | A registered agent that acts for the person, with a budget. |
| Calendar and travel services | Two outside APIs. | Two connections in the token vault. |
Flows
| Flow | What happens | What LumoAuth does |
|---|---|---|
| Sign-in | The person signs in with a passkey. | Hosted sign-in. |
| Connect | The person links the calendar account. | The hosted connections page runs the consent of the outside service and stores the tokens. |
| Read | The assistant reads the calendar. | Hands the agent a short-lived token for that connection and that person. |
| Buy | The assistant wants to book the flight. | Sends an approval request to the phone, with the price in the request. |
| Tools | The assistant calls the travel tools through an MCP server. | The MCP client identifies itself with a metadata document. |
| Control | The person opens "My agents" and removes the assistant. | Revokes the delegation. The next call is refused. |
Parts
| Part | Built with | Job |
|---|---|---|
| App | Next.js, @lumoauth/nextjs | Chat, connections, the approval state. |
| Agent | OpenAI Agents SDK, @lumoauth/agent | The agent loop. |
| Travel tools | @lumoauth/mcp | An MCP server that calls the sample travel service with a vault token. |
| Sample services | Node.js | A 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
- Sign in with a passkey.
- Link the calendar.
- Ask for the flight, and approve the purchase on the phone.
- Ask for a second purchase and deny it.
- 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.