DF parameters and entities

Oleg KleimanOleg Kleiman
1 min read

To detect the user's utterance intent it's crucial to extract the significant parts of the sentences and parametrize the less significant ones. Say "How old are you" for an answer "I'm 20 years old". The number 20 is a variable component of the sentence, call it a parameter. It varies by conversation.

In Dialogflow, you can define the parameter 'age' and use the brilliant DF syntax analyzer to extract this number into the parameter.

Aside from the Parameter Id (Display Name), any specified parameter also includes the Entity type with several predefined @sys-based options (@sys.number in our case). Annotating training phrases is very useful in this context.

There are two ways of assigning input intent parameters:

  1. When an end-user input matches an intent at runtime

  2. The fulfillment for an intent route uses a fulfillment parameter preset.

The parameters can be referenced at the session level or intent level. For example, later you can use this one in the fulfillment:

0
Subscribe to my newsletter

Read articles from Oleg Kleiman directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Oleg Kleiman
Oleg Kleiman