Agent renders response as carousel - sometimes fails

The agent should render a carousel with the data fetched from an API. Most of the times it does, very smart and accurate, but sometimes it just writes the code as attached. Any idea?
Thanks!
image.png
image.png
Was this page helpful?