Giter Club home page Giter Club logo

Comments (3)

jankoenig avatar jankoenig commented on July 26, 2024

Hi @peternann,

The value is the original input value (what the user said), and the key is the value of the entity it is being resolved to. This is mostly useful when synonyms are used for entities/slots, and to be honest, I haven't used multi-property entities before, so any feedback on how to solve this better is appreciated.

Here's a short explanation of the input object, however you're correct that we could do a better job explaining it: https://www.jovo.tech/framework/docs/data#how-to-access-input. The id is necessary for cross-platform compatibility with Alexa.

What exactly of the format of key do you think is weird? Maybe I'm missing something, but isn't it exactly the values you pasted at the bottom?

from jovo-cli.

peternann avatar peternann commented on July 26, 2024

I guess all I'm really saying is that the contents doesn't look like a 'key'. Seems to be a strange name for an object containing multiple key-value pairs.
Does the name 'key' have something to do with Alexa Intents perhaps?

It works though - If you document it, I'll use it!
Doco would be something like:

  • For Dialogflow 'Entities' that return a multi-property 'object' (such as @sys.location), the filled object will appear in the 'key' property, and the full text for the matched Entity will appear in 'value'. - For complex entity cases, the 'value' is generally less useful than the broken-down detail in the 'key' object.

from jovo-cli.

rubenaeg avatar rubenaeg commented on July 26, 2024

Closing this due to inactivity.

from jovo-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.