Why collected parameter values don't match the recognized entity?

Question

I created a dialogue inside a reply in advanced AI agents where a parameter is inside the Entity recognized customer message block. When I review the collected parameter in the conversation session data, it doesn't match the recognized entity. Why does this happen?

Answer

When you add a customer message block in a dialogue, you can set it to respond with the scenario Entity recognized. Use this option when the end user responds to the customer message block with a defined piece of information, an entity.

You can collect a parameter in this scenario. Select Collect parameter and enter a name under Parameter name, as shown below.

If you don't set Parameter value (optional), the new parameter stores the full customer message, not the recognized entity.

If you want to use the recognized entity as a parameter, entities also act as session data parameters. The entity name is the parameter name.