Skip to main content

Plan a weekend trip from one sentence · multi-step Agent

Assign a task in one sentence, and the model autonomously orchestrates web search, budgeting, and scheduling within a single call to complete a multi-step trip plan.

Disclaimer: The content shown on this page is all generated by AI models and is for reference only; it does not constitute any guarantee of results. Actual output and Credits consumption are subject to "Usage Details" in the console.
This playbook walks through a multi-step Agent with a "two-day, one-night Hangzhou weekend": just state your need in one sentence, and qwen3.7-plus decides on its own how many steps to take — first using web search to look up attraction tickets and the weather, then using code to nail down the budget breakdown, and finally arranging it into an itinerary. The whole thing runs in a single call, so you don't have to ask three separate times. Call chain: qwen3.7-plus (Responses API) → model autonomously orchestrates web_search (look up tickets/weather) → code_interpreter (compute budget and percentages) → consolidate into an itinerary. Actual trace: web_search×2 → code_interpreter×1 → produce output, all within a single call.

Steps: trigger multi-step orchestration with one sentence

Send the following instruction to qwen3.7-plus (enable web_search + code_interpreter):
You are a trip-planning assistant. Help me plan a "two-day, one-night Hangzhou weekend" trip (2 people traveling together). You must execute in three steps:
1. Use web search to look up the current opening hours and ticket policies of West Lake and Lingyin Temple (Feilai Peak) in Hangzhou, as well as the Hangzhou weather this weekend;
2. Use the code interpreter to precisely calculate the total budget and per-person amount based on the unit prices below, and compute each item's percentage of the total budget (keep 1 decimal place):
   High-speed rail round trip 240 yuan/person; hotel 450 yuan/night × 1 night (2 people sharing 1 room);
   Lingyin Temple ticket 30 yuan/person + Feilai Peak ticket 45 yuan/person; meals 150 yuan/person/day × 2 days; local transport 40 yuan/person;
3. Output the final plan: a two-day itinerary of "time / location / arrangement", plus a budget breakdown table of "item / amount / percentage", and end with a one-sentence reminder.

Final plan

Two-day itinerary
TimeLocationArrangement
Day 1 Saturday
08:00 – 10:00High-speed railTake high-speed rail to Hangzhou East Railway Station, take a taxi/subway to the hotel
10:00 – 11:00HotelCheck in, take a short rest
11:00 – 12:30Lou Wai Lou / ZhiweiguanLunch: West Lake fish in vinegar sauce, Longjing shrimp, Dongpo pork
13:00 – 17:00West LakeStroll along Su Causeway → Flower Harbor Fish Viewing → boat to Three Pools Mirroring the Moon → distant view of Leifeng Pagoda (especially poetic in the rain)
17:30 – 19:00Nanshan Road / Hubin IntimeDinner + West Lake music fountain (if the rain stops)
19:30 – 21:00Hefang Street / Southern Song Imperial StreetNight market, snacks, specialty shopping
Day 2 Sunday
07:00 – 08:00HotelBreakfast, check out, store luggage
08:00 – 12:00Lingyin Temple + Feilai PeakTour the Feilai Peak stone carvings → burn incense at Lingyin Temple → zen tea at Yongfu Temple (reserve in advance via mini-program)
12:00 – 13:30Around LingyinLunch: Tianzhu vegetarian noodles / farm-style dishes
13:30 – 15:00Longjing Village / MaojiabuTaste Longjing tea, enjoy the rain-soaked tea fields (adjust flexibly based on rain)
15:30 – 17:30Hangzhou East Railway StationTake high-speed rail back
Budget breakdown table
ItemAmount (yuan)Percentage
High-speed rail round trip (240 × 2 people)48027.3 %
Hotel stay (450 × 1 night)45025.6 %
Lingyin Temple ticket (30 × 2 people)603.4 %
Feilai Peak ticket (45 × 2 people)905.1 %
Meals (150 × 2 people × 2 days)60034.1 %
Local transport (40 × 2 people)804.5 %
Total1,760100.0 %
Per person880.0—
Friendly reminder: The Lingyin Feilai Peak scenic area is currently admission-free, so you can actually save 150 yuan on tickets (reserve online 1 day in advance); there will be continuous moderate rain this weekend, so bring an umbrella and non-slip shoes, and keep an eye on the latest weather forecast before departure to adjust your itinerary. Have a great trip!
The real value added by web search: after searching, the model found that "the Lingyin Feilai Peak scenic area has gone admission-free and requires advance reservation 1 day ahead", and proactively pointed out in the reminder that 150 yuan in tickets can be saved and noted the weekend rain — this kind of time-sensitive information isn't available from the model's own knowledge. The budget figures (total 1,760 yuan / 880 yuan per person / each item's percentage summing to 100.0%) were verified consistent through independent calculation.

Notes

  • Consumption: This playbook involves text generation (qwen3.7-plus, one Responses API call) and the built-in model tools web_search (web search) and code_interpreter (perform calculations), with tools billed separately per successful call in Credits. Web search brings web page text into the context, so input-side consumption is significantly higher than a plain conversation — this is the normal cost of a multi-step Agent.
  • Value added by web search: After searching, the model found that "Lingyin Feilai Peak has gone admission-free and requires advance reservation 1 day ahead", and proactively flagged that tickets can be saved and noted the weekend rain — this kind of time-sensitive information isn't available from the model's own knowledge.
  • Consistency: The budget figures (total 1,760 yuan / 880 yuan per person / percentages summing to 100.0%) were verified consistent through independent calculation; real-time information is still subject to the actual web search results.
Model Playground
Fine-tuning
Model Compression
Statistics and Monitoring
Support