Sending File as a response

Hello All,

i have an external API that gives me a file

is there any way to send this file via the web or messenger channels ?

best

Hi,

I know this is not documented and quite sketchy at the moment but you can achieve that using the channel web yes (it’s supported built-in). You have to create a new choice or carousel and send BOTPRESS.FILE_UPLOAD as payload. Let me show you what I mean.

1- create a new choice
Screen Shot 2020-03-09 at 11.49.16 AM

2- click “pick content”

3- “create new single choice”

4- send BOTPRESS.FILE_UPLOAD as payload

Then this should render a file upload button as single choice and you’ve got yourself a file upload in the webchat.