Webhook Event Payload not working
# 🤝help
l
I have a workflow which has a webhook that recieve data from make.com and the webhook is working fine i did evrything according to the documentation but i am not able to figure out how to actually use the data in the bot docs says that i have to use event.payload but its not working pls Helpp https://cdn.discordapp.com/attachments/1255490368418349126/1255490917868240966/Screenshot_2024-06-26_172217.png?ex=667d5288&is=667c0108&hm=532cf18f5a6d955de9f1e6e969cd8bc03d424d65470023b50ebbaa27d2b8fab2&
@bumpy-butcher-41910
w
Hey 👋 in order to display information from your webhook in the web chat you need to set the conversation id (typically send it to make from a conversation and then retrieve it in the field conversation Id in your screenshot using event.payload.body.conversationID)
And in your text card, have you put double brackets between event.payload.body.category ?
l
Thanks a lot for responding
How do i get a conversation id
w
Into your workflow, you can have access to it with event.conversationId
l
okay i see
thanks again
w
Let me know if it works for you 🙂
l
how do i send it to make i tried it showed a error '
this is the code i use to send data to make i usually only send name
i added con id for the covo id
w
Just change the line in your data to : convID (or whatever you want) : event.conversationId
Without brackets in the js
l
done still an error
w
What’s the error ?
Can you share your logs maybe ?
l
uh it was on me I ran the module seprately notthe entire flow it worked this time
thanks a lot
i guess i had to run the enire thing so that it can genrate the id in a previous node
but anyways it worked
hey also my webhook is recieving data when i check in discover events but it doesnt activate the webhook node
w
Great
Did you u publish your bot and tried in the web chat ?
l
hey sorry it was actualy late midnight here
hope you can still assist me when you see this messege
yes
w
Do you get any other errors ?
Don’t hesitate to share a little video maybe
l
hey sorry for replying this late it must be annoying
no
i am actually travelling for last few days
w
from what i can see, all is working fine !
the thing is that you are testing it in the studio so this is a fake conv id (convo-11)
just publish it and test from the webchat and that should work fine
still the same
w
in advanced option in your webhooks, did you set the {{event.payload.body.conversationId}} correctly and do you get any errors in your logs (not those in the studio )
ah okay
here is the error
w
you have to set the conversation id you get from your webhook
so {{event.payload.body.conversationId}}
l
okay i see
w
be sure that the name correspond to your data coming from the webhook (like the exact same name for conv id
l
it shows it in red
and says type error
w
not a problem
l
sorry what do you mean ?
w
{{event.payload.body.conversationID}} in your case
l
i see
w
because in your webhook you have data called conversationID and not conversationId
you have to be consistent in the name of you data
l
okayi made the changes let me try in webchat after publish
sstill the same
w
i will not be able to help you anymore i thikn 😉
but for now with what i shared you should have a correct setup , and the erroe doesn't seem to come from the webhook
l
so like should i make a new bot or somethin
or a new account maybe ?
w
yep you can try to create a new bot and import this one
no need
l
sure
i see
thanks for all the help
w
you're very welcome
2 Views