LeeBoonstra.dev

Conversational AI Blog

(Beginner) Tutorials, Guides and FAQs on Chatbots, Voice Bots, Dialogflow Essentials and Dialogflow CX.

Welcome to my conversational AI engineering blog. As a SWE and advocate for Google, I build a lot of cool stuff, and I'm the bridge between Google's engineering team and you; chatbot developers, UI/UX designers, conversational experts, linguists, and contact center engineers.

—Lee Boonstra, www.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 is a software engineer and advocate for the Cloud office of the CTO at Google, a diverse team of highly experienced engineers and technologists, working on behalf of the Cloud CEO, whose mission is to foster market-disrupting collaborative innovation between Google and the world's most ambitious organizations. Expertise in AI & Voice, Lee is a public speaker and a published author for O'Reilly and Apress.

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.

Lee lives in Amsterdam, the Netherlands, and is a rainbow mommy.

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