How to fill list type slot

how to fill list type slot.
consider : Chat bot is responsible to take public complaints.

supporting documents is required for any complaint , chat bot asks for it . a customized chat-bot client uploads supporting files and now the URL of supporting files is to be filled in the attachments slot.

/myCustomAction{'attachments':['file1','file2']}

is there a better way to do this?

Not sure if that would work for you, but you can also set slots from custom actions: Events

To do this, you’d just return something like:

return [SlotSet('attachments', ["file1", "file2"])]
1 Like