Action in Dialogflow is a rather simple concept. In the previous section, you created an intent using the template who is the first president?. Action in the FaqChatbot agent is responsible for extracting parameters such as @president-number and @sys.geo-country from the intent. Typically, you do not have to define the name of the action, as Dialogflow will automatically add the action name, but you can also give the action name manually, president_number, as shown:
The following screenshot shows the action:
Action
In the next section, you will learn how to create a context using an action. Using context, the action can extract values, not only from the current intent, but also from external intents, allowing current intents to access parameters from other intents.