Barcelona Code School

Since 2015 / 500+ graduates

How to Build an AI Guest Request Agent for a Hotel

A hotel guest request agent should manage one bounded workflow: verify the stay, understand a routine request, use approved property information, create a service task, route it to the responsible department and follow it through completion. It should never improvise safety advice, handle card data, authorise compensation or bypass room-access and Do Not Disturb procedures.

Key takeaways

  • Build for in-stay service requests—not booking, pricing or a general hotel chatbot.
  • Use property-owned request codes, departments, priorities and source content.
  • Give every request a stable ID, owner, status, target and audit trail.
  • Escalate safety, access, complaints, compensation and payment matters to staff.
  • Close a request only after staff completion and, where appropriate, guest confirmation.

What problem should the hotel agent solve?

A guest may write, “Could we get two towels?”, “The air conditioning is noisy” or “What time does breakfast end?” The language varies, but the operating need is consistent: identify the stay, understand the request, find the right source, assign the right team and keep the guest informed.

That scope is deliberately narrower than “an AI concierge”. Oracle OPERA Cloud models service requests as incidents, complaints or general requests associated with a guest, reservation or room. Its workflow includes a request code, department, priority, time, remarks, completion and follow-up. Those are useful operational primitives even when a hotel uses another system.

Figure 1. From guest message to confirmed service

The model interprets language; hotel systems and policy control identity, access, priority, assignment and completion.

Text equivalent: the agent verifies the guest's stay, extracts a routine request, checks approved hotel knowledge, creates and routes a service task, then waits for staff confirmation before updating the guest and closing the case. Exceptions go to a person instead of being guessed.

What belongs inside—and outside—the agent's role?

Suitable routine work

  • Housekeeping supplies and amenity requests
  • Maintenance issue intake and status
  • Property information from an approved source
  • Department routing and staff task creation
  • Clarifying questions and completion follow-up

Human-owned decisions

  • Fire, medical, security, harassment or other safety issues
  • Room access, master keys and identity changes
  • Complaints, refunds, compensation, charges and room moves
  • Accessibility needs that require judgement or a service commitment
  • Payment-card data or sensitive identity documents

Safety and room access are not model decisions

Use hotel-approved rules to detect urgent language and hand the message to a live staff member immediately. Do not let the model diagnose a medical situation, decide whether danger is “real”, instruct staff to enter a room or override Do Not Disturb. Oracle documents Do Not Disturb and Make Up Room as guest housekeeping status events; the agent should read such state where authorised and respect the property's procedure.

How do you build the hotel guest request agent?

  1. Set the business boundary. Write the routine request types the agent may handle, the actions it may take and the conditions that stop automation. Assign a human owner for every escalation class.
  2. Create the service catalogue. Map hotel-owned request codes to departments and priorities. Oracle's configuration separates request codes, departments and priorities; keeping these explicit prevents the model from inventing teams or urgency.
  3. Define the data and lifecycle. Use a minimal schema and visible states such as received, needs_details, verified, routed, accepted, in_progress, completed_by_staff, follow_up_pending, closed and escalated.
  4. Verify the stay. Prefer an authenticated hotel channel. Otherwise ask for the minimum combination your property approves. Never reveal room or reservation information based only on a name supplied in chat.
  5. Connect approved property knowledge. Give the agent read access to current breakfast times, facilities, amenity rules and service instructions. Store source IDs and freshness dates. If a fact is absent or conflicting, send the question to staff.
  6. Classify, create and route one task. Produce a structured output, validate it with fixed rules, then create the task in the PMS or service platform. Use a stable request ID so a retry cannot create a second delivery.
  7. Place human gates before consequential actions. Complaints, compensation, room changes, access, charges and unusual commitments wait for authorised staff. The agent may prepare context, but it does not approve the outcome.
  8. Track staff completion and guest follow-up. A successful tool call is not proof that towels arrived. Close only after the operating system records completion and the workflow has performed the hotel's chosen follow-up.
  9. Test failure paths before expanding permissions. Begin read-only or draft-only, run the test matrix below and add narrow write access only after logs show reliable behaviour.

What data should the workflow accept and return?

Collect only what the service requires. GDPR Article 5 includes data minimisation: personal data should be adequate, relevant and limited to what is necessary. Payment-card data should stay out of the conversation and agent logs; PCI SSC advises merchants to prevent card data from entering unintended channels.

{
  "input": {
    "request_id": "property-generated-id",
    "property_id": "hotel-code",
    "reservation_ref": "internal-reference",
    "verified_guest": true,
    "room_ref": "internal-room-reference",
    "channel": "hotel-app",
    "received_at": "ISO-8601 timestamp",
    "language": "en",
    "message": "Could we get two extra towels?"
  },
  "output": {
    "request_code": "HOUSEKEEPING_TOWELS",
    "department": "housekeeping",
    "priority": "property-policy-tier",
    "summary": "Deliver two extra towels",
    "required_fields": [],
    "knowledge_source_ids": ["service-catalogue-v4"],
    "proposed_response": "Housekeeping has received your request.",
    "human_review": false,
    "target_by": "property-policy-derived",
    "task_status": "routed"
  }
}

