--- name: motion-graphics description: "Add branded motion graphics to a property video through the cloud motion agent: an opening title with the address, 'Just listed' or open-house badges, price tag, room labels, beds/baths/size callouts, the agent's lower third, a location card, a before/after wipe and an end card with logo and contact. Use for titles, overlays, lower thirds, end cards or branding on a listing video; subtitles of speech are captions." --- # Branded motion graphics The cloud motion agent draws graphics in code (HyperFrames: HTML on a timeline) over the finished cut, or as standalone cards, from a written brief. Copy, numbers and logos come from the user and the video project, never invented. The agent cannot make AI video; the footage comes from the other skills first. **The user provides:** the cut (or a video project), the brand kit (agent or agency name, phone, licence number, logo file, colours, headshot), the facts to show, the elements they want. **They get:** the same video with overlays drawn over it (picture and sound unchanged otherwise), or title and end cards to join, at the video's own size. ## House rules - **Exact copy.** Every word, number, price, phone and licence number on screen is the user's, word for word. Logos and headshots are the user's files, never redrawn. A street map only from a map image the user supplies; otherwise a drawn pin with the distances they gave. - **Keep the disclosure label.** The cut's "AI-enhanced", "Virtually staged" or "Artist's impression" label stays visible, and no graphic covers it. When the cut has none and the footage needs one, the overlay draws it in a corner. - **Price before spending.** `estimate_generation({ operation: "motion_graphics" })` before the first turn and give it beside `get_credits_balance`. `media_budget_credits: 0` unless the user wants generated images. - **One turn, one card.** Agent turns follow the account's Review or Auto setting; in Review the card's Generate is the user's. Call nothing to wait. - **No extra takes; lost is not failed.** One turn per request; `check_job` with the returned `job_id` once when the result is needed. Never start a duplicate turn while one runs. - **Read the model first.** The agent picks its own models for anything it generates. Any frame or clip you make yourself for it goes through `get_model_params({ model })` first. - Argument names not given here are in each tool's own schema. ## Defaults | | Default | |---|---| | Size | The base video's: `1920`x`1080` for the tour, `1080`x`1920` for the reel | | Opening title | 0.5 to 4 s, over the first shot | | Room label | 2.5 s from each cut, none on the first and last shots | | Lower third | 5 to 6 s over a calm shot in the first third | | Price and specs | 5 s, in the last third, before the end card | | End card | The last 4 to 5 s | | Motion | Fades and slides of 0.4 to 0.6 s, eased. Graphics enter as a camera move starts and leave before the cut, so text never rides across one | | Sound | The base video's sound untouched; no added whooshes unless asked | ## 1. Gather 1. The base video: the assembled cut from `get_video_project` (or a URL), its size, length and cut times (from the shots' lengths, or `extract_frames` timeline). 2. The brand: the project's `brand`; ask once for what is missing. The logo as a transparent PNG or SVG; upload with `get_upload_url` + `confirm_upload` or `upload_asset`. 3. The facts: address or neighbourhood, price (and currency), beds, baths, size, open-house date, the call to action. Only what the user gave. 4. The elements, from `references/brief-templates.md`. With none named: opening title, room labels, spec callout, agent lower third, end card. ## 2. Write the brief One brief, in this order: what the video is and its size and length; the base video and what must stay untouched; each element with its exact copy, its time range and its position; the style (brand colours, font, motion feel); what matters most. Templates per element are in `references/brief-templates.md`. Style defaults for property work: one display font and one text font (Hebrew-capable for Hebrew copy: Heebo, Rubik or Assistant; serif display: Frank Ruhl Libre or Fraunces), the brand's two colours plus white, soft fades and slides of 0.4 to 0.6 s, eased, nothing bouncing or spinning, text on a subtle dark gradient or a solid brand bar so it reads over bright rooms. Hebrew lines right-aligned and right to left; numbers stay left to right. Placement: 16:9 keeps text inside a 5% margin; 9:16 keeps it out of the top tenth and the bottom fifth (app buttons) and off the right edge. Room labels sit low-left, the lower third over a calm stretch of footage, never over a face. ## 3. One agent turn | Setting | Value | |---|---| | Tool | `generate_motion_graphics` | | `prompt` | the brief | | `duration`, `width`, `height` | the base video's (`1920`x`1080`, `1080`x`1920`) | | `fps` | `30` | | `effort` | `medium`; `light` for a small change or a single card | | `media_budget_credits` | `0` | | `reference_assets` | the base video ("the base video: draw the overlays over it; keep its picture, timing and sound exactly"), the logo ("the agency logo, use as is"), the headshot ("the agent's photo for the lower third") | | `edit_job_id` | only to change a video this agent made: that result's job id | The call starts the turn at once (about one to three minutes) and returns a `job_id` with a card that follows it. Tell the user what is being made and end the turn. When the next step needs the result, `check_job({ job_id })`. **Standalone cards** (a title card before the tour, an end card after): the same call without the base video, the card's own length (3 to 5 s), then join with `merge_media({ operation: "merge_videos", video_urls: [title, cut, end] })`, or put the card's URL on the video project's timeline and assemble again. **For several aspects**, one turn per aspect at its own size; copy and timing identical, layout adapted. ## 4. Check `extract_frames({ video_url, timestamps })` at the first second, every entrance and exit, a room label after each cut, the lower third, and the last frame. Look for: every word and number exactly as given, logo matching its file, text inside the safe margins, nothing over the disclosure label or a face, labels landing on the right rooms, the base footage unchanged, the length as asked. `transcribe` when the base video has narration, to confirm the sound survived. Say what you could not check. ## 5. Changes and delivery A change is another turn with `edit_job_id` set to the last result's job id and the feedback as `prompt` ("Move the price tag to the top right and make it 20% smaller"), usually `effort: "light"`. Changes the user makes in the card update it in place: do not repeat them. Deliver the URL, the final cost the result states, and the elements included. ## When something goes wrong | What happened | What to do | |---|---| | A number or name is wrong | One light turn quoting the exact correct copy | | Room labels land on the wrong shots | Give the cut times per shot explicitly in the brief | | Hebrew letters show as boxes or run left to right | Name a Hebrew-capable font and "right to left" in the change | | The turn failed | It is not charged. Report it; start again only on the user's word |