Sync knowledge base items

Last updated on
3 June 2022

Configuration

This module will add a new content type quickchat_kb (admin/structure/types/manage/quickchat_kb) and a view quickchat_kb (/admin/structure/views/view/quickchat_kb) so you can use them as a source to train your chatbots models.

You can configure the module from /admin/config/services/quickchat-api/sync defining:

  • A model name
  • A scenario_id
  • An API token
  • A view name: the view to use as a source of knowledge base items (you can use the one provided by the module or a custom one).
  • A view display: the display from the view name selected above.
     

From that screen you can add multiple models, with a different pair of token and scenario_id and view source.

View

In case you want to use a different view as source of knowledge base items be aware that if you want to split the results into different knowledge base items you need to use the following separator: \n otherwise the view results will be considered as only one knowledge base item.

Operation

Once you configured the sync model mappings the next step is to sync the knowledge base items for your chatbot models by going to /admin/content/kb

There you can see a list of the configured models:

If you click in the title of the model to sync you will see a page similar to this one:

In the preview section you can see the knowledge base items that you are about to sync. The values displayed there are the results of the view and view display that you selected under the model configuration section.

The available actions are Update and Rebuild:

Update action will push the knowledge base items to the selected model (scenario_id) to quickchat.ai and rebuild action will retrain the chatbot with the updated knowledge base items.


 

Tags

Help improve this page

Page status: No known problems

You can: