You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Profile options that are set by the chat widget and are accessible from the YAML

Question
23
Views
0
Comments
edited Aug 6, 2020 3:51PM in Digital Assistant

Content

When the chat widget first loads in the HCM application it sets a single profile value, givenName, to the logged-in user's display name, which is typically of the form "Firstname Lastname".  This profile value can be immediately accessed from the YAML flow within the HCM Skill using the syntax "${profile.givenName}"

For example, you could Welcome the user to the Skill by name using the following State:

  sayHello:
    component: "System.Output"
    properties:
      text: "Hello ${profile.givenName}"
      keepTurn: true
    transitions: {}

When the user enters their first phrase into the chat widget, five additional profile values are set as below. These will all subsequently also be available in the YAML flow of the HCM Skill using the syntax shown:

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!