You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+29-10Lines changed: 29 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -85,7 +85,7 @@ For using your own speech recognition:
85
85
86
86
87
87
### Contexts
88
-
Set contexts (will take affect on next startListening or queryRequest):
88
+
Set [contexts](https://api.ai/docs/reference/agent/contexts) (will take affect on next startListening or queryRequest):
89
89
```javascript
90
90
constcontexts= [{
91
91
name:"deals",
@@ -98,6 +98,24 @@ const contexts = [{
98
98
ApiAi.setContexts(contexts);
99
99
```
100
100
101
+
### Entities
102
+
Set [UserEntities](https://api.ai/docs/reference/agent/userentities) (will take affect on next startListening or queryRequest):
103
+
```javascript
104
+
constentities= [{
105
+
"name":"shop",
106
+
"extend":true,
107
+
"entries":[
108
+
{
109
+
"value":"Media Markt",
110
+
"synonyms":["Media Markt"]
111
+
}
112
+
]
113
+
}];
114
+
115
+
ApiAi.setEntities(entities);
116
+
```
117
+
118
+
101
119
### Events on Android
102
120
Only in Android we have four additional methods: `onListeningStarted`, `onListeningCanceled`, `onListeningFinished` and `onAudioLevel`. In iOS they will be never called:
0 commit comments