← Files SoniloARCHIVED FILE

skills/sonilo-workflows/references/examples.md

6.32 KB · Nov 24, 2026 · 00:21 UTC

↓ Download file

See the change to this file →

# User-facing examples

Respond in the user's language. Link labels mean real user inputs or returned
artifacts, not invented URLs. Use success wording only after a successful
result; substitute actual account data for illustrative numbers.

| User request | Behavior and response shape |
| --- | --- |
| “Translate this one-minute product demo into English subtitles first; I will correct the product name.” + video URL | Run `generate_video_subtitles`, return the English SRT link, and wait: “Review this English subtitle file. Send the approved script URL when you are ready to dub.” |
| “Translate this demo into Japanese subtitles. Keep the name Sonilo as written.” + video URL | Run `generate_video_subtitles` with `languages=["ja"]` and `glossary=[{"term": "Sonilo"}]`. Return the Japanese SRT for review. |
| “The Japanese script is approved. Dub it, and have the voice say SQL as ‘sequel’.” + approved script URL | Run `dubbing` with `subtitles={"ja": <approved script URL>}` and the same glossary plus `{"term": "SQL", "alias": "sequel"}`. Explain that the subtitles keep “SQL” and only the voice says “sequel”. Without an approved script, offer the subtitle step first instead of sending a glossary. |
| “Just give me sound-design ideas for this clip, no music.” + video URL | Run `analyze_video` with `mode="sfx"` once and return the brief. |
| “Dub my 10-minute lecture into Spanish.” + video URL | Do not call a tool. Explain that dubbing accepts videos up to 300 seconds and suggest a shorter cut. |
| “Add music to the clip at ~/Videos/launch.mp4 and give me the finished video.” | Call `create_upload_url` with the file's name and exact size, PUT the file to the returned `upload_url`, then run `video_to_video_music` once with the returned `file_url`. Say first that the file will be uploaded to temporary storage on the user's Sonilo Platform account. “Here is your new video with music: [video].” Never show `upload_url`, and do not present `file_url` as a result. If the upload cannot run here, ask for a public HTTPS link instead. |
| “Add relaxed music and waves to this 20-second beach video and give me the finished video.” + video URL | Run `video_to_video_sound` once. “Here is your new video with music and wave effects: [video].” |
| “Let me try English dubbing for free on this one-minute Chinese video.” + video URL | Check single-language, no-script trial eligibility. If confirmed and the task succeeds with a trimmed preview: “Here is the first 15 seconds in English: [preview]. The remaining 45 seconds have not been processed.” Otherwise explain that a free preview is unavailable without submitting a paid job. |
| “That preview sounds good. Dub the whole one-minute video.” | Refresh services, check for an existing full-video task, then submit once using the original source and English settings. “I will check your account and use the same video and language for the full version.” Do not claim it is already complete. |
| “How much balance do I have, and how many free music runs remain?” | Call `get_account_services`. If it returns `cash_balance="2.5001"`, `currency="USD"`, and `trial.text_to_music.remaining=1`: “Your current cash balance is USD 2.5001. You have 1 free text-to-music run remaining.” Use actual returned values. If balance is missing: “The service did not return your cash balance.” Missing trial data is unknown, not zero. |
| “Generate another 30-second upbeat track.” when rejected for insufficient balance | “The service reports insufficient balance.” Add “Generation did not start” only for a confirmed pre-generation rejection. No link, price, automatic retry, or instructions to purchase. |
| “Continue the English video from before.” | Retrieve any prior task. Submit once only after a confirmed rejection or when the only completed task is a preview and the user wants the full video: “I will use the same video and English settings.” Do not claim the account can now cover it. |
| “I am new to Sonilo. How do I ask for music for a café ad?” | No generation. “Send a public HTTPS video link, or name a video file on your computer, and say: ‘Add warm, relaxed jazz to this 30-second café ad.’” For more examples, link to `https://platform.sonilo.com/mcp`. |
| “Is the English video ready?” | Retrieve the same task ID. While processing: “It is still processing. I am checking the original task, not submitting another generation.” If waiting stops, provide the task ID without promising unattended monitoring. |
| “Give me three music choices for this 30-second café ad.” + video URL | Use `video_to_music` with `variants_num=3`, or the video-output tool if requested. Multiple variants use paid credits; a free-only constraint prevents this submission. Return three separately labeled actual URLs after success. |
| “Add light music to my travel narration, but keep my voice clear.” + video URL | Use the requested output type with `preserve_speech=true` and `ducking=true` where supported. Link to the actual processed output, not an unducked alternative. |
| “At 2–3 seconds add a door closing; at 5–7 seconds add rain.” + video URL | Use the requested SFX output type. For the hosted contiguous-segment schema, encode 0–2 no added effects, 2–3 door closing, 3–5 no added effects, and 5–7 rain. Return the actual audio or video after success. |
| “Generate 30 seconds of jazz and give me separate drums and bass for editing.” | `text_to_music` with `duration=30`, `stems=true`. Return [complete music], [drums], [bass], and other actual stem URLs. A stems-only failure does not invalidate the complete music. |

## Concrete credit-error replies

These examples assume the server confirmed rejection before task creation.
Omit unconfirmed facts. Credit errors carry no links, prices, or purchase steps.

**User:** “再帮我生成一段 30 秒的轻快背景音乐。”

**Reply:** “余额不足,这次没有开始生成。之后想继续时,对我说‘继续刚才的音乐’即可。”

**User:** “再免費試一次英文配音。”

**Reply when the dubbing trial is confirmed exhausted:** “你的英文配音免費試用
次數已用完,這次沒有開始生成。”

A zero remaining trial count alone does not prove insufficient paid balance.
For a free-only request, do not submit a paid job to test whether it will work.

SHA-256: e6cffc4a1a65708361ce3c900a417adb1bd7bd15610a3321df0a3eb378df81d5