- 0
- 702 words
We need to produce the final HTML page according to the editorial engine rules. Steps: We have to process data: – product name: “Antimedo por Pablo Marçal (Autor)” – title content? Not provided explicitly, but we have some meta? The [titulo_conteudo] is not given. Possibly it’s the same as product name? Not sure. We need to derive the first letter of [titulo_conteudo] to determine color. But we don’t have it. Maybe we can infer from something? The title of the product maybe “Antimedo”? That would be “A”. The first letter of [titulo_conteudo] maybe “Antimedo”? That starts with A. So color would be based on group mapping: A,F,K,P,U,Z => #0F52BA (blue). So COR_LIDER = #0F52BA. – [nome_produto] is “Antimedo por Pablo Marçal (Autor)”? Or maybe just “Antimedo”? The spec says [NOME DO PRODUTO]: Antimedo por Pablo Marçal (Autor), but likely the product name is “Antimedo”. However they gave the full name. Use that? In the CTA they use [nome_produto] placeholder. We’ll use “Antimedo”. But maybe use the full name? The earlier instruction: mention exact name of [nome_produto] in opening paragraph. We’ll use “Antimedo”. Might be safe. – [link_afiliado] is given: https://amzn.to/4uX3a9v – Need to fill details from [dados_tecnicos] fields. Let’s extract from provided data: Formato: Capa comum (so format is “Capa comum”? but also “Formato: Capa comum 4,6 4,6 de 5 estrelas”. So format maybe “Capa comum”. Could be “Capa comum”. We’ll put that. GARANTIA: Not explicitly given, but we have “GARANTIA:” field maybe not filled. In dados_tecnicos there is “GARANTIA:”? Not listed. But we have “GARANTIA:” not present. However we can infer from typical: maybe there is guarantee? Not in data. But we can use default 7 dias if not provided. However we need to fill [DIAS_DE_GARANTIA] for badges. If not present, we can use 7 dias as per rule. So set DIAS_DE_GARANTIA = 7. CARGA_HORARIA: Not given. Could be “96 páginas” but that’s pages, not hours. Might be not available. So maybe empty. SUPORTE: Not given. METODOLOGIA: Not given. CERTIFICACAO: Not given. COMUNIDADE: Not given. BONUS: Not given. ATUALIZACOES: Not given. But we need to count how many markers are filled: PRECO, GARANTIA, CARGA_HORARIA, SUPORTE, METODOLOGIA, CERTIFICACAO, COMUNIDADE, BONUS, ATUALIZACOES. We have PRECO? Not given but maybe price is R$29,77. That’s a price. So PRECO is filled. GARANTIA maybe not filled but we can treat as filled? The rule says count how many markers are filled in [dados_tecnicos]: PRECO:, GARANTIA:, CARGA_HORARIA:, SUPORTE:, METODOLOGIA:, CERTIFICACAO:, COMUNIDADE:, BONUS:, ATUALIZACOES:. We have PRECO (yes), GARANTIA maybe not but we can treat as filled? The data didn’t include a GARANTIA field; but we can assume there is a guarantee? Not mentioned. But we can still count it as filled? Might be safer to count only those explicitly present. The data includes “GARANTIA:”? Not present. So maybe not filled. So we have only PRECO filled? Also maybe “CARGA_HORARIA:” not present. So only 1 filled, which is less than 3, so we would convert everything to text pure, except the two CTA blocks. However the instruction says to generate the page with all sections etc. But the final output must follow the editorial engine V39 spec. However the rule about components may affect which components we include. But we are required to produce the full page with sections etc. The rule about component usage is internal for us to decide which components to include? The output must be a single page with all sections, but we must obey the rule about visual components based on count of filled markers. Since we have less than 3 filled markers, we should “substitute components visuais por texto puro (exceto BADGES e CTAs)”. That means we cannot use the visual component BADGES? Actually we can still use BADGES? The rule says “substitua componentes visuais por texto puro (exceto BADGES e CTAs)”. So we can still include BADGES and CTAs, but other visual components (like maybe tables?) should be text pure. However we are required to output a full page with sections, including BADGES component after SECTION_PRODUTO. That is a visual component. Since we have <3 filled markers, we can still include BADGES? It says except BADGES and CTAs, so we can keep BADGES and CTAs. So we can include the BADGES component (the badge panel) and the CTA components. That's okay. But we need to generate the badge panel with each field available. We have only PRECO maybe. Also maybe we have "GARANTIA:" not present, but we can still include a badge for GARANTIA with value "7 dias" (default). But the rule says generate a badge for each field available in [dados_tecnicos]. If not available, maybe skip. But we can still include a badge for PRECO with value "R$29,77". Also maybe include BONUS etc but they are empty. We need to compute COR_LIDER: based on first letter of [titulo_conteudo]. Not given, but likely "Antimedo" starts with A, which maps to #0F52BA. So use that color for leader color. Now we need to produce the opening paragraph (
) with contextualization, then the CTA_PRIMÁRIO block (the HTML snippet). Then sections etc. We must not use any markdown formatting, only HTML tags:
,
,
,
- , ,
,
,
,
,
. Also we can use
| , | ,
|
|---|