I think I made a mistake but I can't figure where.
I made a custom entity using regular expression to recognise product codes in phrases.
It works very well in Question, it extracts correctly the code matching the regexp.
I dont understand why it doesn't work in trigger phrases... i.e. I got a Topic wich returns product availability triggered by phrases like "product availability", "may you tell me the stock of product", and so on, followed by the question "Give me the product code please" wich stores the identified code in a global var (PCode).
The question is bypassed when the global var PCode is not empty and, as additive condition, it's not equal to '' (this is because at conversation start I set PCode = '').
Well, I'd like to know why Copilot triggers the product availability Topic and ask me "Give me the product code please" when I write "may you tell me the stock of product XXYYZZ?" forcing me to re-input XXYYZZ... shouldn't it automatically recognise the product code XXYYZZ?