How to extract Trait Type

How can the Trait Type be identified for the traits that are extracted from the user utterance?
I am able to see the traits using context.traits object, but I’m not able to identify the Trait Type that the trait is associated to.

Example:
The extracted traits are
[
“was accidentally damaged”,
“Cracked screen”
]
but I’m unable to know which trait type they are associated to.
image

Hi @mackenzie.lyles ,

You can’t extract trait type.
The type, a better name is really group, is just an artificial name to link several traits together into a single classification

  • the individual traits in the group are compared and only one of them will be selected.

If some-one wants to build an abstract way of processing traits then can use a naming convention where the type is built into the individual trait names.
The final trait results is just an array of strings.

Thank you,
Srujan Madderla
Kore.ai Community Team