Hey all I have a bot which ends with creating a newsletter for the user. Its ~1000 words. I want the user to be able to be able to easily copy the text and get it into a document on their computer. Some things I have tried/thought about;
- Having a 'copy to clipboard' button native in the chat. I've searched for this and doesn't seem to exist. I found a few threads here in Discord, one from 2023 asking for this feature, but its not currently supported. A little surprising since it seems like such a common feature for chat bots like this
- Looking for a card which creates a file from content - Again couldn't find this, or any references to it.
- Trying to send a custom event from the chat bot to my website and then doing the copy to clipboard myself. I was able to get custom events working (it is very particular RE the format of the JSON its expecting to be pasted into the field - would be nice to include an example in the docs or something). However when I then try and send all my generated text through the custom event it fails. Presumable because its not correctly formatted as JSON and includes quotes etc. I'm going to try and use a custom action to encode the JSON and then pass it back and use that as the custom message, but yeah, feels a bit hacky.
Am I missing somehting obvious/easy?
Any help would be greatly appreciated!