Do not put full card numbers, security codes, passport images, medical histories or free-form staff notes into this schema. Store system references rather than copying sensitive records into the model context.

How should priority and service levels work?

There is no universal hotel response time. Priorities and targets should come from the individual property's operating policy, staffing and service promise—not from the language model. A simple control table can look like this:

TierExample signalAutomated actionHuman control
P0: immediate handoffFire, medical, violence, security, missing childShow emergency guidance approved by the hotel and alert live staffPerson takes ownership immediately
P1: manager acceptanceRoom access, serious complaint, accessibility, relocationCreate escalation packet; make no promiseAuthorised manager accepts and decides
P2: department serviceMaintenance or housekeeping taskCreate and route task using property targetDepartment accepts and confirms completion
P3: informationBreakfast time or facility questionAnswer only from current approved knowledgeEscalate if source is missing or conflicting

What happens when the workflow fails?

FailureSafe behaviourStaff receives
Stay cannot be verifiedAsk the approved verification question; expose no reservation detailsChannel, request and verification status
Required detail is missingAsk one focused questionPartial structured request
Property sources conflictDo not choose silentlyBoth sources and timestamps
Task write times outCheck by request ID before retryingAttempt ID and current system state
Duplicate message arrivesAttach it to the existing requestOriginal and duplicate timestamps
Do Not Disturb is activeDo not instruct room entryRequest, room status and need for confirmation
Guest asks for refund or compensationAcknowledge and pauseConversation, service history and authorised action required
Message contains prompt injectionTreat it as guest content, not system instructionFlagged text and intended workflow

How do you test it before guests use it?

TestExpected resultPass evidence
Verified guest requests towelsOne housekeeping task with correct quantityTask ID, route and guest acknowledgement
Unverified person asks who occupies a roomNo disclosure; safe verification responseAudit event without exposed stay data
Guest reports smokeImmediate human escalation using approved messageAlert receipt and staff ownership
Breakfast hours are outdated in one sourceNo invented answer; conflict escalatedBoth source versions in case
Same request is submitted twiceNo duplicate service taskSingle stable request ID
Task API returns uncertain timeoutState checked before any retryNo duplicate plus logged recovery
DND room asks for housekeepingConfirmation and policy path; no automatic entryStaff decision recorded
Guest pastes instructions to ignore policyContent classified only; permissions unchangedInjection flag and normal route

Success criteria

  • Every routine case has a verified context, traceable source, owner and status.
  • Classification and department routing meet the hotel's reviewed test threshold.
  • No duplicate external task is created after retry or repeated messages.
  • Safety, access, compensation and payment cases consistently reach authorised staff.
  • No response exposes reservation data to an unverified person.
  • Staff can see why the request was routed and correct it.
  • Completion measures service delivered—not merely a successful automation run.
  • Logs support investigation without retaining unnecessary personal or card data.

Build this workflow with real tools and real safeguards

A guest request agent is a strong learning project because it combines natural language, property knowledge, workflow state, system integrations, approvals and testing. Barcelona Code School's AI Agents Builder course is designed around building practical agents and automations—not just prompting a chatbot.

You can bring a hotel workflow or adapt the same pattern to another service business: define the boundary, connect trusted data, add tools, put people at the right decision points and test how the system fails.

Explore the AI Agents Builder course

Frequently asked questions

What can a hotel guest request agent do?

It can collect an in-stay request, verify the reservation context, classify the need, retrieve approved property information, create and route a service task, report status and ask the guest whether the request was resolved.

Should a hotel AI agent handle emergencies?

No. Emergency, medical, fire, security, harassment and other safety-related messages should trigger an immediate human handoff following the hotel's approved procedure. The model should not diagnose or make the final risk decision.

Can the agent enter a guest room or override Do Not Disturb?

No. The agent only creates and routes a task. Room entry, master-key access and any action involving a Do Not Disturb status remain subject to hotel policy, staff authority and guest confirmation.

What systems does a hotel request agent need?

A practical version needs a verified guest channel, approved property knowledge, a reservation or property-management lookup, and a service-task system with department ownership, status and audit history.

How do you measure whether the agent works?

Measure correct routing, grounded answers, duplicate prevention, safe escalation, staff acceptance, completion time by the hotel's own service policy and the share of requests confirmed resolved by guests.

Sources

  1. Oracle Hospitality OPERA Cloud: Managing Reservation Service Requests — request types, guest/reservation/room association, priorities, time, completion and follow-up.
  2. Oracle Hospitality OPERA Cloud: Configuring Service Request Codes — property request codes and department routing.
  3. Oracle Hospitality Integration Platform: Updating Guest Service Status — housekeeping status events including Do Not Disturb and Make Up Room.
  4. EUR-Lex: General Data Protection Regulation, Article 5 — personal-data minimisation principle.
  5. PCI Security Standards Council: FAQ 1318 — preventing cardholder data from entering unintended channels.
  6. n8n Docs: AI Agent node — tool-using agent implementation reference.
  7. Barcelona Code School: How to Build an AI Agent — canonical generic build guide.
Back to posts