🆕Use Tables to store your KBAI questions

You'd like to pull a list of what are your customers questions managed by your KBAI? You can set that up with our in-house Tables.

Collect your KBAI answers

To store your KBAI questions and answers with Tables:

  1. Create a KBAI flow inside your bot or use the KBAI template bot.

  2. Create a Table called QuestionCollection, with 2 text columns:

    • questionAsked

    • answerGiven

  3. Save.

  4. Go back to your Flows.

  5. Open the block where the KBAI search happens. In our case, it will be the Not understood block.

  6. Add a Go to after this block that you'll call Populate table.

  1. Save this block.

  2. Open the Populate table block.

  3. Select Insert record to the QuestionCollection table.

  4. Configure the operation so that:

    • {internal.nlp.expression} is added to the questionAsked column

    • {knowledgebase.answer} is added to the answerGiven column

You could also add a time stamp:

Add the timestamp to your Table

To add a timestamp to your Table:

  1. Make sure your Table has a timestamp column with a timestamp column type.

  2. Open the block that happens just before the Populate Table block.

  3. Add a Set variables step to it.

  4. Set a {timestamp} variable as an expression for NOW(). You will need expression syntax for this.

  1. Click Save.

  2. Open your Populate Table block.

  3. Insert a {timestamp} record in the timestamp column.

  4. Click Save.

The time stamp would appear like this in your Table:

  1. Save your changes.

Now you should be able to see a list of your questions and answers from your Tables!

Collect questions where KBAI was unsatisfactory

It can be useful for you to store the places where your KBAI didn't answer to what the user said.

To collect variables where your KBAI was unsatisfactory:

  1. Find the blocks where your KBAI goes when either an error occured or no result was found.

  2. In each of them, pass on a variable that you'll call failure_reason, and give it the value error occured or no result.

  3. Make sure you have a column in your Table to store those.

  4. When you populate your table, add those to the Table.

Last updated