Glossary
Glossary
The glossary helps you define the specific terms and language your agent needs to understand.
By creating this custom dictionary, you're teaching your agent the unique vocabulary it should recognize during conversations, from business-specific terms to common variations of how users might phrase things.
Each term in your glossary includes the official word or phrase, its meaning in your context, and alternative ways people might refer to it. This helps the agent stay on track and maintain fluent conversations within your specific domain.
Create Terms
For our retail tech store, lets teach the agent two glossary terms.
First, the name of our store:
$ description=$(cat <<EOF
The name of our tech retail store, specializing
in gadgets, computers, and tech services.
EOF
)
$ parlant glossary create \
--agent-id $AGENT_ID \
--name Bug \
--description "$description" \
--synonyms "The Store, The Business, The Company"
Then, our warranty plan:
$ description=$(cat <<EOF
Our free warranty and service package that comes with
every purchase and covers repairs, replacements,
and tech support beyond the standard manufacturer warranty.
EOF
)
$ parlant glossary create \
--agent-id $AGENT_ID \
--name Bug-Free \
--description "$description" \
--synonyms "Warranty, Protection Plan, Service Coverage, Extended Warranty"
This setup enables the agent to direct customers to the appropriate resources when they ask questions related to your glossary.
Head over to http://localhost:8800 (or wherever your server is hosted) and ask Chip about the store!
