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 7 Next »

FOR ALL: Dialogflow Agent Creation

To set up an agent on Dialogflow, first sign up here. You may use your VU-account for logging in.

  • Choose 'Create new agent'.

  • On the next screen, start by choosing a name for your agent

  • Then give the preferred language (English).

  • When finished setting up, click the 'Create' button.

  • You will now see the general dashboard for creating the agent, with options to create your first intents or entities.

You can share your Dialog agent with your group members and TA by clicking the settings button, in the top-left corner of your dashboard screen, next to the name of your agent. Next, click on `Share' and add the email addresses to share the agent with, under 'INVITE NEW PEOPLE'. Click here to see how to connect a DialogFlow agent to your agent.

Dialogflow and Filter Group Information

Add 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(will be provided) 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’, thus we need to make sure that other words with the same meaning can be compared to the database knowledge.

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