LeeBoonstra.dev
Build a Conditional Template in Dialogflow for Google Assistant With Custom Payloads

Build a Conditional Template in Dialogflow...

What I like most about Dialogflow, (the tool to create Chatbots and Smart Assistants / Google Assistant apps), is that you can maintain your conversations within the Dialogflow UI. Many users write their complete FAQ content in intents and responses. You no longer need a developer to tweak your conversations or deploy your agent which makes it very scalable for large organizations. It’s also possible to load data from external systems. In that case, you are hosting parts of the conversation elsewhere. You could store these parts in language files or databases. Some organizations prefer to write the full conversation in the Dialogflow UI. That way your copywriters can maintain the full conversation.

It’s good to know that it is possible to use templates and conditionals within the Dialogflow UI. The trick here, is to make use of the custom payload response setting, which you can find in the Intent > Responses section.

Lee Boonstra

Lee Boonstra

Lee Boonstra (they/them) has been a presence in the tech world since 2007, wearing many hats from software engineer to prompt engineer, web developer to technical trainer, and developer advocate.

With eight years of experience at Google under their belt, they now hold the role of SWE Tech Lead at the Google Cloud office of the CTO. Leading innovation projects, Lee aims to disrupt markets and foster collaboration globally. Their expertise in Conversational and Voice technology, alongside (Generative) AI, has led to recognition as a respected public keynote speaker and published author for O’Reilly and Apress. Lee eases tech headaches and celebrates those light bulb moments.

Lee Boonstra

Lee wrote a book for O’Reilly: Hands-on Sencha Touch 2 and lately: the Definitive Guide to Conversational AI with Dialogflow and Google Cloud for Apress.

My book
Build a Dynamic Welcome Message With Dialogflow Webhook Fulfillment and Actions on Google.

Build a Dynamic Welcome Message With Dialo...

Let’s have a look into how you can create custom dynamic Welcome messages for...

Actions on Google With Google Cloud Functions

Actions on Google With Google Cloud Functi...

When building Google Assistant apps (actions) with Dialogflow, you likely will have to write s...

Disclaimer: The opinions stated here are my own, not those of my company. - 2022 ® Lee Boonstra