manage synonyms in my Playbooks Routine

hi,

when i set the istructions in my conversational agent, i want to specify a list of synonyms for some words that, if one of these is used, the agent must replace that synonym with the master word before execute the next steps.

eg:

user: “tell me how many client use financial services”

the agent replace client with users before proceed with next step put inside the istructions field.

Where do i insert this synonym list and how? How to specify this action into instructions?

Thank you

1 Like

Hi Ale_Pascali,

Welcome to the Google Cloud Community!

To manage synonyms in your Playbooks Routine, you’ll typically use a combination of entity terminology and pre-processing steps within your conversational agent platform. Here are some approaches that might help your use case:

  • Create an entity for your “master word” (e.g., “users”) within your conversational agent’s platform.
  • List all relevant synonyms (e.g., “client,” “customer”) under that master word entity.
  • The replacement of the synonym with the master word usually happens automatically as part of the natural language understanding (NLU) process, before your routine’s instructions are executed. You typically don’t need to write explicit “replace this word” instructions in your routine’s logic.

Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.

I don’t understand where and how i create the entity. Inside Flows section → Entity types?