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.
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.
This dialog 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.
If the user does give their email address, this dialog 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 will need to customize this dialog 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 dialog 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.
This action dialog changes the status of the discount code that was looked up in the previous dialog from Available to Used with the Update Record function. As in the previous dialog, you will need to connect to your own Airtable account and replace the example base and table IDs by your own.
This Action dialog sends the feedback the bot has gathered to Airtable using the Create Record function. As in the previous Airtable integration dialogs 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!