WPS Word Weather
Use this skill to prepare a short weather sentence and insert it into the active WPS 文字 or Microsoft Word document.
Workflow
Resolve the place and the date. Use absolute dates in both the response and the inserted text when the user says “today”, “tomorrow”, or similar relative wording.
Fetch live weather first. Do not invent current conditions. Prefer a concise summary with current condition, approximate temperature, and a brief later-today trend if relevant.
Draft one compact weather line. A good default pattern is:
YYYY-MM-DD [location]天气:当前[condition],约[temp]°C;稍后[trend]。
- Insert into the active document.
Run scripts/insert-into-active-word.ps1. Use
-NewParagraphwhen the user wants the line on the next line.
PowerShell Usage
& 'C:\path\to\insert-into-active-word.ps1' -Text $text
& 'C:\path\to\insert-into-active-word.ps1' -Text $text -NewParagraph
Translation Notes
If the user asks for Japanese, German, or another language, translate the already prepared weather content unless they explicitly request a fresh weather lookup.
Failure Handling
- If Word automation fails because no active document is available, say so clearly.
- If live weather lookup is unavailable, stop and report that instead of fabricating a forecast.
- Insert only at the current selection.