# Chatbot knowledge base

**URL:** <https://community.hubspot.com/t/chatbot-knowledge-base/127077>\
**Category:** CRM\
**Tags:** chat\
**Created:** [February 28, 2025, 7:32am UTC](https://community.hubspot.com/t/chatbot-knowledge-base/127077 "2025-02-28T07:32:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![KKarvanova](https://avatars.discourse-cdn.com/v4/letter/k/77aa72/32.png) [@KKarvanova](https://community.hubspot.com/u/KKarvanova)\
**Post date:** [February 28, 2025, 7:32am UTC](https://community.hubspot.com/t/chatbot-knowledge-base/127077/1 "2025-02-28T07:32:10Z")

</div>

I’m trying to set up a chatbot, and one of the actions—Knowledge Base Lookup—is causing issues. When a user enters their question in the chat, HubSpot starts searching the Knowledge Base but gets stuck. It doesn’t return any results or a message saying nothing was found. However, if the user types anything else afterward, even just one letter, the bot then returns the search results for the first query. The issue seems to be that the action doesn’t trigger immediately, and I can’t figure out why. Here are some screenshots with an issue:

 ![Screenshot_9.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/4/d/4dd7f5551351e364e2f013c982869c2339883d04.png)

 ![Screenshot_8.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/5/581146d98a28bd057d2856944d85a6a6974cbf64.png)

---

<div class="post-metadata">

**Author:** ![kennedyp](https://avatars.discourse-cdn.com/v4/letter/k/49beb7/32.png) [@kennedyp](https://community.hubspot.com/u/kennedyp)\
**Post date:** [February 28, 2025, 5:24pm UTC](https://community.hubspot.com/t/chatbot-knowledge-base/127077/2 "2025-02-28T17:24:23Z")

</div>

Hi @KKarvanova! Welcome to the Community-- happy to have you here 😊

Is your chatbot live on your site? Have you tried using another browser or an incognito window to see if the same behavior occurs?

---

<div class="post-metadata">

**Author:** ![KKarvanova](https://avatars.discourse-cdn.com/v4/letter/k/77aa72/32.png) [@KKarvanova](https://community.hubspot.com/u/KKarvanova)\
**Post date:** [March 3, 2025, 5:48am UTC](https://community.hubspot.com/t/chatbot-knowledge-base/127077/3 "2025-03-03T05:48:41Z")

</div>

Thank you 😊

Yes, i`s a live chatbot. I observe the same behavior in different browsers, in incognito mode and in the CRM preview.

---

<div class="post-metadata">

**Author:** ![KKarvanova](https://avatars.discourse-cdn.com/v4/letter/k/77aa72/32.png) [@KKarvanova](https://community.hubspot.com/u/KKarvanova)\
**Post date:** [March 5, 2025, 2:07pm UTC](https://community.hubspot.com/t/chatbot-knowledge-base/127077/4 "2025-03-05T14:07:01Z")

</div>

I figured out the issue with the knowledge base search. The workflow I wanted to implement was as follows: the user enters the chat and can either choose one of the options or ask a question in free form. If the question doesn’t contain specific words like “purchase” (which would immediately direct them to sales), the bot would start searching for relevant information.  
However, the problem is that the search trigger works differently. It uses the input provided **after** the trigger is activated for the search. The question the user asked **before** that is not processed by the chat in any way.  
So, the interaction flow with the user will not be like this:  
**Start → Trigger with question options → Free-form user input → Search in the database → Display result**  
but rather like this:  
**Start → Trigger with question options (where we disable free-form input and add an option to “Ask a question”) → Search in the database → Display result.**

**Maybe we can do smth with this using js snippets? Save message for example**
