Enhancing a Dialogflow Agent

You can provide a ServisBOT skin to a new or existing Dialogflow bot with a few simple steps. The main difference is that the process to create the bot should start in Dialogflow. Managing the intents will happen there too.

The benefit of wrapping a Dialogflow bot with a ServisBOT experience is the ability for the bot to use markup, and how quick it is to get a front end up and running.

  1. Create a brand new agent in Dialogflow best instructions are here
  2. Create your Dialogflow Secret
  3. Build your bot.
    1. In our portal, navigate to “Bot Army” and click “Create Bot” and choose “From Blueprint”
    2. Select the “Dialogflow Bot” from Blueprints
    3. Name your bot, enter your Dialogflow ProjectID and select the secret you created in the previous screen
    4. Build it!
  4. Test and adjust your bot
    1. On the confirmation screen you will find a button to test your bots
    2. Send the bot a message
    3. You can add additional intents directly in Dialogflow and the bot will immediately understand those UserIntents
  5. Use some markup
    1. For one of your intents, drop in some markup as a response
  <TimelineMessage>
    <List selectable="true" title="Who is your favourite dwarf?" style="large-icon">
      <Item id="0" title="Grumpy" iconUrl="https://imgplaceholder.com/48x48/ffffff/333333/fa-image" />
      <Item id="1" title="Happy" iconUrl="https://imgplaceholder.com/48x48/ffffff/333333/fa-globe" />
      <Item id="2" title="Sleepy" iconUrl="https://imgplaceholder.com/48x48/ffffff/333333/fa-book" />
      <Item id="3" title="Bashful" iconUrl="https://imgplaceholder.com/48x48/ffffff/333333/fa-car" />
      <Item id="4" title="Sneezy" iconUrl="https://imgplaceholder.com/48x48/ffffff/333333/fa-building" />
    </List>
  </TimelineMessage>
  1. When you test that intent again, the bot should respond with a visual tile instead of text.

Smalltalk

You can train a DialogFlow agent to converse more like a human by enabling smalltalk. This allows the agent to answer a variety of questions from ‘How are you?’ to ‘Thanks for your help’.

When using smalltalk, it is advised to not have any intent names start smalltalk., as the smalltalk intent and the actual intent may clash.

Setting up smalltalk for your agent

To get started, you will first need to open the smalltalk section on the left navigation bar.

Smalltalk section

Once at the smalltalk page, click the ‘enable’ button and click ‘save’ at the top.

Enabling smalltalk

By default, Dialogflow provides a variety of built-in smalltalk responses. The answers to different questions are customizable by editing the categories below. Multiple response variations can be entered for each utterance if desired.

Smalltalk customization

Testing

Once ready, you can test your agent by typing in utterances into the console on the right of the page.

Testing smalltalk