-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
rasa.yml
1516 lines (1442 loc) 路 43.5 KB
/
rasa.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.0.1
info:
title: "Rasa - Server Endpoints"
version: "1.0.0"
description: >-
The Rasa server provides endpoints to retrieve trackers of
conversations as well as endpoints to modify them. Additionally,
endpoints for training and testing models are provided.
servers:
- url: "http://localhost:5005"
description: "Local development server"
paths:
/:
get:
tags:
- Server Information
summary: Health endpoint of Rasa Server
operationId: getHealth
description: >-
This URL can be used as an endpoint to run
health checks against. When the server is running
this will return 200.
responses:
200:
description: Up and running
content:
text/plain:
schema:
type: string
description: Welcome text of Rasa Server
example: >-
Hello from Rasa: 1.0.0
/version:
get:
tags:
- Server Information
operationId: getVersion
summary: Version of Rasa
description: >-
Returns the version of Rasa.
responses:
200:
description: Version of Rasa
content:
application/json:
schema:
type: object
properties:
version:
type: string
description: >-
Rasa version number
minimum_compatible_version:
type: string
description: >-
Minimum version this Rasa version is
able to load models from
example:
version: 1.0.0
minimum_compatible_version: 1.0.0
/status:
get:
security:
- TokenAuth: []
- JWT: []
operationId: getStatus
tags:
- Server Information
summary: Status of the currently loaded Rasa model
description: >-
Information about the currently loaded Rasa model.
responses:
200:
description: Success
content:
application/json:
schema:
type: object
properties:
fingerprint:
type: object
description: Fingerprint of the loaded model
example:
config:
- 7625d69d93053ac8520a544d0852c626
domain:
- 229b51e41876bbcbbbfbeddf79548d5a
messages:
- cf7eda7edcae128a75ee8c95d3bbd680
stories:
- b5facea681fd00bc7ecc6818c70d9639
trained_at: 1556527123.42784
version: 1.0.0
model_file:
type: string
description: Path of the loaded model
example: 20190429-103105.tar.gz
401:
$ref: '#/components/responses/401NotAuthenticated'
403:
$ref: '#/components/responses/403NotAuthorized'
409:
$ref: '#/components/responses/409Conflict'
/conversations/{conversation_id}/tracker:
get:
security:
- TokenAuth: []
- JWT: []
operationId: getConversationTracker
tags:
- Tracker
summary: Retrieve a conversations tracker
description: >-
The tracker represents the state of the conversation.
The state of the tracker is created by applying a
sequence of events, which modify the state. These
events can optionally be included in the response.
parameters:
- $ref: '#/components/parameters/conversation_id'
- $ref: '#/components/parameters/include_events'
- $ref: '#/components/parameters/until'
responses:
200:
$ref: '#/components/responses/200Tracker'
400:
$ref: '#/components/responses/400BadRequest'
401:
$ref: '#/components/responses/401NotAuthenticated'
403:
$ref: '#/components/responses/403NotAuthorized'
409:
$ref: '#/components/responses/409Conflict'
500:
$ref: '#/components/responses/500ServerError'
/conversations/{conversation_id}/tracker/events:
post:
security:
- TokenAuth: []
- JWT: []
operationId: addConversationTrackerEvents
tags:
- Tracker
summary: Append events to a tracker
description: >-
Appends one or multiple new events to the tracker state of the conversation.
Any existing events will be kept and the new events will be
appended, updating the existing state.
parameters:
- $ref: '#/components/parameters/conversation_id'
- $ref: '#/components/parameters/include_events'
requestBody:
required: true
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/Event'
- type: array
items:
$ref: '#/components/schemas/Event'
responses:
200:
$ref: '#/components/responses/200Tracker'
400:
$ref: '#/components/responses/400BadRequest'
401:
$ref: '#/components/responses/401NotAuthenticated'
403:
$ref: '#/components/responses/403NotAuthorized'
409:
$ref: '#/components/responses/409Conflict'
500:
$ref: '#/components/responses/500ServerError'
put:
security:
- TokenAuth: []
- JWT: []
operationId: replaceConversationTrackerEvents
tags:
- Tracker
summary: Replace a trackers events
description: >-
Replaces all events of a tracker with the passed
list of events. This endpoint should not be used to
modify trackers in a production setup, but rather
for creating training data.
parameters:
- $ref: '#/components/parameters/conversation_id'
- $ref: '#/components/parameters/include_events'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/EventList'
responses:
200:
$ref: '#/components/responses/200Tracker'
400:
$ref: '#/components/responses/400BadRequest'
401:
$ref: '#/components/responses/401NotAuthenticated'
403:
$ref: '#/components/responses/403NotAuthorized'
409:
$ref: '#/components/responses/409Conflict'
500:
$ref: '#/components/responses/500ServerError'
/conversations/{conversation_id}/story:
get:
security:
- TokenAuth: []
- JWT: []
operationId: getConversationStory
tags:
- Tracker
summary: Retrieve an end-to-end story corresponding to a conversation
description: >-
The story represents the whole conversation in end-to-end
format. This can be posted to the '/test/stories' endpoint and used
as a test.
parameters:
- $ref: '#/components/parameters/conversation_id'
- $ref: '#/components/parameters/until'
responses:
200:
$ref: '#/components/responses/200Story'
401:
$ref: '#/components/responses/401NotAuthenticated'
403:
$ref: '#/components/responses/403NotAuthorized'
409:
$ref: '#/components/responses/409Conflict'
500:
$ref: '#/components/responses/500ServerError'
/conversations/{conversation_id}/execute:
post:
security:
- TokenAuth: []
- JWT: []
operationId: executeConversationAction
tags:
- Tracker
summary: Run an action in a conversation
description: >-
Runs the action, calling the action server if necessary.
Any responses sent by the executed action will be returned as
part of the endpoints result, they will not be sent over a
connected output channel.
parameters:
- $ref: '#/components/parameters/conversation_id'
- $ref: '#/components/parameters/include_events'
- $ref: '#/components/parameters/output_channel'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ActionRequest'
responses:
200:
description: Success
content:
application/json:
schema:
type: object
properties:
tracker:
$ref: '#/components/schemas/Tracker'
messages:
type: array
items:
$ref: '#/components/schemas/BotMessage'
400:
$ref: '#/components/responses/400BadRequest'
401:
$ref: '#/components/responses/401NotAuthenticated'
403:
$ref: '#/components/responses/403NotAuthorized'
409:
$ref: '#/components/responses/409Conflict'
500:
$ref: '#/components/responses/500ServerError'
/conversations/{conversation_id}/predict:
post:
security:
- TokenAuth: []
- JWT: []
operationId: predictConversationAction
tags:
- Tracker
summary: Predict the next action
description: >-
Runs the conversations tracker through the model's
policies to predict the scores of all actions present
in the model's domain. Actions are returned in the
'scores' array, sorted on their 'score' values.
The state of the tracker is not modified.
parameters:
- $ref: '#/components/parameters/conversation_id'
responses:
200:
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/PredictResult'
400:
$ref: '#/components/responses/400BadRequest'
401:
$ref: '#/components/responses/401NotAuthenticated'
403:
$ref: '#/components/responses/403NotAuthorized'
409:
$ref: '#/components/responses/409Conflict'
500:
$ref: '#/components/responses/500ServerError'
/conversations/{conversation_id}/messages:
post:
security:
- TokenAuth: []
- JWT: []
operationId: addConversationMessage
tags:
- Tracker
summary: Add a message to a tracker
description: >-
Adds a message to a tracker. This doesn't trigger
the prediction loop. It will log the message
on the tracker and return, no actions will be
predicted or run. This is often used together with the
predict endpoint.
parameters:
- $ref: '#/components/parameters/conversation_id'
- $ref: '#/components/parameters/include_events'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/Message'
responses:
200:
$ref: '#/components/responses/200Tracker'
400:
$ref: '#/components/responses/400BadRequest'
401:
$ref: '#/components/responses/401NotAuthenticated'
403:
$ref: '#/components/responses/403NotAuthorized'
409:
$ref: '#/components/responses/409Conflict'
500:
$ref: '#/components/responses/500ServerError'
/model/train:
post:
security:
- TokenAuth: []
- JWT: []
operationId: trainModel
tags:
- Model
summary: Train a Rasa model
description: >-
Trains a new Rasa model. Depending on the data given only a dialogue model,
only a NLU model, or a model combining a trained dialogue model with an
NLU model will be trained. The new model is not loaded by default.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/TrainingRequest'
responses:
200:
description: Zipped Rasa model
headers:
filename:
schema:
type: string
description: File name of the trained model.
content:
application/octet-stream:
schema:
$ref: '#/components/schemas/TrainingResult'
400:
$ref: '#/components/responses/400BadRequest'
401:
$ref: '#/components/responses/401NotAuthenticated'
403:
$ref: '#/components/responses/403NotAuthorized'
500:
$ref: '#/components/responses/500ServerError'
/model/test/stories:
post:
security:
- TokenAuth: []
- JWT: []
operationId: testModelStories
tags:
- Model
summary: Evaluate stories
description: >-
Evaluates one or multiple stories against the currently
loaded Rasa model.
parameters:
- $ref: '#/components/parameters/e2e'
requestBody:
required: true
content:
text/markdown:
schema:
$ref: '#/components/schemas/StoriesTrainingData'
responses:
200:
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/EvaluationStoriesResult'
400:
$ref: '#/components/responses/400BadRequest'
401:
$ref: '#/components/responses/401NotAuthenticated'
403:
$ref: '#/components/responses/403NotAuthorized'
409:
$ref: '#/components/responses/409Conflict'
500:
$ref: '#/components/responses/500ServerError'
/model/test/intents:
post:
security:
- TokenAuth: []
- JWT: []
operationId: testModelIntent
tags:
- Model
summary: Perform an intent evaluation
description: >-
Evaluates intents against the currently loaded Rasa model or the model specified in the query.
parameters:
- $ref: '#/components/parameters/model'
requestBody:
required: true
content:
text/markdown:
schema:
$ref: '#/components/schemas/NLUTrainingData'
responses:
200:
description: Intent evaluation result
content:
application/json:
schema:
$ref: '#/components/schemas/EvaluationIntentsResult'
400:
$ref: '#/components/responses/400BadRequest'
401:
$ref: '#/components/responses/401NotAuthenticated'
403:
$ref: '#/components/responses/403NotAuthorized'
409:
$ref: '#/components/responses/409Conflict'
500:
$ref: '#/components/responses/500ServerError'
/model/predict:
post:
security:
- TokenAuth: []
- JWT: []
operationId: predictModelAction
tags:
- Model
summary: Predict an action on a temporary state
description: >-
Predicts the next action on the tracker state as it is
posted to this endpoint. Rasa will create a temporary
tracker from the provided events and will use it to
predict an action. No messages will be sent and no
action will be run.
parameters:
- $ref: '#/components/parameters/include_events'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/EventList'
responses:
200:
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/PredictResult'
400:
$ref: '#/components/responses/400BadRequest'
401:
$ref: '#/components/responses/401NotAuthenticated'
403:
$ref: '#/components/responses/403NotAuthorized'
409:
$ref: '#/components/responses/409Conflict'
500:
$ref: '#/components/responses/500ServerError'
/model/parse:
post:
security:
- TokenAuth: []
- JWT: []
operationId: parseModelMessage
tags:
- Model
summary: Parse a message using the Rasa model
description: >-
Predicts the intent and entities of the message
posted to this endpoint. No messages will be stored
to a conversation and no action will be run. This will
just retrieve the NLU parse results.
parameters:
- $ref: '#/components/parameters/emulation_mode'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
text:
type: string
description: Message to be parsed
example: "Hello, I am Rasa!"
message_id:
type: string
description: Optional ID for message to be parsed
example: "b2831e73-1407-4ba0-a861-0f30a42a2a5a"
responses:
200:
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/ParseResult'
400:
$ref: '#/components/responses/400BadRequest'
401:
$ref: '#/components/responses/401NotAuthenticated'
403:
$ref: '#/components/responses/403NotAuthorized'
500:
$ref: '#/components/responses/500ServerError'
/model:
put:
security:
- TokenAuth: []
- JWT: []
operationId: replaceModel
tags:
- Model
summary: Replace the currently loaded model
description: >-
Updates the currently loaded model.
First, tries to load the model from the local storage system.
Secondly, tries to load the model from the provided model server configuration.
Last, tries to load the model from the provided remote storage.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ModelRequest'
responses:
204:
description: Model was successfully replaced.
400:
$ref: '#/components/responses/400BadRequest'
401:
$ref: '#/components/responses/401NotAuthenticated'
403:
$ref: '#/components/responses/403NotAuthorized'
500:
$ref: '#/components/responses/500ServerError'
delete:
security:
- TokenAuth: []
- JWT: []
operationId: unloadModel
tags:
- Model
summary: Unload the trained model
description: >-
Unloads the currently loaded trained model from the server.
responses:
204:
description: Model was sucessfully unloaded.
401:
$ref: '#/components/responses/401NotAuthenticated'
403:
$ref: '#/components/responses/403NotAuthorized'
/domain:
get:
security:
- TokenAuth: []
- JWT: []
operationId: getDomain
tags:
- Domain
summary: Retrieve the loaded domain
description: >-
Returns the domain specification the currently loaded
model is using.
responses:
200:
description: Domain was successfully retrieved.
content:
application/json:
schema:
$ref: '#/components/schemas/Domain'
application/yaml:
schema:
$ref: '#/components/schemas/Domain'
401:
$ref: '#/components/responses/401NotAuthenticated'
403:
$ref: '#/components/responses/403NotAuthorized'
406:
$ref: '#/components/responses/406InvalidHeader'
500:
$ref: '#/components/responses/500ServerError'
components:
securitySchemes:
TokenAuth:
type: apiKey
in: query
name: token
JWT:
type: http
scheme: bearer
bearerFormat: JWT
parameters:
conversation_id:
in: path
name: conversation_id
description: Id of the conversation
example: default
schema:
type: string
required: true
batch_size:
in: query
name: batch_size
description: Batch size to use for training.
example: 5
schema:
type: number
default: 5
required: false
epochs:
in: query
name: epochs
description: Number of epochs to train.
example: 30
schema:
type: number
default: 30
required: false
e2e:
in: query
name: e2e
description: Perform an end-to-end evaluation on the posted stories.
example: false
schema:
type: boolean
default: false
required: false
model:
in: query
name: model
description: >-
Model that should be used for evaluation.
If the parameter is set, the model will be
fetched with the currently loaded configuration
setup. However, the currently loaded model
will not be updated. The state of the server
will not change. If the parameter is not set,
the currently loaded model will be used for
the evaluation.
example: rasa-model.tar.gz
schema:
type: string
required: false
include_events:
in: query
name: include_events
description: >-
Specify which events of the tracker the response
should contain.
example: AFTER_RESTART
schema:
type: string
default: AFTER_RESTART
enum:
- AFTER_RESTART
- ALL
- APPLIED
- NONE
emulation_mode:
in: query
name: emulation_mode
description: >-
Specify the emulation mode.
example: LUIS
schema:
type: string
enum:
- WIT
- LUIS
- DIALOGFLOW
until:
in: query
name: until
description: >-
All events previous to the passed timestamp will be replayed.
Events that occur exactly at the target time will be included.
example: 1559744410
schema:
type: number
default: None
required: false
output_channel:
in: query
name: output_channel
description: >-
The bot's utterances will be forwarded to this channel. It uses the credentials
listed in `credentials.yml` to connect. In case the channel does
not support this, the utterances will be returned in the response body. Use
`latest` to try to send the messages to the latest channel the user used.
Currently supported channels are listed in the permitted values for the
parameter.
example: "slack"
schema:
type: string
enum:
- latest
- slack
- callback
- facebook
- rocketchat
- telegram
- twilio
- webexteams
responses:
200Tracker:
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/Tracker'
200Story:
description: Success
content:
text/markdown:
example: >-
## story_00055028
* greet: hello
- utter_ask_howcanhelp
* inform: I'm looking for a [moderately priced](price:moderate)
[Indian](cuisine) restaurant for [two](people) people
- utter_on_it
- utter_ask_location
400BadRequest:
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
version: "1.0.0"
status: "failure"
reason: "BadRequest"
code: 400
401NotAuthenticated:
description: User is not authenticated.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
version: "1.0.0"
status: "failure"
reason: "NotAuthenticated"
message: >-
User is not authenticated to access resource.
code: 401
403NotAuthorized:
description: User has insufficient permission.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
version: "1.0.0"
status: "failure"
reason: "NotAuthorized"
message: >-
User has insufficient permission to access resource.
code: 403
406InvalidHeader:
description: Invalid header provided.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
version: "1.0.0"
status: "failure"
reason: "InvalidHeader"
message: >-
Invalid header was provided with the request.
code: 406
409Conflict:
description: The request conflicts with the currently loaded model.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
version: "1.0.0"
status: "failure"
reason: "Conflict"
message: >-
The request conflicts with the currently loaded model.
code: 409
500ServerError:
description: An unexpected error occurred.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
version: "1.0.0"
status: "ServerError"
message: >-
An unexpected error occurred.
code: 500
schemas:
ModelRequest:
type: object
properties:
model_file:
type: string
description: Path to model file
example: "/models/20190512.tar.gz"
model_server:
$ref: '#/components/schemas/EndpointConfig'
remote_storage:
description: Name of remote storage system
type: string
example: "aws"
enum:
- aws
- gcs
- azure
ActionRequest:
type: object
properties:
name:
description: >-
Name of the action to be executed.
type: string
example: utter_greet
policy:
description: >-
Name of the policy that predicted the action (optional).
type: string
confidence:
description: >-
Confidence of the prediction (optional).
type: number
example: 0.987232
required: ["name"]
Message:
type: object
properties:
text:
type: string
description: >-
Message text
example: Hello!
sender:
type: string
description: >-
Origin of the message - who sent it
example: user
enum:
- user
parse_data:
$ref: '#/components/schemas/ParseResult'
required: ["text", "sender"]
Entity:
type: object
description: Entities within a message
properties:
start:
type: integer
description: Char offset of the start
end:
type: integer
description: Char offset of the end
value:
type: string
description: Found value for entity
entity:
type: string
description: Type of the entity
confidence:
type: number
required: ["start", "end", "value", "entity"]
Intent:
type: object
description: Intent of the text
properties:
confidence:
type: number
description: Confidence of the intent
example: 0.6323
name:
type: string
description: Intent name
example: greet
required: ["confidence", "name"]
ParseResult:
type: object
properties:
entities:
type: array
description: Parsed entities
items:
$ref: '#/components/schemas/Entity'
intent:
$ref: '#/components/schemas/Intent'
intent_ranking:
type: array
description: Scores of all intents
items:
$ref: '#/components/schemas/Intent'
text:
type: string
description: Text of the message
example: "Hello!"
description: >-
NLU parser information. If set, message
will not be passed through NLU, but instead
this parsing information will be used.
required: ["text"]
Event:
type: object
properties:
event:
type: string