How do I add 'elements:' in domain templates?

Were you ever able to figure this out? I’m having a similar problem. I need to send back an additional argument in the response to my chatbot’s frontend and I figured elements is the way to do it. But now I have to send all the buttons as elements too and instead of a key:value pair each button just becomes a long string