MiniMax H3 Prompt Packet → Relay Plan / 编译提示词转时间线 (Advanced)
From the Studio compiler's packet to a relay timeline — without rewriting a word
- prompt_packet
- prompt_relay_events
- prompt_relay_plan
- compiled_prompt
- length
- timeline_json
- report_json
The MiniMax H3 Prompt Relay system has two entry points: you can hand-write a plan with a global prompt plus local events (MiniMaxH3PromptRelayPlanT8Advanced), or you can compile a Studio brief in the T8 Video Prompt Compiler and bridge it over. This node is the bridge. It takes an authenticated prompt_packet from the compiler and converts it into an auditable relay timeline - while keeping the compiler's compiled visual/audio prompt as the global layer, untouched.
The key design rule, straight from the description: local events are never inferred or rewritten. The compiler produces a global fact source - the coherent picture-and-sound description that should hold for the whole clip. This node does not look at that global prompt and try to guess what local actions should happen; you supply those explicitly, either as an events_json list or by chaining Prompt Relay Event nodes.
The inputs that matter
prompt_packet- theH3_T8_PROMPT_PACKETfrom the T8 Video Prompt Compiler. It only acceptsbackend=minimax_h3packets with a complete hash. Compile for Wan 2.2 and try to relay it? Rejected. That's intentional - the relay math is H3-specific.events_json- the explicit event list. The default is a three-beat example ("The subject raises one hand" → "turns and walks forward" → "camera pulls back"). Two rules matter: inauto_equalmode you write onlyprompt(the node splits the timeline evenly); other modes need explicitstart/end. And[]means "keep only the global packet, install no relay patch."timing_mode-auto_equal(default) or explicit frame/seconds/percent interpretation.math_profile-paper_v1by default, matching the published Prompt Relay equation;legacy_repo_compatexists only to reproduce old community parameters.epsilon(0.1),allow_gaps(false),allow_overlaps(false) - the timeline-continuity controls. Gaps or overlaps off means events must tile the whole timeline.prompt_relay_events- optional chain of Event nodes; when connected, it becomes the authoritative event source overevents_json.
Outputs: prompt_relay_plan, compiled_prompt, length, timeline_json, and report_json.
Why it matters
Prompt Relay is a real technique in this corner of the ecosystem (the community knows it from GordonChen19/Prompt-Relay on LTX and Wan): a global prompt always visible, plus local event prompts each routed to their own time window in the attention computation, instead of one monolithic prompt smeared across the whole clip. That's how you get "she looks at the camera and raises her hand" to happen at second two without the phrase leaking influence over the entire render. T8mars re-implements it for H3's joint AV transformer, and this node is how the Studio side of the pack talks to the relay side. The packet's compiled prompt stays global; your events stay yours.
Install
Part of the MiniMax H3 Audio T8 pack:
cd ComfyUI/custom_nodes
git clone https://github.com/T8mars/comfyui-minimax-h3-audio-T8
or search "MiniMax H3 Audio T8" in ComfyUI Manager, then restart. No pip deps, no weights needed to build a plan. The handoff example is examples/workflows/14-prompt-relay/2026-08-20_H3_Studio_Prompt_Packet_Relay_Stock20_Advanced_EXP.json - wire the compiler's packet in, write your events, and read timeline_json before you ever load a model. If the node rejects your packet, check that you compiled for minimax_h3 and that you're connecting the compiler's prompt_packet output directly.
Inputs (8)
| Name | Type | Default | Description |
|---|---|---|---|
| prompt_packet | H3_T8_PROMPT_PACKET | 直接连接 T8 Video Prompt Compiler;只接受 backend=minimax_h3 且哈希完整的 packet。 | |
| events_json | STRING | [ {"prompt":"The subject raises one hand."}, {"prompt":"The subject turns and walks forward."}, {"prompt":"The camera pulls back into a wide shot."} ] | 显式事件列表。auto_equal只写prompt;其他模式还要写start/end。使用[]表示只保留全局Prompt Packet且不安装Relay补丁。 |
| timing_mode | COMBO | auto_equal | frames的end为包含端点;seconds/percent的end为时间边界。 |
| math_profile | COMBO | paper_v1 | 默认使用Prompt Relay论文公式。 |
| epsilon | FLOAT | 0.100.000001–0.999999 | — |
| allow_gaps | BOOLEAN | false | — |
| allow_overlaps | BOOLEAN | false | — |
| prompt_relay_eventsopt | H3_T8_PROMPT_RELAY_EVENTS | 可选:连接链式 Event 节点后以它为权威事件源;未连接时继续读取 events_json。 |
Outputs (5)
| Name | Type | Description |
|---|---|---|
| prompt_relay_plan | H3_T8_PROMPT_RELAY_PLAN | — |
| compiled_prompt | STRING | — |
| length | INT | — |
| timeline_json | STRING | — |
| report_json | STRING | — |