Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Builder : entities are coming ! #96

Open
mikbry opened this issue Jul 12, 2018 · 1 comment
Open

Builder : entities are coming ! #96

mikbry opened this issue Jul 12, 2018 · 1 comment
Assignees

Comments

@mikbry
Copy link
Contributor

mikbry commented Jul 12, 2018

We need to add entities to the builder:
screen shot 2018-07-12 at 11 18 35

  • Systems : display all system entities and we could activate them (any, email, date, number, ...)
  • A non system entity is a list of terms and each terms are associated to synonyms
@mikbry mikbry changed the title Builder : entities are coming Builder : entities are coming ! Jul 12, 2018
@mikbry
Copy link
Contributor Author

mikbry commented Jul 16, 2018

Entities
Data type / pattern entities
@System list all read only entities.
Pattern types:

  • @system.any (@any / any) : pattern wildcards that match any words
  • @system.zero_or_more (@zero_or_more / zero_or_more) : pattern wildcards that match zero or more words

Data types:

  • @system.number (@Number) : number pattern
  • @system.date (@Date) : date pattern to extract a date
  • @system.email (@email) : email pattern
  • @system.url (@url) : email pattern
  • @system.address (@address) : address pattern
  • @system.color (@color) : color pattern

@entity.xxx are user's defined entities. This entity is defined by a list of words associated to synonyms.
Example
@entity.city (shorthand : @city)
You define a list
[ New York, Paris, London ]
And for New York you add synonyms : [ NY, NYC, Big Apple ]

Properties
A property (prop) is a key/value entry stored permanently in system/agent/user's context. A context is a database.
@context : list all defined properties. 2 types of entry:

  • read only system entries, created by the system/agent.
  • read/write items created during conversation
    System properties:
    @context.userprofile (user, read):
    .username / .firstname / .lastname / .gender / .age / .country / .avatar / .anonymous / .lastConnection
    @context.date (system, read):
    .date.year / .date.month / .date.day / .date.hour / .date.minute / .date.second
    @context.platform (user, read): could be (webchat, facebook messenger, ...)
    @context.agent (agent, read): .agent.name / .agent.version

@mikbry mikbry self-assigned this Jul 18, 2018
@mikbry mikbry transferred this issue from another repository Nov 7, 2018
@jeffladiray jeffladiray mentioned this issue Apr 4, 2019
5 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants