... | ... | @@ -103,6 +103,8 @@ will be called before the question is send to API.ai. |
|
|
|
|
|
It is useful if you have 'generic' questions that need a contexts. An example would be a quest. If a player asks "how much time left?" when on a quest, you can create a context with this information.
|
|
|
|
|
|
Do not use contexts for data that is always available. Only use it for information that is temporary such as when you are on a location, when are doing something specific , ... .
|
|
|
|
|
|
```java
|
|
|
public class MyModule extends AIModule{
|
|
|
|
... | ... | |