10 Column CSV Format for Rich Responses FAQ Bot

10 Column CSV Format for Rich Responses FAQ Bot

Supporting rich responses is possible if you use Markdown and its extensions to write the responses. 

There are two important things to note here:
a) you should be fairly proficient in Markdown to be able to use this feature. While Markdown is not complex, it certainly requires some technical know-how
b) even though using Markdown allows you to create rich responses in your Dialogflow bot, you are still restricted to only these three types of responses:
- clickable hyperlinks
- buttons
- info card (such as the one you have in Dialogflow Messenger)

With that said, here is the only difference in the 10 Column CSV format for Rich Responses (versus the 10 Column CSV format for regular text responses). 

The Response2 column has been replaced by the RichResponse column. 

You can download a sample 10 column rich response CSV file from the bottom of this article. 

Important Difference in RichResponse column


Unlike the Response column and the Response2 columns, in the case of RichResponse column, all the values for a given intent are converted into the appropriate payloads and all of them are thus displayed in the response. Remember that in the case of Response and Response2, Dialogflow randomly selects only one from each Text response block. 

This means, for example, you can display a hyperlink, and then a card, followed by some buttons all in the same response by specifying them in the appropriate sequence. 

If you add pure text within one of these rows, it will also render as a plain text response. 

And inside the RichResponse column, you can specify the Markdown as follows:

Use regular Markdown links to specify clickable hyperlinks, and add a class called link. The notion of adding a class to Markdown comes from Markdown Extensions. I use Attribute Lists in BotFlo.

Example:
[The fastest way to generate Dialogflow FAQ Bots](https://app.botflo.com "BotFlo"){: .link}

You can specify the icon and the color for Dialogflow Messenger:
[The fastest way to generate Dialogflow FAQ Bots](https://app.botflo.com "BotFlo"){: .link color=#00FFFF icon=chevron_right}

Inside Dialogflow Messenger, this becomes a clickable link with anchor text:


Buttons

Use the Markdown hyperlink, but add an extension to indicate that it is a button.  

Use the .btn class as an extension attribute, and leave the actual hyperlink empty. 

Example:
[Button 1](){: .btn }[Button 2](){: .btn }[Button 3](){: .btn }

Inside Dialogflow Messenger, this becomes buttons:




Cards

Use Markdown for hyperlink, but add a class called card at the end of it. 

In Dialogflow Messenger, this becomes an info response type (card):

[This becomes the card title](https://miningbusinessdata.com/  "This will be the subtitle"){: .card img=https://i0.wp.com/miningbusinessdata.com/wp-content/uploads/2020/12/mbdshield1.jpg }

Notice that the text inside the square brackets at the beginning becomes the card title in Dialogflow Messenger, the link is the action URL of the card, the stuff inside the quotes next to the link becomes the subtitle of the card, and the image attribute at the end becomes the image displayed on the card. 





    • Related Articles

    • 2 Column CSV Format (Simple FAQ Bot)

      The 2 column CSV format is the simplest format for using the FAQ bot generator in BotFlo. You can download a sample 2 column CSV file from the bottom of this article.  It consists of just a simple Query and Response format, specified in 2 columns as ...
    • 10 Column CSV format for Advanced FAQ Bot

      You can add multiple training phrases and multiple responses per intent using the 4 Column CSV format.  However, if you want to specify input and output contexts, you need more columns in your CSV file. The 10 Column CSV file helps you specify the ...
    • 4 Column CSV Format (Basic FAQ Bot)

      While the 2 column CSV format allows you to add only one question and answer per intent, you can specify multiple training phrases and multiple responses per intent using the 4 column format. You can download a sample 4 column CSV file at the bottom ...
    • Convert 10 Column Rich Response CSV to Dialogflow agent ZIP file

      Pricing: BotFlo Plus and BotFlo Pro Link to tool 1 If you haven't already done so, first log in to BotFlo. 2 From the menu, select FAQ Bots > Rich Response > Rich FAQ (10 Column) 3 Select the bot's language 4 Select the bot's timezone 5 Browse and ...
    • Convert 4 Column CSV file to Dialogflow agent ZIP file

      Pricing: BotFlo Plus and BotFlo Pro Link to tool 1 If you haven't already done so, first log in to BotFlo. 2 From the menu, select FAQ Bots > Text Only > Basic (4 Column) 3 Select the bot's language 4 Select the bot's timezone 5 Browse and select the ...