Feedback
Template overview
This template allows you to collect easily feedback from your users.
The template asks the user to rate their experience in three areas (products, delivery and customer service) and asks them to give more detailed feedback if they did not give a perfect three star rating. These ratings and comments are stored as variables and are then sent to an external database (Airtable). If the user gives their email address, they will also be offered a discount code for your store.
How to customize this template
Make sure to always update the NLP after loading a template!
This template uses Airtable as an external database to store the user feedback and discount codes. To customise this flow, you will therefore need an Airtable account, an Airtable base with feedback and discount code tables, and your Airtable API key.
Want to use a different service to store your user feedback? You can link any type of database to this bot, as long as it has an API. Read more about our API integrations here.
Flow: Feedback
Block: Ask email address
This block offers the user a discount code if they give their email address. If the user doesnโt want to give their email, they will be redirected to the end of the flow.
Block: Search discount code
If the user does give their email address, this block will look up an available discount code in an external database. By default, this template is set up to look up this code in an Airtable using the Search Record function of Chatlayerโs Airtable integration.
You can link any sort of database to this bot, as long as it has an API. Read more about integrations here.
You will need to customize this block by connecting it to your own Airtable account and your own Airtable base. However, when you have newly imported the Feedback template, it will be linked to this Airtable. Feel free to use it to test the template but make sure to connect your own database once you start using the bot for your own business.
If you do not yet have an Airtable account set up in Chatlayer, you can do so by clicking Connect new account and following the steps in the pop-up window. You will need your Airtable API key for this, which you can find on your Airtable account page.
Like the example Airtable, your own Airtable base should have a table with one Code_status column and one Discount_code column.
Once your Airtable has been set up, head back to this block in Chatlayer. In the Base field replace the exampleID with the ID of your own Airtable base. In the Table field replace the example ID with the ID or name of the table in your own Airtable base where you want to store the feedback. You can find your Airtable's base ID and table IDs here.
Block: Set discount code used
This action block changes the status of the discount code that was looked up in the previous block from Available to Used with the Update Record function. As in the previous block, you will need to connect to your own Airtable account and replace the example base and table IDs by your own.
Block: Send feedback to Airtable
This Action block sends the feedback the bot has gathered to Airtable using the Create Record function. As in the previous Airtable integration blocks you will need to connect your own Airtable account and base and table IDs. In your Airtable base you will need a table with columns for each of the feedback variables, as well as the userโs email address.
If your own Airtable uses different field (column) names you will also need to replace the names in the left hand column in the Record field by the field (column) names in your own Airtable.
Once you've connected the bot to your own Airtable, use the emulator to test your bot and verify if the feedback is written correctly to your Airtable.
That's it, now your bot can easily collect feedback from your users!
Last updated