DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • Building and Deploying a Chatbot With Google Cloud Run and Dialogflow

Trending

  • Bringing Intelligence Closer to the Source: Why Real-Time Processing is the Heart of Edge AI
  • Feature Flag Debt: Performance Impact in Enterprise Applications
  • AI Agents in Java: Architecting Intelligent Health Data Systems
  • Evaluating SOC Effectiveness Using Detection Coverage and Response Metrics

Create a Rich Message Button in Dialogflow

In this tutorial, we will learn how to add a rich message button in chatbots using Dialogflow.

By 
Devashish Mamgain user avatar
Devashish Mamgain
·
Mar. 24, 20 · Tutorial
Likes (3)
Comment
Save
Tweet
Share
12.5K Views

Join the DZone community and get the full member experience.

Join For Free

Rich messages are widely used in chatbots. It provides the user with a faster way to respond just by clicking on the rich message button. Buttons are the most widely used rich message and are used for providing a set of options, surveys, appointment booking, etc.

In this tutorial, we will learn how to add a rich message button in chatbots using Dialogflow.

We will be using the Google Assistant format for this tutorial.

How to Add Rich Message Buttons

Buttons are the most widely used rich messages and are used for providing a set of options, surveys, appointment bookings, etc.

Dialogflow supports rich messages including buttons, links, images, cards, etc.

It provides 2 ways to set the response:

  1. Text Response: Used for text-based messages and works on all platforms
  2. Custom Payload: Custom payload in JSON format for rich messages

Different platforms such as Facebook messenger, Google Actions, Kik, etc. support their own custom payload.

Google Assistant supports the following rich messages:

  • Simple Response
  • Basic Card
  • List
  • Suggestion Chips
  • Carousel Card
  • Browser Carousel Card
  • Link Out Suggestion
  • Media Content
  • Custom Payload
  • Table Card

Suggestion Chips and Quick Replies

Button type rich message is referred to as “Suggestion Chips” by Google Assistant and “Quick Replies” by Facebook messenger.

Go to Dialogflow console, select the intent, and scroll down to Responses. Click on “Google Assistant” to see the list of support rich messages.

Select “Suggestion Chips” and click on “Add Item” to list down the buttons.

Create a Rich Message Custom Response Using Dialogflow


Screenshots from Dialogflow interface

Add Rich Message Buttons to Websites and Mobile Apps

There are many products that provide a plugin to integrate Dialogflow rich messages into your website. Alternatively, create your own custom payload in JSON format, parse the response in your website and mobile apps codebase, and render it on the UI. 

Rich message buttons not only make the interface book pretty, but they also drive more actions from your users and provide a better overall conversational experience.

Dialogflow

Opinions expressed by DZone contributors are their own.

Related

  • Building and Deploying a Chatbot With Google Cloud Run and Dialogflow

Partner Resources

×

Comments

The likes didn't load as expected. Please refresh the page and try again.

  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook