Comments (3)
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.
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.
Closing this due to inactivity.
from jovo-cli.
Related Issues (20)
- Type property didnt trigger handler HOT 3
- What is a valid jovo project? HOT 1
- .
- [delete]
- Example content generated by `jovo new` has error HOT 2
- Error with spinner HOT 4
- Jovo deploy:code serverless --stage Not Working HOT 2
- Google Action deployment error about the --project-id flag HOT 2
- Intent inside component not triggering HOT 1
- i18n Array HOT 1
- get:platform googleAssistant crashing
- Command build:platform not found version 4.1.5 HOT 2
- Not working with GCP Workload Identity Federation HOT 1
- Select deployment channel for Google Actions
- File builder don't built all files
- "Stage prod could not be found in your project configuration" even if it's defined
- Error: Cannot convert undefined or null to object HOT 3
- Unable to deploy alexa skill HOT 8
- [BUG] Serverless deploy doesn't support parameters before "serverless", no explicit error/warnings about it
- Allow Task to fail non-critically
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jovo-cli.