https://discord.gg/botpress logo
Webhook: the conversation and user variables are ...
# 🤝help
w
I have a webhook that should start a flow where I need to read values from some conversation and user variables. However, when I try to read these variables in an execute card, all the conversation and user variables are empty, even though they are filled during the conversation. I don't understand if I'm making a mistake or if this is an issue. https://cdn.discordapp.com/attachments/1403035975940046888/1403035976174932038/immagine.png?ex=68961693&is=6894c513&hm=67417a927db06a3e158dc9a60362c2286a3c676647f66e788714630f7ab3116e&
b
I can help you with any difficulty, let's have a chat now and proceed to your project
w
This is a chat. If you have resolved the issue, please share it here so you can help me and others.
b
Let's have a chat in dm
w
Thank you, but I'm not looking for private help
b
Bye
p
Could you share what payload you are passing?
w
Hi Leanne, I call in post https://webhook.botpress.cloud/:webhook/update-vars/?conversationid=conv_01K22C76622WYBG60GEBMZ2C86&userid=user_01K22C75JVMYW35DC26RPX6Z1S the body is
{ "myvar": "myvalue" }
. The webhook trigger is ok and the flow pass to the connected node where in an execute card i use
console.log(user)
and
console.log(conversation)
and in the log i see all my user and conversation but empty:
Copy code
json
conversation: {
  botName: '',
  companyName: '',
  kbId: '',
  numOfTimes: 0,
  parties: '',
  welcomedUser: false
}
p
And you're testing it outside of the emulator right?
w
yes
Hi @prehistoric-airplane-85682 I created a demo bot and report a problem report_01K2319T24Y7431WZNCR2PGFQE https://webhook.botpress.cloud/:webhook-id/read-vars/?conversationid=conv_01K22ZT192PEBS0P4V1FF32G3Z&userid=user_01K22YJB7A1HWDMSZW4CHEKFW7
p
Thanks, I'll take a look
w
thanks to you
Hi @prehistoric-airplane-85682 are there news?
Hi @prehistoric-airplane-85682 , are there news?
Hi @bumpy-butcher-41910, I'm trying again but the problem is still here. Can you help me? If it helps, I can also provide an export.
2 Views