My api prompts are not working

First of all, my English might not be perfect as I’m still learning, so I apologize for any mistakes. I’ve developed a wordpress plugin that automatically generates posts using gpt-4 api, but i’m facing some challenges.

The output always generates content with 350 words, and I’m struggling to create proper blog posts. I want the content to be generated based on keywords, so I’ve tried using prompts with a 5w1h approach. however, not all keywords seem to work well with this type of structuree.

Another issue is that the generated paragraphs are too short, and I don’t know how to fix this to make the content more cohesive. additionally, i’m not sure whether I should save the output as plain text or in html format for wordppress posts. what’s the best practice for this?

As you can probably tell, I’m a beginner, and I’d really appreciate any advice or tips on how to improve my prompts or the process to create better, more structured blog posts. What should the requests and configuration part be like for it to generate a blog post?

  • use the API model gpt-4o-2024-11-20. It will write longer.
  • use a system message to guide the overall purpose and style of the AI
  • use a user message to detail exactly what output you want generated
  • You can use an instruction “a high quality Wordpress blog post for pasting into the message content box”. If you are programming Wordpress, whatever suits the method you are using.
2 Likes

thank you, I will try it right away. I did not know that this model gives long printouts, thank you…