# GenIA for ZPL code generation

**URL:** <https://community.tulip.co/t/genia-for-zpl-code-generation/11337>\
**Category:** Show and Tell\
**Tags:** frontline-copilot\
**Created:** [April 30, 2024, 5:00am UTC](https://community.tulip.co/t/genia-for-zpl-code-generation/11337 "2024-04-30T05:00:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![youri.regnaud](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tulip.co/youri.regnaud/32/2917_2.png) [@youri.regnaud](https://community.tulip.co/u/youri.regnaud)\
**Post date:** [April 30, 2024, 5:00am UTC](https://community.tulip.co/t/genia-for-zpl-code-generation/11337/1 "2024-04-30T05:00:00Z")

</div>

Someone recently asked me how to create ZPL code to then print labels in Tulip. Usually we either use label design software with a ZPL export, or code the ZPL code directly. As I didn’t think my answer was very good, I tested the creation of labels in ZPL format via ChatGPT, and the result is really impressive: as well as providing usable ZPL code, you can ask for explanations of the code, and even comment on the ZPL code to facilitate maintenance and modifications. It’s a simple use case, but I think it can help a lot of builders and maybe an idea for Copilot.

^XA ; Début du script ZPL  
^CF0,30 ; Choix de la police (type 0) et taille (30)  
^FO20,10^FD{{num\_container}}^FS ; Placement du numéro de container à gauche  
; FO = Field Origin (X=20, Y=10)  
; FD = Field Data (données)  
; FS = Field Stop (fin du champ)

^BY2,2,50 ; Paramètres du code-barres (largeur module = 2, rapport = 2, hauteur = 50)  
^FO250,10^BC^FD{{num\_container}}^FS ; Code-barres à droite  
; BC = Code-barres 128  
; FO = Field Origin (X=250, Y=10)  
; Le reste est identique au texte

^XZ ; Fin du script ZPL

---

<div class="post-metadata">

**Author:** ![Beth](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tulip.co/beth/32/5987_2.png) [@Beth](https://community.tulip.co/u/Beth)\
**Post date:** [April 30, 2024, 1:08pm UTC](https://community.tulip.co/t/genia-for-zpl-code-generation/11337/2 "2024-04-30T13:08:19Z")

</div>

Great use of AI here @youri.regnaud! As someone without a formal coding background, using something like ChatGPT is a game changer (custom widgets is first to mind), but I never thought about using it for ZPL!

@Pete_Hartnett what do you think about this as an idea for Copilot?
