酒店的平均分掩盖了背后的原因。原因都在文字里:人们提到的噪音、夸赞的早餐、提醒别人避开的房间。Booking.com 把住客评论分成喜欢和不喜欢两部分,但评论有成千上万条,又没法统计。Lovely Router 为你选定的酒店取回这些评论:发送酒店链接,每条评论返回一个 JSON 对象,按评论条数从预付费余额中计费。
交给你的 AI 智能体
把这段提示词复制到 Claude Code、Cursor、Codex 或任何编程智能体中。它会告诉智能体文档在哪里,以及如何使用你的 API 密钥。
从住客评论中找出他们喜欢和不满意酒店的地方. Use the Lovely Router data tools: each returns JSON and is billed per result.
- Docs (read first): https://lovelyrouter.com/docs/tools/find.md and https://lovelyrouter.com/docs/tools/run.md
- Plan first: POST https://lovelyrouter.com/v1/tools/suggest with `{"task": "<my task in plain words>"}` (free). It returns the tools to run in order, each with an example `input`, the `input_required` fields, an estimated cost and a ready-made `run` request. Replace the example values with my task's; if a field is unclear, read the tool with GET https://lovelyrouter.com/v1/tools/<id>. To browse instead, POST https://lovelyrouter.com/v1/tools/discover searches the catalog.
- Show me the plan and its estimated cost (`total_est_cost_usd`) before running anything large.
- Run: POST https://lovelyrouter.com/v1/tools/<id>/run with `{"input": {...}, "max_results": N}`. A 200 has the finished run with `items`; a 202 means it is still running, so poll the `poll` path until `status` is `succeeded`, `failed`, `timed_out` or `stopped`.
- Only delivered results are billed. Keep max_results small on the first run, check the output, then scale up.
- If you support MCP, connect https://lovelyrouter.com/mcp instead (Streamable HTTP, same key; https://lovelyrouter.com/docs/tools/mcp.md) and use suggest_tools, get_tool and run_tool.
- Auth: read my API key from the LOVELY_API_KEY environment variable and send it as `Authorization: Bearer $LOVELY_API_KEY`. Never print or commit the key. If it is not set, ask me to create one at https://lovelyrouter.com/app/keys.
- Billing is prepaid: every call is charged to my balance, so test with a small request before running anything large.
- Every docs page is plain Markdown; the full index is https://lovelyrouter.com/llms.txt.
My task: <the inputs (links, keywords or accounts) and how many results you need>工作原理
收集酒店链接
取你自己酒店的 Booking.com 页面,以及三四家竞争对手酒店的页面。
设置上限后运行工具
把链接发送到
POST /v1/tools/booking-reviews/run。在输入中设置maxReviewsPerHotel,并在请求体中设置max_results。运行会从你的余额中预留它的最高费用,并以 JSON 返回评论。统计主题
让模型给每段喜欢和不喜欢的文字打上主题标签,例如噪音、清洁、早餐和员工,再按酒店、月份和旅客类型统计数量。
一次请求获取酒店评论
Booking.com 酒店评论在 startUrls 中接受酒店页面。maxReviewsPerHotel 限制每家酒店的评论数,sortReviewsBy 决定排序,reviewScores 按评分筛选:
curl https://lovelyrouter.com/v1/tools/booking-reviews/run \
-H "Authorization: Bearer $LOVELY_API_KEY" \
-H "content-type: application/json" \
-d '{
"input": {
"startUrls": [
{"url": "https://www.booking.com/hotel/cz/jeromehouse.en-gb.html"}
],
"maxReviewsPerHotel": 3
},
"max_results": 3
}'运行超过 60 秒仍未结束时会返回 202;轮询方法见运行工具。sortReviewsBy 接受 f_relevance、f_recent_desc、f_recent_asc、f_score_desc 和 f_score_asc。单次运行最多可返回 500 条评论。
每条评论包含什么
| 字段组 | 你得到什么 |
|---|---|
| Score | 评论评分 |
| Feedback | 住客喜欢什么、不喜欢什么 |
| Guest | 旅客类型 |
| Time | 评论日期 |
实用做法
把 sortReviewsBy 设为 f_score_asc,拉取你自己酒店评分最低的评论,给不满意的内容打上标签,再把最常见的三个主题交给运营团队。
拉取评分最高的评论,收集住客喜欢的内容,把他们的原话用在描述和图片说明里。
按旅客类型拆分评论。家庭可能在意空间,情侣可能在意噪音,你的应对方式也应该不同。
在施工前后分别用 f_recent_desc 拉取最新评论,对比翻新区域被提及的频率和语气。
同时运行你的酒店和四家竞品,统计每个主题在各家酒店出现的次数,找出你落后的主题。
想直接用自然语言?连接 MCP 服务器,然后对 Claude Code 或 Cursor 说:“获取这家 Booking.com 酒店评分最低的 100 条评论,把不满意的内容归成几个主题并显示数量。把 max_results 设为 100。”
与其他评论来源搭配
Booking.com 的住客只是旅行者中的一部分:
Booking.com 酒店的住客评论:评分、好评、差评、旅客类型、日期。
Booking.com 上某目的地(及日期)的酒店:名称、评分、价格、地址。
Tripadvisor 酒店、餐厅和景点的评论:评分、标题、内容、日期、出行类型。
Google 地图地点的评论(按地点 ID 或 URL):内容、星级、日期、商家回复。
按域名获取公司在 Trustpilot 上的评论:星级、内容、日期、回复。
booking-hotels显示你所对标酒店的房价和评分。tripadvisor-reviews补充另一类旅行者群体的声音。google-maps-reviews覆盖地图页面上的评论,很多住客会先看这里。trustpilot-reviews在你经营连锁品牌时,覆盖针对公司层面的评价。
关于持续关注评论这件更大的事,参见评论监控。
费用
按评论条数计费:启动运行时会预留其最高费用,即每次调用费加上每条评论费乘以 max_results,运行结束后按实际返回的结果结算,其余预留金额退回你的余额。失败或超时的运行只为已交付的评论付费,启动时就被拒绝的运行不收费。
没有订阅,也没有月度最低消费:最低 $5 起充值,一份余额同时支付工具和模型。上方的卡片显示今天的价格;定价列出了每个工具。
常见问题
可以只获取差评吗?+
可以。用 reviewScores 按 Booking.com 上显示的评分筛选,或者把 sortReviewsBy 设为 f_score_asc 并限制评论条数。
可以先获取最新的评论吗?+
可以。把 sortReviewsBy 设为 f_recent_desc。
一次运行可以读取多家酒店的评论吗?+
可以。startUrls 是一个列表。maxReviewsPerHotel 分别限制每家酒店,所以设置 max_results 时请按总数考虑。
单次运行最多能返回多少条评论?+
最多 500 条。建议先用较小的上限,看清评论的样子,再逐步提高。
需要订阅吗?+
不需要。你向预付费余额充值,每次运行从中扣减。失败的运行只为已交付的结果付费,也不会自动续费。