Gathering user feedback
Last updated
Was this helpful?
Last updated
Was this helpful?
This tutorial will show you how to gather feedback from your users about the quality of the bot and send that feedback to an external database for further analysis. In this example, we will send the feedback data to Airtable โ a tool that allows you to create a spreadsheet that you can talk to using an API.
Start by creating a flow in your Chatlayer.ai bot that contains rating options, for example:
Make sure you save the rating of the user as a variable "star_rating" with a number value
As a Go To, create a new input validation called "long text feedback"
Save the additional comments under the "comment" variable, and Go To a newly created Action "send feedback to Airtable"
In the newly created Action, add a "Code" plugin that contains the following header:
The "nextDialogState" is where your bot will go after saving the feedback to Airtable
Create a new Airtable with these columns:
In this tutorial, we will be using this Airtable. Feel free to reuse it!
Add the following code to your Code plugin in Chatlayer.ai
Remember to get the right app id, table name and bearer token for your Airtable. You can find it here.
Add a small confirmation to the "feedback recorded" bot dialog
Ready to test
The feedback data from the user shows up in the Airtable, ready for analysis!