https://discord.gg/botpress logo
Botpress - Softr Integrating User Data from Fronte...
# 🤝help
b
Hi everyone, I'm trying to make my Botpress chatbot more personal by showing the user's name and email, which comes from my client portal made with Softr (No Code Tool). Here's the situation: I'm accessing the user's email and name from Softr's window.logged_in_user object. I'm passing this data in the window.botpress.init() call using the userId and payload properties, like so: I have also tried this Via SendEvent. In both case softr is able to pass the information but Botpress is not getting it. I have read all the docs from Botpress and Tried the heck out of vibe coding and trouble shooting with GPT. Botpress Problem: However, the chatbot itself isn't showing this information. I'm looking for help from anyone who has integrated Botpress with a client portal (like Softr) and managed to pass user details like name/email successfully. Did you face similar issues?
p
What are the methods you've tried so far, can you show the code? You need a custom events or a webhook trigger to receive events from your website.
b
Hi @prehistoric-airplane-85682 , I have figured it out. I am able to pass on the username and Email. And as we discussed in AMA session today, I have managed to pass them onto my OPEN AI Assistant API as well. The next step I am stuck at is - can my users upload a file on the front end, and the Autonomous Node or Open AI API assistant read the file and give feedback? For example, I am building a helpful AI assistant that helps with resumes and cover letters. So if my clients upload resume in the chatbot in PDF files. How can the bot read the PDf and give feedback. Right now, it is not able to read PDF files.
p
You can upload it to a knowledge base programmatically so the bot knows about it. Here's a thread about this: https://discord.com/channels/1108396290624213082/1366863664556150815 If you don't want to accumulate the resumes, you can delete them when the conversation ends wit the files API: https://botpress.com/docs/api-reference/files-api/openapi/deleteFile Happy Bot Building!