心宝❤详情页选项
Product name in, e-commerce detail-page prompt out — one node does the copywriting
- user_prompt
- aspect_ratio
- model_id
- 追加提示词
This node is where the 心宝 pack stops being generic ComfyUI and turns into a specific tool for Chinese e-commerce product pages. You feed it a product name and a few selling points, and it assembles the entire prompt bundle that generates a Taobao or Amazon detail-page image - including the model ID to use, the aspect ratio, and a long hard-constraint block of Chinese prompt engineering that keeps the model from mangling your product's logo, inventing copy, or drifting from the reference product.
If you've ever tried to make Gemini image models render a marketplace listing, you know the pain: the model "helpfully" rewrites your product's logo text, or generates a plain photo with a few words floating on it instead of a designed layout. This node exists to automate away exactly that. It's the front-end of the author's 一键详情页 (one-click detail page) workflow.
How it works
Everything is driven by a config file, xinbao_text_assembler.toml, that ships in the pack. It defines the available 用途 (purpose) options and, for each one, a model_id and an append_prompt - the template text appended to your input. Choose 淘宝详情 (Taobao detail) and you get a different model ID (gemini-3-pro-preview-dsxq) and a different constraint block than 亚马逊主图 (Amazon main image, gemini-3-pro-preview-mxzt). The node is a prompt assembler; the config file is the brains.
The inputs:
产品名(product name) - the product's name, the one thing the node can't infer.语言(language, default 中文) - the output copy language.数量(count, 1–25, default 8) - how many images/screens the detail page should plan for.用途- the purpose dropdown: 淘宝详情json / 淘宝主图json / 亚马逊详情json / 亚马逊主图json (and their non-json variants in the config).比例(ratio, default 9:16) - aspect ratio for the output.特殊特征(special features) and卖点文案(selling-point copy) - the free-form content that goes into the assembled prompt; the selling points become the text the image renders.
The four outputs
user_prompt(STRING) - the fully assembled prompt for the generation node.aspect_ratio(STRING) - the ratio to pass along, so downstream nodes don't need to guess.model_id(*) - the model the config picked for this purpose, so a switcher or the Banana node can select the right one.追加提示词(append prompt, STRING) - the hard-constraint block separately, so you can inspect or edit it.
Why you'd use it
Because the appended constraint blocks are genuinely well-built prompt engineering. The Taobao detail template, for instance, contains rules like: the product's surface text is "immutable texture" that must be reproduced in the original language, never translated; the layout must clone one module from the reference screenshot; and no functional guide words like "main title" or "selling point" may appear as labels - only the actual copy text. That's the kind of thing that takes a dozen failed generations to work out yourself. The node packages it.
Installing
It's part of comfyui-banana-li-linux:
cd ComfyUI/custom_nodes
git clone https://github.com/98624017/comfyui-banana-li-linux
Restart ComfyUI. No extra dependencies beyond the pack's standard set - this is text assembly, not compute.
One honest caveat: this node is opinionated and tuned for the author's commercial workflow. The model IDs and prompts point at the pack's reseller channel and its Gemini detail-page models. If you're not running the 心宝 channel, the model_id output may not map to a model you can actually call - the user_prompt and 追加提示词 outputs are still useful on their own, though.
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| 产品名 | STRING | — | |
| 语言 | STRING | 中文 | — |
| 数量 | INT | 81–25 | — |
| 用途 | COMBO | 4 options: 淘宝详情json, 淘宝主图json, 亚马逊详情json, 亚马逊主图json | |
| 比例 | COMBO | 9:16 | 11 options: Auto, 1:1, 9:16, 16:9, 21:9, 2:3, +5 |
| 特殊特征 | STRING | — | |
| 卖点文案 | STRING | — |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| user_prompt | STRING | — |
| aspect_ratio | STRING | — |
| model_id | * | — |
| 追加提示词 | STRING | — |