How to send an attachment in response from Rasa core action

ricwo

(Akash Vijay) #1

How to send an attachment in response from Rasa core action. For example , User ask for a particular document/template which can be a doc, excel or pdf. how can i return it in response so that it can download at user end.


(ricwo) #2

Hi @Akashvijay22, you cannot directly download files through an action. you could however write a custom action that locates the file, uploads it to a server and returns the download link as an utterance