This is achievable. It required some iteration for the sentence you gave.
If you want to “batch”, you’ll have to append the system message at the end rather that the beginning.
You’ll have to take time to refine it according to your data and desired output. Alternatively you can spend some time in creating a training dataset with prompts and desired completions and fine-tune a base model.