Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »

Dialogflow and Filter Group Information

Adding Intents to the Dialogflow Agent

This can be done manually or by uploading a .json file that we provided.

Manually Adding Intents

  • To add an intent to the agent, when on the dashboard page of your Dialogflow Agent, click on the '+' sign next to Intents' in the left-hand bar.

  • You can give the intent a name on the top screen and add a couple of variants in which the intent may be worded under Training Phrases' (See below).

  • Such variants may be thought of from the top of your head, or come forward from actual conversations with a user during testing.

  • Be sure to press the blue 'SAVE' button when you are done. If you have provided over five phrases, Dialogflow will train a classification model that recognizes phrases similar to the training phrases.

  • For a proper connection to the MARBEL agent, make sure that the exact Intent name is given as a title in the `Actions and parameters' box. The names of the Intents and enitites will be provided to you

  • Note that the names of entities under the Action and Parameters area should be given in lowercase.

  • Also, make sure that the webhook switch is checked (see the figure below). Responses can be left untouched, as those are handled by the MARBEL agent.

Uploading Intents

On the Intent page, one should select the three vertical dots in the upper right-hand corner

and then select ‘upload intent’.

You choose the downloaded .json file from your directories, upload it and save the intent.

Add Entities to Dialogflow Agent

Entities can be made by clicking the '+' sign next to Entities' in the left-hand bar of the dashboard page or CREATE ENTITY at the top.

You can specify entity types (e.g.: 'recipes') and entities (e.g.: 'pasta aglio e olio').

When manually creating entities, be sure to use the synonym functionality to equate words to each other. This is important for the robustness of the agent, since different users will likely use different words to refer to the same entity.

For example:

On the right, we see the synonyms or other word versions of southern-american. In the database of recipes, a recipe from South America is coded as ‘southern-american’, which is why the standard name of the entity (the name on the left) is exactly the same. This way, any of the forms to the right that are mentioned by the user will be forwarded to the MARBEL agent as ‘southern-american’, and can be aligned with the database entry.

We shall provide CSV files for some of the entities, so you do not have to manually add the plethora of entities. This can be used in Dialogflow by going to the main page of entities and clicking on the three vertical dots next to the blue CREATE ENTITY button. Click ‘upload entity’ and choose the file you wish to upload.

For additional pointers, you may inspect the following resources:

  • No labels