Jump to content

Limiting search results bot api

api bot debugging

  • You cannot reply to this topic
No replies to this topic

#1 Maarten


  • Members
  • Pip
  • 1 posts

Posted 14 December 2018 - 09:39 AM

Hi all,

We've been steadily filling our new LiveZilla knowledgebase with information. Now, we're setting up a bot-user to answer customers chats by searching the KB articles.

By default, the bot will return ALL articles matching the search query. We'd like to limit the amount of articles returned to, say, three or five. We do this by editing the bot.php API URL.

Problem is: I can't find anywhere how to limit this.

{"RequestNumber":11,"ResponseTo":"","Value":"e-mail","BotId":"bf0cf69f","BotName":"Flexy","VisitorName":"","VisitorId":"3882e6","GroupId":"Klantenservice","Language":"NL","HumanAvailable":true,"KBMatchCount":63,"Operators":[list of operators]}

So, as soon as the bot hits this endpoint, it already KNOWS it's going to have 63 articles to return (KBMatchCount: 63 ). At that point, there is nothing we seem to be able to do to limit this.

The actual results are nowhere to be found. Neither the $requestobj nor the $responseNode have any information regarding the returned knowledge base articles.

Does anyone happen to know how to how to modify the resulting KB-articles before they are sent back to the bot? The API documentation on https://www.livezill.../chatbotapi/en/ doesn't mention a lot about this.

Thanks in advance!

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users