Webhook event to "query knowledge card"
# 🤝help
s
Can someone help me understand a problem? It is not possible to use {{event.payload.body.data.message.text}} in a "query knowledge base" card? Using the payload from a webhook to search for an answer in the knowledge base doesn't work. If I ask the same question using raw input, the search is performed. Can someone tell me why?
w
Hi 👋 @salmon-keyboard-56841 If you want ton display something in the chat after a webhook, you need to specify the conversation Id (so you have to send it first and then get it with {{event.payload.body.convID}} or whatever your structure is
s
Tks to, but see: Query knowledge base dont answer return. IF the same question is send by raw input the answer comming. ?? https://cdn.discordapp.com/attachments/1248251440305274962/1248260849533980672/image.png?ex=66630502&is=6661b382&hm=6df26b91db10b02b72421b13723fb471d8462ec1b486ec3cc6177835a7815496&
w
So it seems that the data your are passing to the query KB after the webhook is empty 😅
What is the configuration for your « query kb » card ?
w
Okay 👍 I will try to do something like that and I comme back to you
s
okay tks for
w
I don’t think I will have the time to try this today , but I hope tomorrow
s
I'm try to do but not success.. Appreciate your work!
w
First I was getting the same message, then I tried on another bot
But it is not working at all
I will try to dig a bit because that is interesting !
Let me know if you succeed @salmon-keyboard-56841
s
I still haven't found a solution for this. I even took a break to clear my mind!
Oh my God!! I found the solution! Before the card kb execution set the event.preview with 'webhookTrigger' value.
w
wow i will try !
that's really weird because normally we don't have to set this to get data from the webhook
s
Exactly, I believe this is a bug!
5 Views