Hero! This works. I think it might be caused by having more than one tab open (I've got one tab open so I can look at certain filters from another visualisation). Many thanks and best wishes!
Thanks for this - I used it on the Virtual Agent, which worked like a dream!
javascript: "Some text\n\nDescription: {{vaInputs.description}} \n\nSome more text"