How to let Users Upload Files in Botpress, Store t...
# 📖tutorials
n
Hey everyone, I've made a quick tutorial on how you can let your Users Upload Files in the chat, Store the Files and act accordingly based on what the user did: Uploaded File, Canceled the Upload, ... In the description of the yt video you can find the free templates, both the bot template and the website code template, hope you enjoy it! Happy to answer any questions or to help anyone when needed!

https://youtu.be/9U3jy-FidJ4

n
Are you serious 💥 🥇
Thanks a lot for that oone
n
thanks @narrow-agent-91470 ! 🤝
j
OMG !!
YOU ARE THE FRCIKING BEST !
i cant swear 😦 buts its ok !
cause im only 13
n
Thank a lot @jolly-policeman-82775 ! Appreciate it 🤝
r
this is hot fyre!!
c
Great work! @narrow-intern-74654 🔥
If you haven't applied to become a botbassador yet 😉 you should !
n
Thanks a lot @crooked-van-25152! I'am definitely thinking about it🤝
j
if there was a joker role, i think that one should be for me lol
im the funny guy in this server.
r
@narrow-intern-74654 can you please tell me about the file upload, image not shown in the BotPress chat . You are showing JSON data in the BotPress
n
@rhythmic-address-93833 the JSON payload was just for myself to show that the right trigger was triggered by clicking any of the buttons, it was not my intention to show the image in the chat...
@rhythmic-address-93833 so you want to show the image to the user in the chat after uploading it ?
r
@narrow-intern-74654 yes kindly help me to show the image in botpress chat.
@narrow-intern-74654 am waiting for your reply dear
Kindly guide little bit about showing upload image in chat
n
@rhythmic-address-93833 I’am going to sleep, my schedule is a little fcked… I’am pretty busy tommorow (aka today), I’ll try to look into it this evening
You could always already do some research or ask GPT🤝
r
Ok dear but need your help in this issue. Whenever you will be free provide me solution.
j
hi
r
@jolly-policeman-82775 yes
j
??
i didnt ask a question
r
But I need help
Can you please solve my issue, I am working on BotPress and user's picture not getting in chat
n
@rhythmic-address-93833 hey man, I'am currently pretty busy with some important clients, and i don't really have the time to spend some hours on this... I've gone back and forth a little with GPT just now, and it is surely possible to show this image on the main window itself let's say, but to show this image in the webchat is gonna be harder since you would need to adjust the frontent code of botpress itself (according to my GPT research...) I've saved the image url in a workflow variable and tried to output it trough an image or file card, but these cards do not support url links of the pictures at the moment... I think you could start searching from here on, perhaps use a custom code card to output the image trough it's URL to the user (but I don't know if thats possible/supported by botpress... )
c
I would recommend starting a new thread so the team can help you.
r
@narrow-intern-74654 Thank you so much for your time to suggest me.
@crooked-van-25152 ok let me check it how to connect with them
c
Simply start a new thread in #1111009377525186570
q
That is insane bro, thank a thousand !! :)))
s
@narrow-intern-74654 This is so sick! Thank you for sharing the knowledge my friend ❤️
j
deosnt work
so i have to display it on my website ?
mine does not work
can someone try and help me please >
this is my template
and its not working i wonder why :(((
@rich-family-53457
look here please
r
yeah
j
this si the tutorial
r
i'll check it soon
j
thanks man
@straight-wolf-37371
do you mind helpig me please ?
s
Sorry, I haven't tried implementing this yet.
j
oh alright
@narrow-intern-74654 if you have time can you please help me man
d
Hello everyone. Seems that the youtube video is no longer available. Any ideas or alternative on how to get it otherwise?
n
Yeah, I received a notification from youtube that they deleted my yt channel because it contained somehting of scamming people and or spamming… literally have no clue how, but anyway here is the video
@damp-forest-63651
Where didn’t it work and how did you test it ? Did you implement it in an app or website template or anything and adjusted this template ? It isn’t possible in the emulator itself
In this GD folder all 3 of my yt videos are together with their templates
j
I don't knowww
I just shared the link and tested it there
Supposed to work right?
n
nope, check to whole video mate 😉 You need to setup a trigger in the website code or wherever you deploy it...
j
dang
but i want to give them the bot so they can fill in their info
ooo mabye i can do it in a page inside of my web alrighty
here is the bot
@straight-ram-11494
f
What happened to the video
e
Hey @narrow-intern-74654 it seems like your channel is down 😯
I'm sorry for that!
Could you post the video here directly so the community can still access it? It will be appreciated 🦾
j
OH NO !
i didnt know that
n
It is posted a little above in this chat 😉
@early-train-33247
f
This one?
f
What he’s saying is that it’s like your channel is down so that video is no longer accessible.
e
Thanks @freezing-lighter-62561 He posted the video directly in here as well!
f
Awesome. How did it work for you? I’m currently having the same challenge.
Hey man, appreciate the time you took for the videos. I’m currently developing a bot for a lawyer as well and I have similar challenge. I can’t seem to find the long line of code you worked with. Another question is, will user also have the ability to upload files when they interact with the bot on WhatsApp or other platforms? Thanks for yours response in advance 🙏🏽
So if I’m deploying on WhatsApp or telegram, I have to setup a trigger in WhatsApp or in telegram?
r
Hi @narrow-intern-74654 The code is not working, I have set a trigger, please let me know if I'm missing anything? also what do I put in the dropbox code please
j
@future-psychiatrist-80851
f
hello @jolly-policeman-82775 how to upload user image or upload any file in chatbot. this is possible.
f
You will find a video above which lets you do it
q
Inspired by this great tutorial from 🛠️ @narrow-intern-74654 🫡 I built a chatbot that allows users to upload their CVs (text files) directly to the Botpress Knowledge Base (as a KB table data) https://discord.com/channels/1108396290624213082/1189632494241321180 I also tested it with some other examples, for example cafe products ("product name", "product description", "file name") and it worked for me. Check if something like that works for you also @future-psychiatrist-80851 @rhythmic-photographer-91397 @freezing-lighter-62561 👍
s
Thanks woutvp - awesome vid. I havent tried it yet but i have a query. Is there any way to ensure person at other end is not uploading any virus or any script that can be harmful?
f
I think there are multiple ways of doing that. Pretty sure AWS S3 automatically checks for it. Why would you like to scan it?
s
Thanks, Automatically scan is a good option, need to check it. I was just wondering from a script phishing / scam angle
d
Hello @narrow-intern-74654 thanks for the videos. I will check them very fast
f
Hi, did you figure out how to upload images from whatsapp?
I just need to be able to get the the whatsapp image id and I can do the rest in my server but when I send a message of type image, botpress doesn't render the event (It shows message type unhandled in the logs), and acts as if it received nothing.
e
This is coming soon!!
And there will be no need for workarounds!
f
The update was made 2 days ago and was pushed forward by Abe. Thanks botpress team!
d
Hello everyone, juste to know, is it possible already, when the user send a vocal note, to get the audio file in botpress? Or otherwise, how can we handle if we want to provide speech to text capability from our bot in whatsapp channel?
f
I am no expert in the WhatsApp integration but I can give you a link to the docs about it https://botpress.com/docs/cloud/channels/whatsapp/#media-images-audio-documents
d
ok, thanks very much, @fresh-fireman-491
these are very good news from what i just read, i will manage with the code and get back to you if needed. thanks again. this is opening great possibilities for bot developpement. let's go ahead.
f
That is good to hear. If you find something really good let me know, you can also always try and create a tutorial for it as I know a lot of people have been asking about it. You will learn a lot by creating a tutorial as you have to understand everything and how to use it properly.
d
That's a good idea. You are totally right. I will do that. Because i have been waiting for this since last year for new functionalities in my bot
i
This link is dead. pls look.
f
Hey He shared a new link here which should workhttps://discord.com/channels/1108396290624213082/1164616624033234984/1178162281977233468
28 Views