Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
minLevel1
maxLevel6
outlinefalse
typelist
printablefalse

Dialogflow

Tip

Before you start: make sure your MARBEL agent is connected to your Dialogflow agent and you completed the Getting Your Conversational Agent Up and Running step.

...

Tip

Check that your greeting intent is working by using the microphone button in the test console on the DIalogflow console page. Try various phrases also using the test console and check whether what you say is recognized as a greeting intent.

Prolog and Patterns

Greeting pattern without self-identification

...

Warning

When you have added a name for your agent, and the new pattern and rule for generating a self-identifying phrase, you can now Run your Conversational Agent again to hear your agent self-identify itself.

Visuals

Welcoming Page

When a user has visited the Start page and clicked on the Start button, your agent should start by greeting its user. But we would also like to show a webpage that welcomes the user and is shown while the greeting pattern c10 is active and ongoing. A new page should be shown if only because we need to provide the user with the ability to start talking too by clicking on the microphone icon.

...

Make sure you have added the c10 pattern to the agent’s agenda in the dialog_init.mod2g file. Then test your agent by launching your MARBEL agent in Debug mode. When you run your conversational agent, you should:

  • hit your Start page,

  • be able to press the Start button,

  • and after you do so, your agent should introduce itself;

  • then you should be able to unmute yourself by clicking the microphone icon in the top left corner,

  • give Google Chrome permission to use your microphone (only needed once every time you restart the browser when you launch the SIC server), and

  • return the greeting, by saying hello or anything else you come up with that sounds like a greeting.

Check whether your Dialogflow agent understood what you said and classified what you said into as a greeting intent by inspecting the terminal in which you launched the SIC server:

...

All done? → https://socialrobotics.atlassian.net/wiki/spaces/PM2/pages/2216001572/Building+Your+Agent#Agent-Capability-2%3A-Specify-Goal-and-Select-Recipes-by-Name Also pause the MARBEL agent and inspect the session/1 fact. You see that the greeting pattern has been completed and a new empty sequence has been added at the head of the session history (list).

Terminate the MARBEL agent and restart it in Debug mode again. Repeat the interaction but this time, when it is your turn to speak, say something that is not remotely close to a greeting instead. Check out the terminal again to see how Dialogflow classified what you said. Pause the MARBEL agent and again inspect the session/1 fact. What is different, and what is the same? To understand what happened, check out the Session updating part at the top of the dialog_update.mod2g file.

Info

All done?

Then proceed with Cap2: Request a Recommendation.