Skipping KB agent because the user did not send a ...
# 🤝help
b
I have a trigger from a web api that calls a Query Knowledge Bases card. The card never returns a response and I see this error in the logs: [agent-card] [KnowledgeAgent] [knowledge-query]: Skipping KB agent because the user did not send a message If I use the same card but initiate from a normal conversation from a start node, it works fine. Any ideas? TIA.
I'm still researching this issue as I'm currently stuck.
I found this in another discord thread: (the reason this happens is because some events like webhooks are non-conversational and have to be binded to an existing conversation to send messages)
w
is your trigger a webhook ?
yes, you have to specify the conversation id if you want to display a message after a webhook
#1233038281965572197
you need to set it up in a code card
like that
event.conversationId = event.payload.body.content.convID
in fact you need to send convID in your webhook content
b
Hi 000Bo. Thanks very much for the response and suggestion. I have not yet tried your approach but did find an alternate way to make the KB respond after watching this tutorial video:

https://www.youtube.com/watch?v=FKH3b9NlyaI

So I was responding to a webhook trigger that was fired using this code: window.botpressWebChat.sendPayload({ type: 'trigger', payload: { type: "ticketInfo", name: frmTest.elements["custName"].value, email: frmTest.elements["custEmail"].value, message: frmTest.elements["custMessage"].value }, }); this issue was type "trigger". When I used the code from the tutorial...the KB would respond. Code that worked: window.botpressWebChat.sendPayload({ type: 'text', text: frmTest.elements["custMessage"].value, payload: { type: "ticketInfo", name: frmTest.elements["custName"].value, email: frmTest.elements["custEmail"].value, }, }); Thanks for your help!!
w
Ok Nice !
8 Views