Lesson Planner Generator with Multiple Tables

How could you correctly provide instructions so I can create a lesson planner? The goal is that for quality, some formats with tables are used and they must be in PDF. Tables have relatively complex structures with column joins and row joins. How could I optimize my prompts and what could be the correct instructions to generate this type of table? The result should be in HTML and then with a WordPress plugin, I can export it to PDF with a library.

In your prompt instructions, you can add a few short examples of the response format. This will help the AI create reliable output as you want. Make sure to use a good model for this—GPT-4o and Mini sometimes ignore the instructions.

I recommend using Structured Outputs with a JSON schema; this way, you get reliable structured outputs in JSON. You can convert JSON to HTML if you only want the HTML output.

https://platform.openai.com/docs/guides/structured-outputs?api-mode=chat

1 Like