https://discord.gg/botpress logo
How to Send and Use Custom User Data in Botpress f...
# 🤝help
g
Hi! I connected Botpress with n8n using the Chat API. I was able to successfully create a user and conversation ID, and I can send and receive messages without any issues. Now, I want to pass some variables (like custom data) when creating the user so that the bot’s responses are based on those variables. Can you please guide me on: 1. How to send variables when creating a user through the API, and 2. How to access those variables inside Botpress during the conversation? Thank you! 🙏
w
hi mohsin! you can just send everything you want on the payload body when creating the message, conversation or user
and then access it through {{event.payload.(your path here))}}
i use n8n myself to pass the user's name from whatsapp to botpress