Skip to content

Parameters

Definition

  <parameters>
    <parameter predicate="predicate_name" format="format"/>
  </parameters>

Specifies the parameters to be used as arguments by the target service.

Attribute Type Description
predicate string Required. The name of the predicate that is used as a parameter. Should match the name of the corresponding predicate declared in the Ontology. Predicate names are written using lowercase separated by underscores, e.g. 'current_temperature'.
format string Required. Specifies the field in the request from which the parameter should be taken. Available options:
  • value
  • grammar_entry

Children

Behaviour

The <parameters> element in the service interface contains all the parameters sent as arguments to the <target> service.

Each of the parameters used by the specified target must be passed in a <parameter> child.

Format attribute

The format attribute specifies if the parameter passed to the target service has to be taken from the 'value' or 'grammar_entry' field of the request.

Examples

Forward a Call to a frontend with a selected contact and phone

<action name="Call">
  <parameters>
    <parameter predicate="selected_contact" format="value"/>
    <parameter predicate="selected_phone" format="grammar_entry"/>
  </parameters>
  <failure_reasons/>
  <target>
    <frontend/>
  </target>
</action>

Last update: February 10, 2022