Tags
Tags
In Parlant, tags are used as markers to establish contextual relationships between different types of entities. In this section we'll explore the tag relationships between each pair of entities.
Supported Tag Relationships
The table below shows what relationships are currently available and well-defined in Parlant. The rest of the page will describe how each of the supported relationships works.
Agents | Customers | Sessions | Guidelines | Guideline Relationships | Tools | Glossary Terms | Context Variables | Utterances | |
Agents | - | - | - | View | - | - | View | View | - |
Customers | - | - | - | - | - | - | - | View | - |
Sessions | - | - | - | - | - | - | - | - | - |
Guidelines | View | - | - | - | View | - | - | - | View |
Guideline Relationships | - | - | - | View | - | - | - | - | - |
Tools | - | - | - | - | - | - | - | - | - |
Glossary Terms | View | - | - | - | - | - | - | - | - |
Context Variables | View | View | - | - | - | - | - | - | - |
Utterances | - | - | - | View | - | - | - | - | - |
Agents / Guidelines
- Only guidelines that are associated with an agent may participate in that agent's response process.
- Even if guidelines are related to other guidelines through relationships, these related guidelines will only be included if they themselves are associated with the agent.
- The set of associated guidelines for any given agent is comprised of:
- Any guideline which is tagged with at least 1 tag the agent is also tagged with. For example, if the agent's tags are
["a", "b"]
, any guideline tagged with either"a"
or"b"
could be included. - Any guideline tagged with the agent's specific ID using the tag form
"agent:<ID>"
.
- Any guideline which is tagged with at least 1 tag the agent is also tagged with. For example, if the agent's tags are
Agents / Glossary Terms
- Only glossary terms that are associated with an agent may participate in that agent's response process.
- The set of associated glossary terms for any given agent is comprised of:
- Any glossary term which is tagged with at least 1 tag the agent is also tagged with. For example, if the agent's tags are
["a", "b"]
, any glossary term tagged with either"a"
or"b"
could be included. - Any glossary term tagged with the agent's specific ID using the tag form
"agent:<ID>"
.
- Any glossary term which is tagged with at least 1 tag the agent is also tagged with. For example, if the agent's tags are
Agents / Context Variables
- All context variables that are associated with an agent will always participate in that agent's response process.
- The set of associated context variables for any given agent is comprised of:
- Any context variable which is tagged with at least 1 tag the agent is also tagged with. For example, if the agent's tags are
["a", "b"]
, any context variable tagged with either"a"
or"b"
could be included. - Any context variable term tagged with the agent's specific ID using the tag form
"agent:<ID>"
.
- Any context variable which is tagged with at least 1 tag the agent is also tagged with. For example, if the agent's tags are
Customers / Context Variables
- In a session between some agent and a customer
C
having IDCID
, whereC
is tagged with some tagT
having IDTID
, and a context variable has a value set for the tagT
using a key of the form"tag:<TID>"
, and, moreover, the context variable does not have the key"<CID>"
set, then the context variable would get the value associated with"tag:<TID>"
.
Guideline Relationships / Guidelines
- Guideline relationships can associate guidelines using tags, such that:
- If a source guideline
GID
is related with relationshipR(source, target)
to a target tagT
, then all guidelinesGtagged
tagged withT
would inherit this relationship, such that the result would be that for every guidelineGtagged[i]
inGtagged
, the relationshipR(GID, Gtagged[i])
would hold. - If a source tag
T
is related with relationshipR(source, target)
to a target guidelineGID
, then all guidelinesGtagged
tagged withT
would inherit this relationship, such that the result would be that for every guidelineGtagged[i]
inGtagged
, the relationshipR(Gtagged[i], GID)
would hold. - If a source tag
Tsource
is related with relationshipR(source, target)
to a target tagTtarget
, the result would be that for every guidelineGsource[i]
tagged withTsource
and every guidelineGtarget[i]
tagged withTtarget
, the relationshipR(Gsource[i], Gtarget[i])
would hold.
- If a source guideline
Guidelines / Utterances
This feature is scheduled to be added in Parlant 2.1. Check back soon!