Stewart Rutledge2025-02-04

Developing H5 scripts with AI

AIh5-script

Another AI post! 🚀

I've been diving deeper into how AI can assist with H5-related development, and I’m really happy with the results using local LLMs.

For this experiment, I’m using Qwen2.5-Coder-14B-Instruct, a detailed prompt, and an expanding set of few-shot examples to fine-tune the output.

The end result? I can provide a prompt like this:

Write an H5 script called CheckDeliveryMethod that checks for user option 39. If the option 39 is used, check take OAORNO from the first selected row, then run OIS100MI/GetHead ORNO == OAORNO. If MODL from that API == '003', display a dialouge that says "Delivery method 003 is used, are you sure you want to continue?" If the user presses ok, run option 39 like normal.

… and generate a fully functional script (short demo video attached 🎥).

Even when the generated code wasn’t fully usable right away, it provided a solid starting point and significantly reduced development time.

If this is something you'd be interested in, feel free to get in touch! Drop a comment below or reach us at hello@beredo.net.

We're going to keep working on this and really building on our library of examples.