As AtulSingh mentioned above, you're getting [object Object] because the result is not a single string value, but rather an Object = { name: 'John Doe' }
If you want to get the value 'John Doe' , you can use %event.detail.name% to retrieve the value of name.