# Hotel Guest Request Router (`cemalettindidvn/hotel-guest-request-router`) Actor

Route hotel and restaurant guest requests to the right team, set priority and build a shift handover list.

- **URL**: https://apify.com/cemalettindidvn/hotel-guest-request-router.md
- **Developed by:** [Cemalettin Aksunar](https://apify.com/cemalettindidvn) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### Hotel Guest Request Router: one handover list for reception, restaurant and group bookings

Guest questions in a small hotel arrive through WhatsApp, WeChat, email and phone, and they often stay on whoever's personal phone answered first. This Actor takes a plain list of open guest requests and returns one table: which team owns each request, which ones are urgent, and what the next shift has to pick up.

#### What the Actor does

- Routes every request to a team by topic: booking and arrival to **Reception**, group bookings to the **Group coordinator**, table requests to the **Restaurant**, payment questions to the **Front office manager**.
- Marks a request **high** priority when the guest arrives within the arrival window (48 hours by default) or when it has been waiting longer than the maximum waiting time (24 hours by default), and says why in `reason`.
- Flags every open request for the shift handover and adds a security note to payment requests.
- Writes the routed list to the run's dataset (CSV, JSON, Excel export) and a `HANDOVER` record with open and high-priority counts per team.

#### How to use Hotel Guest Request Router

1. Open the Actor and paste your requests into **Guest requests** as a JSON array. Each request can have `guest`, `country`, `channel`, `topic`, `arrivalDate`, `receivedAt`, `status` and `note`.
2. Adjust **Arrival window** and **Max waiting time** if your hotel works with different limits.
3. Optionally set **Reference time** to check the list against a fixed moment.
4. Click **Start**. The handover list appears in the **Output** tab and can be downloaded or fetched through the API.

#### Example result

Input: five requests from guests in China, Turkey and Germany, checked on 17 November 2026 at 12:00 UTC.

| team | priority | reason | guest | country | topic | handover |
|---|---|---|---|---|---|---|
| Front office manager | closed | | Anna Keller | DE | payment | false |
| Group coordinator | high | waiting 27h | Tour group (organizer Chen) | CN | group | true |
| Reception | high | waiting 48h | Zhang family | CN | booking | true |
| Reception | high | arrival in 12h | Li Wei | CN | arrival | true |
| Restaurant | normal | | Mehmet Yilmaz | TR | restaurant | true |

`HANDOVER`: `{"total":5,"openForHandover":4,"byTeam":{"Group coordinator":{"open":1,"high":1},"Reception":{"open":2,"high":2},"Restaurant":{"open":1,"high":0},"Front office manager":{"open":0,"high":0}}}`

#### Limitations

- The Actor does not connect to messengers, phone lines or booking systems. It only organises the list you give it.
- Topics outside the five listed go to Reception.
- Times are compared in UTC.

***

### Otel İşletmeleri Çinli Misafirlerle Daha Düzenli Nasıl İletişim Kurabilir?

Bir rezervasyonun en zor kısmı bazen oda hazırlamak değil, misafirin son sorusuna zamanında ulaşmaktır. Berlin'deki otelimde Çin'den gelen konuklarla görüşürken önce hangi kanaldan rahatça haberleşebileceğimizi belirliyorum. Gerektiğinde Çin numarası <https://didvirtualnumbers.com/tr/virtual-number-of-china/> seçeneğini inceliyorum, ancak yeni bir hat açmadan önce o hattı kimin takip edeceğini düşünüyorum. Misafir için asıl önemli olan yanıt alabilmek.

![](https://api.apify.com/v2/key-value-stores/SBmwmE5dI1HPacfKT/records/image2.png)

#### Rezervasyondan önce tek bir temas noktası belirlemek

Çin'den gelen bir aile uçuş saati değiştiğinde, grup organizatörü ise oda dağılımı kesinleştiğinde yeniden yazabiliyor. Görüşmeler kişisel telefonlarda kalırsa bilgi eksilebilir. Ben rezervasyon onayında işletmenin iletişim kanalını açıkça belirtiyor, gelen notları ekibin erişebileceği iş kayıtlarında tutuyorum. Restoran için gelen masa talebini de otel mesajlarından ayırıyorum.

Yerel bir iletişim yolu açılacaksa +86 numara kullanmanın misafir açısından uygun olup olmadığını sorarım. Ülke kodu tek başına düşük arama ücreti veya kesintisiz bağlantı anlamına gelmiyor. Hattın hangi ülkelerden aranabildiğini, sesli görüşme ve mesaj özelliklerini sağlayıcıdan öğrenmek gerekiyor. Bunu misafire açıkça anlatırım.

![](https://api.apify.com/v2/key-value-stores/SBmwmE5dI1HPacfKT/records/image1.png)

#### Sanal hat, mesajlar ve ekip düzeni

Bazı dönemlerde Çin'den gelen talepleri başka bir iş kanalında toplamak yararlı olabilir. Bir Çin sanal numara hizmetini değerlendirirken önce aramaların resepsiyona yönlendirilip yönlendirilemeyeceğine bakıyorum. Vardiya değişse de konuşma kaybolmamalı. Başka bir seçenek için kullanılan Çin’in numarası ifadesi ise bana hizmetin özelliklerini anlatmaya yetmez; numaranın kullanım koşullarını ayrıca kontrol ederim.

İşleyişte şu kuralları uyguluyorum:

- İlk görüşmede misafirin tercih ettiği kanalı ve yanıt beklediği konuyu kaydediyorum.
- Grup rezervasyonlarında organizatörle konuşacak sorumlu çalışanı belirliyorum.
- Restoran sorularını masa ve menüyle ilgilenen ekibe aktarıyorum.
- Vardiya sonunda açık kalan talepleri kısa notlarla devrediyorum.

![](https://api.apify.com/v2/key-value-stores/SBmwmE5dI1HPacfKT/records/image3.png)

Böylece misafir aynı şeyi tekrar anlatmıyor. Mesaj güvenliği de önemli: Kimlik veya ödeme bilgilerini açık erişimli numara hizmetlerinde paylaşmıyorum. Farklı Çin numaraları arasında seçim yapmam gerekirse sadece SMS alıp almadıklarını değil, yanıt gönderme ve daha sonra yeniden ulaşılma imkânını da inceliyorum.

#### Misafir daha gelmeden güven oluşturmak

İletişim kanalı iyi çalıştığında küçük değişiklikleri yönetmek kolaylaşıyor. Geç giriş yapacak bir misafir saatini bildirebiliyor; resepsiyon da gereken hazırlığı önceden yapabiliyor. Burada asıl farkı yaratan yeni bir telefon hizmetinden çok, ekibin aynı bilgiyi görmesi ve sorumluluğu paylaşması. Çinli konuklara ulaşırken alışkanlıklarını sormayı, açık yanıt vermeyi ve konuşmanın devam edeceği kanalı korumayı tercih ediyorum. Bu özen konaklama boyunca hissediliyor.

# Actor input Schema

## `requests` (type: `array`):

One object per request: guest, country, channel, topic (booking, arrival, group, restaurant, payment, other), arrivalDate (YYYY-MM-DD), receivedAt (ISO date-time), status (open or done), note. Empty input runs the built-in example.

## `arrivalWindowHours` (type: `integer`):

Open requests for guests arriving within this many hours get high priority.

## `maxOpenHours` (type: `integer`):

Open requests older than this get high priority.

## `now` (type: `string`):

Optional ISO date-time used instead of the current time, for reproducible runs.

## Actor input object example

```json
{
  "requests": [
    {
      "guest": "Li Wei",
      "country": "CN",
      "channel": "WeChat",
      "topic": "arrival",
      "arrivalDate": "2026-11-18",
      "receivedAt": "2026-11-17T08:10:00Z",
      "status": "open",
      "note": "Flight moved to 23:40, late check-in"
    },
    {
      "guest": "Zhang family",
      "country": "CN",
      "channel": "email",
      "topic": "booking",
      "arrivalDate": "2026-12-02",
      "receivedAt": "2026-11-15T12:00:00Z",
      "status": "open",
      "note": "Asks for connecting rooms"
    },
    {
      "guest": "Tour group (organizer Chen)",
      "country": "CN",
      "channel": "phone",
      "topic": "group",
      "arrivalDate": "2026-11-25",
      "receivedAt": "2026-11-16T09:30:00Z",
      "status": "open",
      "note": "Final room split for 18 guests"
    },
    {
      "guest": "Mehmet Yilmaz",
      "country": "TR",
      "channel": "WhatsApp",
      "topic": "restaurant",
      "arrivalDate": "",
      "receivedAt": "2026-11-17T10:05:00Z",
      "status": "open",
      "note": "Table for 6, Friday 20:00"
    },
    {
      "guest": "Anna Keller",
      "country": "DE",
      "channel": "email",
      "topic": "payment",
      "arrivalDate": "2026-11-20",
      "receivedAt": "2026-11-16T18:20:00Z",
      "status": "done",
      "note": "Invoice sent"
    }
  ],
  "arrivalWindowHours": 48,
  "maxOpenHours": 24
}
```

# Actor output Schema

## `requests` (type: `string`):

Requests with team, priority and handover flag (dataset items).

## `handover` (type: `string`):

Open and high-priority requests per team.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "requests": [
        {
            "guest": "Li Wei",
            "country": "CN",
            "channel": "WeChat",
            "topic": "arrival",
            "arrivalDate": "2026-11-18",
            "receivedAt": "2026-11-17T08:10:00Z",
            "status": "open",
            "note": "Flight moved to 23:40, late check-in"
        },
        {
            "guest": "Zhang family",
            "country": "CN",
            "channel": "email",
            "topic": "booking",
            "arrivalDate": "2026-12-02",
            "receivedAt": "2026-11-15T12:00:00Z",
            "status": "open",
            "note": "Asks for connecting rooms"
        },
        {
            "guest": "Tour group (organizer Chen)",
            "country": "CN",
            "channel": "phone",
            "topic": "group",
            "arrivalDate": "2026-11-25",
            "receivedAt": "2026-11-16T09:30:00Z",
            "status": "open",
            "note": "Final room split for 18 guests"
        },
        {
            "guest": "Mehmet Yilmaz",
            "country": "TR",
            "channel": "WhatsApp",
            "topic": "restaurant",
            "arrivalDate": "",
            "receivedAt": "2026-11-17T10:05:00Z",
            "status": "open",
            "note": "Table for 6, Friday 20:00"
        },
        {
            "guest": "Anna Keller",
            "country": "DE",
            "channel": "email",
            "topic": "payment",
            "arrivalDate": "2026-11-20",
            "receivedAt": "2026-11-16T18:20:00Z",
            "status": "done",
            "note": "Invoice sent"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("cemalettindidvn/hotel-guest-request-router").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "requests": [
        {
            "guest": "Li Wei",
            "country": "CN",
            "channel": "WeChat",
            "topic": "arrival",
            "arrivalDate": "2026-11-18",
            "receivedAt": "2026-11-17T08:10:00Z",
            "status": "open",
            "note": "Flight moved to 23:40, late check-in",
        },
        {
            "guest": "Zhang family",
            "country": "CN",
            "channel": "email",
            "topic": "booking",
            "arrivalDate": "2026-12-02",
            "receivedAt": "2026-11-15T12:00:00Z",
            "status": "open",
            "note": "Asks for connecting rooms",
        },
        {
            "guest": "Tour group (organizer Chen)",
            "country": "CN",
            "channel": "phone",
            "topic": "group",
            "arrivalDate": "2026-11-25",
            "receivedAt": "2026-11-16T09:30:00Z",
            "status": "open",
            "note": "Final room split for 18 guests",
        },
        {
            "guest": "Mehmet Yilmaz",
            "country": "TR",
            "channel": "WhatsApp",
            "topic": "restaurant",
            "arrivalDate": "",
            "receivedAt": "2026-11-17T10:05:00Z",
            "status": "open",
            "note": "Table for 6, Friday 20:00",
        },
        {
            "guest": "Anna Keller",
            "country": "DE",
            "channel": "email",
            "topic": "payment",
            "arrivalDate": "2026-11-20",
            "receivedAt": "2026-11-16T18:20:00Z",
            "status": "done",
            "note": "Invoice sent",
        },
    ] }

# Run the Actor and wait for it to finish
run = client.actor("cemalettindidvn/hotel-guest-request-router").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "requests": [
    {
      "guest": "Li Wei",
      "country": "CN",
      "channel": "WeChat",
      "topic": "arrival",
      "arrivalDate": "2026-11-18",
      "receivedAt": "2026-11-17T08:10:00Z",
      "status": "open",
      "note": "Flight moved to 23:40, late check-in"
    },
    {
      "guest": "Zhang family",
      "country": "CN",
      "channel": "email",
      "topic": "booking",
      "arrivalDate": "2026-12-02",
      "receivedAt": "2026-11-15T12:00:00Z",
      "status": "open",
      "note": "Asks for connecting rooms"
    },
    {
      "guest": "Tour group (organizer Chen)",
      "country": "CN",
      "channel": "phone",
      "topic": "group",
      "arrivalDate": "2026-11-25",
      "receivedAt": "2026-11-16T09:30:00Z",
      "status": "open",
      "note": "Final room split for 18 guests"
    },
    {
      "guest": "Mehmet Yilmaz",
      "country": "TR",
      "channel": "WhatsApp",
      "topic": "restaurant",
      "arrivalDate": "",
      "receivedAt": "2026-11-17T10:05:00Z",
      "status": "open",
      "note": "Table for 6, Friday 20:00"
    },
    {
      "guest": "Anna Keller",
      "country": "DE",
      "channel": "email",
      "topic": "payment",
      "arrivalDate": "2026-11-20",
      "receivedAt": "2026-11-16T18:20:00Z",
      "status": "done",
      "note": "Invoice sent"
    }
  ]
}' |
apify call cemalettindidvn/hotel-guest-request-router --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,cemalettindidvn/hotel-guest-request-router"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/KFaMjeGuGqQNo8Jwa/builds/LCknNKkFkOEcgzJ9F/openapi.json
