Hello, I am new to activepiecies.
I am using Claude’s template to generate a post in WordPress.
I manage to post correctly but I have the following problem.
1- in the title I see the json with the title and headlines.
2- in the body of the post it does not place the text when it runs automatically, but when I do the test it works.
in the step 3 for flow, ask promt claude what i need:
Act as an SEO expert speaking fluent English to write only headings (h1, h2 and h3) for an article about " 2. Get next row(s) 0 values A ", adhere to these guidelines: "2. Get next row(s) 0 values B ".
Return strictly contains the attribute “title” with a rephrased SEO-optimized article title, and another attribute called “outline” that contains a flat array of exactly 5 items, each item is a top level (h2) headline of an article paragraph. The array will contain string items only. Don’t include the word “h2” in any of the items, don’t wrap titles in quotation marks, each heading is only the text of the heading.
output:
{
“title”: “Rustic Wood Wall: A Charming Touch of Vintage Elegance”,
“outline”: [
“Embrace the Timeless Beauty of Rustic Wood Walls”,
“Crafting a Cozy Ambiance with Reclaimed Wood Accents”,
“Rustic Wood Wall Designs to Inspire Your Home Decor”,
“Enhancing Your Space with Rustic Wood Wall Panels”,
“Maintenance Tips for a Lasting Rustic Wood Wall”
]
}
step 4, read the title and outline
export const code = async (inputs) => {
return {
“title”: inputs.title.trim(),
“outline”: JSON.parse(inputs.outline),
“random”: Math.floor(Math.random() * 9001) + 1000
};
};
output:
object {3}
title : {\n "title": "Rustic Wood Wall: A Charming Touch of Vintage Elegance",\n "outline": [\n "Embrace the Timeless Beauty of Rustic Wood Walls",\n "Crafting a Cozy Ambiance with Reclaimed Wood Accents",\n "Rustic Wood Wall Designs to Inspire Your Home Decor",\n "Enhancing Your Space with Rustic Wood Wall Panels",\n "Maintenance Tips for a Lasting Rustic Wood Wall"\n ]\n}
outline {2}
title : Rustic Wood Wall: A Charming Touch of Vintage Elegance
outline [5]
0 : Embrace the Timeless Beauty of Rustic Wood Walls
1 : Crafting a Cozy Ambiance with Reclaimed Wood Accents
2 : Rustic Wood Wall Designs to Inspire Your Home Decor
3 : Enhancing Your Space with Rustic Wood Wall Panels
4 : Maintenance Tips for a Lasting Rustic Wood Wall
random : 1969
step 7, ask claude promt to write post body
Write a section about "5. Loop on Items item " under the main title "3. Ask LLM ". Include five heading 3 titles with their paragraphs
Format headlines, bold and italic using HTML tags. Follow this structure:
Section Title
Paragraph 1 Title
Paragraph 1 content
Paragraph 2 Title
Paragraph 2 content
–
For reference, these are the previous sections:
– REFERENCE START –
- Get
– REFERENCE END –
Respond with the generated content only without an introduction or quotation marks, the full articule need contains 1500 words
output: correct article
step 8,9,10 write section html, get full articule and post wordpress, correct answer.
in wordpress when i test the flow in the last step when press test or reset, only works post article fine, but title not, because show json.
and for the other hand, when I set a schedule only post the title without article
i hope you understnd the problem, i cant send more screenshoots beacuse the sistem said me i am a new and only one picture i can post.
so can you help me to fix this issuies, thanks.
