Dialogflow Template mode now deprecated

Update 17 Dec 2018: I mentioned earlier that I will write a post to explain how you can modify your bot to handle this change. I noticed that Svetlana from the Dialogflow team has provided a comprehensive answer for how to deal with this change.  I don’t really have much to add to that.

Recently, it was discovered (unfortunately, there was no official announcement) that the template mode has been deprecated in Dialogflow.

People going back to older template mode training phrases were shown this message.

I intend to write a longer article about this in a later post, but for now, if you have been impacted by this change, please leave a comment below this article and explain how exactly you were using this feature.

In my second post, I will take a look at the questions/comments and try and provide suggestions as to how you can work around this.

Also note that there are probably going to be scenarios where there may be no way to replicate the behavior of the template mode using only the example mode, but from my experience it is doable for the MOST part.

Also, a quick note on those who have used the @sys.any wildcard entity in template mode in your agents - you can achieve the same effect by simply typing out some random phrase which doesn't get annotated, and then select the entire phrase, and then assign it to the @sys.any wildcard. You will get a warning from Dialogflow, and it is actually important to understand the warning, but you can also ignore the warning and create the annotation anyway.

About this website

BotFlo1 was created by Aravind Mohanoor as a website which provided training and tools for non-programmers who were2 building Dialogflow chatbots.

This website has now expanded into other topics in Natural Language Processing, including the recent Large Language Models (GPT etc.) with a special focus on helping non-programmers identify and use the right tool for their specific NLP task.

1 BotFlo was previously called MiningBusinessData. That is why you see that name in many videos

2 And still are building Dialogflow chatbots. Dialogflow ES first evolved into Dialogflow CX, and Dialogflow CX itself evolved to add Generative AI features in mid-2023

  • I have a intent which accepts comments from User. Previously I was using the template mode and @sys.any in the phrase to accept all the text from the user. Now template mode has been deprecated and it goes to fallback if the user provides any text which is not understandable. How can I achieve the previous functionality with example mode? Please guide

    • Just type in some text like “This is a comment” in the training phrase, press Enter, select the whole text, and annotate it as @sys.any from the dropdown which pops up. In effect, that is going to do the same thing.

      Make sure the intent has an input context, otherwise this intent will start randomly matching all kinds of unexpected phrases. (By the way, this statement would be true even if template mode was still available)

  • I was using it to ‘smart match’ a department at a store for one of my projects. I wonder why Google has features that work well but then they just deprecate them? Seems kinda A.D.D. to me.

    • I think Dialogflow team said the template mode makes their pattern matching algorithm work poorly, and that example mode forces you to provide a bunch of examples, which should help the ML.