-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathreadmeText.txt
595 lines (416 loc) · 20.2 KB
/
readmeText.txt
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
Twilio Autopilot Plugin for the Twilio CLI
================
A plugin for the [Twilio CLI](https://github.com/twilio/twilio-cli) that merges and extends functionality from the [Autopilot CLI](https://github.com/dabblelab/twilio-cli-autopilot-plugin).
[](https://oclif.io)
[](https://npmjs.org/package/@dabblelab/plugin-autopilot)
[](https://npmjs.org/package/@dabblelab/plugin-autopilot)
[](https://img.shields.io/github/license/dabblelab/twilio-cli-autopilot-plugin)
<!-- toc -->
* [Requirements](#requirements)
* [Usage](#usage)
* [Commands](#commands)
<!-- tocstop -->
# Requirements
## Install the Twilio CLI
Via `npm` or `yarn`:
```sh-session
$ npm install -g twilio-cli
$ yarn global add twilio-cli
```
Via `homebrew`:
```sh-session
$ brew tap twilio/brew && brew install twilio
```
# Usage
```sh-session
$ twilio plugins:install @dabblelab/plugin-autopilot
$ twilio --help autopilot
USAGE
$ twilio autopilot
...
```
# Commands
<!-- commands -->
_Assistants_
* [`twilio autopilot:create`](#twilio-autopilotcreate)
* [`twilio autopilot:delete`](#twilio-autopilotdelete)
* [`twilio autopilot:export`](#twilio-autopilotexport)
* [`twilio autopilot:list`](#twilio-autopilotlist)
* [`twilio autopilot:update`](#twilio-autopilotupdate)
* [`twilio autopilot:init`](#twilio-autopilotinit)
* [`twilio autopilot:deploy`](#twilio-autopilotdeploy)
_Fields and Field Types_
* [`twilio autopilot:fields:create`](#twilio-autopilotfieldscreate)
* [`twilio autopilot:fields:delete`](#twilio-autopilotfieldsdelete)
* [`twilio autopilot:fields:list`](#twilio-autopilotfieldslist)
* [`twilio autopilot:fieldtypes:create`](#twilio-autopilotfieldtypescreate)
* [`twilio autopilot:fieldtypes:list`](#twilio-autopilotfieldtypeslist)
* [`twilio autopilot:fieldtypes:update`](#twilio-autopilotfieldtypesupdate)
* [`twilio autopilot:fieldvalues:upload`](#twilio-autopilotfieldvaluesupload)
_Tasks and Samples_
* [`twilio autopilot:tasks:create`](#twilio-autopilottaskscreate)
* [`twilio autopilot:tasks:delete`](#twilio-autopilottasksdelete)
* [`twilio autopilot:tasks:list`](#twilio-autopilottaskslist)
* [`twilio autopilot:tasks:update`](#twilio-autopilottasksupdate)
* [`twilio autopilot:samples:upload`](#twilio-autopilotsamplesupload)
_Import bots from other platforms_
* [`twilio autopilot:import [TYPE]`](#twilio-autopilotimport-type)
_Webhooks_
* [`twilio autopilot:webhooks:create`](#twilio-autopilotwebhookscreate)
* [`twilio autopilot:webhooks:delete`](#twilio-autopilotwebhooksdelete)
* [`twilio autopilot:webhooks:list`](#twilio-autopilotwebhookslist)
* [`twilio autopilot:webhooks:update`](#twilio-autopilotwebhooksupdate)
_Other commands_
* [`twilio autopilot:modelbuilds:create`](#twilio-autopilotmodelbuildscreate)
* [`twilio autopilot:simulate`](#twilio-autopilotsimulate)
* [`twilio autopilot:queries:export`](#twilio-autopilotqueriesexport)
* [`twilio help [COMMAND]`](#twilio-help-command)
# Usage
## `twilio autopilot:create`
Create an assistant
```
USAGE
$ twilio autopilot:create
OPTIONS
-p, --profile=profile Shorthand identifier for your profile.
-s, --schema=schema (required) [default: templates] path to schema file
```
_See code: [src/commands/autopilot/create.js](https://github.com/dabblelab/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.18/src/commands/autopilot/create.js)_
## `twilio autopilot:delete`
Delete an assistant
```
USAGE
$ twilio autopilot:delete
OPTIONS
-p, --profile=profile Shorthand identifier for your profile.
-s, --assistant-sid=assistant-sid (required) assistant sid
--unique-name=unique-name assistant unique name
```
_See code: [src/commands/autopilot/delete.js](https://github.com/dabblelab/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.18/src/commands/autopilot/delete.js)_
## `twilio autopilot:export`
Export an assistant
```
USAGE
$ twilio autopilot:export
OPTIONS
-p, --profile=profile Shorthand identifier for your profile.
-s, --assistant-sid=assistant-sid assistant sid
--unique-name=unique-name assistant unique name
```
_See code: [src/commands/autopilot/export.js](https://github.com/dabblelab/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.18/src/commands/autopilot/export.js)_
## `twilio autopilot:list`
List all autopilot assistant
```
USAGE
$ twilio autopilot:list
OPTIONS
-p, --profile=profile Shorthand identifier for your profile.
--properties=properties [default: sid, uniqueName, friendlyName] assistant properties to list -
https://www.twilio.com/docs/autopilot/api/assistant#assistant-properties
```
_See code: [src/commands/autopilot/list.js](https://github.com/dabblelab/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.18/src/commands/autopilot/list.js)_
## `twilio autopilot:update`
Update an assistant
```
USAGE
$ twilio autopilot:update
OPTIONS
-p, --profile=profile Shorthand identifier for your profile.
-s, --schema=schema (required) path to schema file to use for the update
--unique-name=unique-name assistant unique name
```
_See code: [src/commands/autopilot/update.js](https://github.com/dabblelab/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.18/src/commands/autopilot/update.js)_
## `twilio autopilot:init`
Create new bot project based on chosen template
```
USAGE
$ twilio autopilot:init
OPTIONS
-n, --bot-name=bot-name create new bot project with bot name
-p, --profile=profile Shorthand identifier for your profile.
-u, --account-sid=account-sid A specific account SID to be used for deployment. Uses fields in .env otherwise
--auth-token=auth-token Use a specific auth token for deployment. Uses fields from .env otherwise
--url=url the url to the template list or the git repo
```
_See code: [src/commands/autopilot/init.js](https://github.com/dabblelab/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.18/src/commands/autopilot/init.js)_
## `twilio autopilot:deploy`
Deploy bot project
```
USAGE
$ twilio autopilot:deploy
OPTIONS
-c, --config=config [default: .twilio-functions] Location of the config file. Absolute path or relative to current working directory (cwd).
-l, --logLevel=logLevel [default: info] Level of logging messages.
-p, --profile=profile Shorthand identifier for your profile.
-t, --target=all|function|model [default: all] deploy function, model or all of them. Options can only be "all", "function" or "model".
-u, --account-sid=account-sid A specific account SID to be used for deployment. Uses fields in .env otherwise.
--auth-token=auth-token Use a specific auth token for deployment. Uses fields from .env otherwise.
--override-existing-project Deploys Serverless project to existing service if a naming conflict has been found.
```
_See code: [src/commands/autopilot/deploy.js](https://github.com/dabblelab/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.18/src/commands/autopilot/deploy.js)_
## `twilio autopilot:fields:create`
Create field of a task
```
USAGE
$ twilio autopilot:fields:create
OPTIONS
-p, --profile=profile Shorthand identifier for your profile.
-s, --assistant-sid=assistant-sid (required) assistant sid
--field-type-sid=field-type-sid The sid of the new field type. Can be: a [Built-in
FieldType](https://www.twilio.com/docs/assistant/api/built-in-field-types ), the
`unique_name`, or the `sid` of a custom Field Type.
--task-sid=task-sid task sid
--unique-name=unique-name (required) field unique name
```
_See code: [src/commands/autopilot/fields/create.js](https://github.com/dabblelab/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.18/src/commands/autopilot/fields/create.js)_
## `twilio autopilot:fields:delete`
Delete a field of a task
```
USAGE
$ twilio autopilot:fields:delete
OPTIONS
-p, --profile=profile Shorthand identifier for your profile.
-s, --assistant-sid=assistant-sid (required) assistant sid
--field-sid=field-sid sid of the field to delete
--task-sid=task-sid task sid
```
_See code: [src/commands/autopilot/fields/delete.js](https://github.com/dabblelab/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.18/src/commands/autopilot/fields/delete.js)_
## `twilio autopilot:fields:list`
List all fields of a task
```
USAGE
$ twilio autopilot:fields:list
OPTIONS
-p, --profile=profile Shorthand identifier for your profile.
-s, --assistant-sid=assistant-sid (required) assistant sid
--properties=properties [default: sid, uniqueName, fieldType] field properties to list -
https://www.twilio.com/docs/autopilot/api/task-field#field-properties
--task-sid=task-sid task sid
```
_See code: [src/commands/autopilot/fields/list.js](https://github.com/dabblelab/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.18/src/commands/autopilot/fields/list.js)_
## `twilio autopilot:fieldtypes:create`
Create a field type of an assistant
```
USAGE
$ twilio autopilot:fieldtypes:create
OPTIONS
-p, --profile=profile Shorthand identifier for your profile.
-s, --assistant-sid=assistant-sid (required) assistant sid
--friendly-name=friendly-name friendly name for field type
--unique-name=unique-name (required) unique name for the field type
```
_See code: [src/commands/autopilot/fieldtypes/create.js](https://github.com/dabblelab/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.18/src/commands/autopilot/fieldtypes/create.js)_
## `twilio autopilot:fieldtypes:list`
List all FieldTypes of an assistant
```
USAGE
$ twilio autopilot:fieldtypes:list
OPTIONS
-p, --profile=profile Shorthand identifier for your profile.
-s, --assistant-sid=assistant-sid (required) assistant sid
--properties=properties [default: sid, uniqueName] field type properties to list -
https://www.twilio.com/docs/autopilot/api/field-type#fieldtype-properties
```
_See code: [src/commands/autopilot/fieldtypes/list.js](https://github.com/dabblelab/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.18/src/commands/autopilot/fieldtypes/list.js)_
## `twilio autopilot:fieldtypes:update`
Update a fieldtype of an assistant
```
USAGE
$ twilio autopilot:fieldtypes:update
OPTIONS
-p, --profile=profile Shorthand identifier for your profile.
-s, --assistant-sid=assistant-sid (required) assistant sid
--field-type-sid=field-type-sid (required) field type sid
--friendly-name=friendly-name field type friendly name to update
--unique-name=unique-name field unique name
```
_See code: [src/commands/autopilot/fieldtypes/update.js](https://github.com/dabblelab/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.18/src/commands/autopilot/fieldtypes/update.js)_
## `twilio autopilot:fieldvalues:upload`
Upload FieldValues
```
USAGE
$ twilio autopilot:fieldvalues:upload
OPTIONS
-p, --profile=profile Shorthand identifier for your profile.
-s, --assistant-sid=assistant-sid (required) assistant sid
--field-type-sid=field-type-sid field type SID
--file-name=file-name (required) a CSV file of field values (one on each row with synonyms in columns)
```
_See code: [src/commands/autopilot/fieldvalues/upload.js](https://github.com/dabblelab/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.18/src/commands/autopilot/fieldvalues/upload.js)_
## `twilio autopilot:tasks:create`
Create a Task of an assistant
```
USAGE
$ twilio autopilot:tasks:create
OPTIONS
-p, --profile=profile Shorthand identifier for your profile.
-s, --assistant-sid=assistant-sid (required) assistant sid
--friendly-name=friendly-name friendly name for task
--unique-name=unique-name (required) unique name for task
```
_See code: [src/commands/autopilot/tasks/create.js](https://github.com/dabblelab/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.18/src/commands/autopilot/tasks/create.js)_
## `twilio autopilot:tasks:delete`
Delete a Task of an assistant
```
USAGE
$ twilio autopilot:tasks:delete
OPTIONS
-p, --profile=profile Shorthand identifier for your profile.
-s, --assistant-sid=assistant-sid (required) assistant sid
--task-sid=task-sid task sid
```
_See code: [src/commands/autopilot/tasks/delete.js](https://github.com/dabblelab/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.18/src/commands/autopilot/tasks/delete.js)_
## `twilio autopilot:tasks:list`
List all tasks of an assistant
```
USAGE
$ twilio autopilot:tasks:list
OPTIONS
-p, --profile=profile Shorthand identifier for your profile.
-s, --assistant-sid=assistant-sid (required) assistant sid
--properties=properties [default: sid, uniqueName, friendlyName] task properties to list -
https://www.twilio.com/docs/autopilot/api/task#task-properties
```
_See code: [src/commands/autopilot/tasks/list.js](https://github.com/dabblelab/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.18/src/commands/autopilot/tasks/list.js)_
## `twilio autopilot:tasks:update`
Update a Task of an assistant
```
USAGE
$ twilio autopilot:tasks:update
OPTIONS
-p, --profile=profile Shorthand identifier for your profile.
-s, --assistant-sid=assistant-sid (required) assistant sid
--friendly-name=friendly-name task friendly name to update
--task-sid=task-sid task sid
--unique-name=unique-name task unique name to update
```
_See code: [src/commands/autopilot/tasks/update.js](https://github.com/dabblelab/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.18/src/commands/autopilot/tasks/update.js)_
## `twilio autopilot:samples:upload`
Upload task samples
```
USAGE
$ twilio autopilot:samples:upload
OPTIONS
-p, --profile=profile Shorthand identifier for your profile.
-s, --assistant-sid=assistant-sid (required) assistant sid
--file-name=file-name (required) a CSV file of samples
--task-sid=task-sid task sid
```
_See code: [src/commands/autopilot/samples/upload.js](https://github.com/dabblelab/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.18/src/commands/autopilot/samples/upload.js)_
## `twilio autopilot:import [TYPE]`
Import a DialogFlow Agent/Alexa Interaction Model
```
USAGE
$ twilio autopilot:import [TYPE]
ARGUMENTS
TYPE (dialogflow|alexa) [default: dialogflow] Type of import DialogFlow/Alexa
OPTIONS
-a, --dfagent=dfagent Dialogflow Agent Name
-b, --dfbackup=dfbackup Dialogflow Agent Backup Zip File Local Path
-m, --model=model Alexa Interaction Model File Path
-p, --profile=profile Shorthand identifier for your profile.
-r, --redirectURL=redirectURL [default: https://inquisitive-stretch-2083.twil.io/generic] Alexa Back-End Hanlder URL
to send back the response
DESCRIPTION
-> twilio autopilot:import dialogflow --dfbackup <dialogflow-backup-zip-file> --dfagent <dialogflow-agent-name>
-> twilio autopilot:import alexa --model <alexa-interaction-model-file> [--redirectURL <alexa-back-end-hanlder-url>]
```
_See code: [src/commands/autopilot/import.js](https://github.com/dabblelab/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.18/src/commands/autopilot/import.js)_
## `twilio autopilot:webhooks:create`
Create Assistant Webhooks
```
USAGE
$ twilio autopilot:webhooks:create
OPTIONS
-e, --events=events (required) list of space-separated webhook events
-m, --method=method which HTTP method to use
-p, --profile=profile Shorthand identifier for your profile.
-s, --assistant-sid=assistant-sid (required) assistant sid
-u, --webhookURL=webhookURL (required) the URL to send events to
-w, --webhook-unique-name=webhook-unique-name (required) unique name for webhook
```
_See code: [src/commands/autopilot/webhooks/create.js](https://github.com/dabblelab/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.18/src/commands/autopilot/webhooks/create.js)_
## `twilio autopilot:webhooks:delete`
Delete Assistant Webhooks
```
USAGE
$ twilio autopilot:webhooks:delete
OPTIONS
-p, --profile=profile Shorthand identifier for your profile.
-s, --assistant-sid=assistant-sid (required) assistant sid
--webhook-sid=webhook-sid SID of the webhook to delete
```
_See code: [src/commands/autopilot/webhooks/delete.js](https://github.com/dabblelab/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.18/src/commands/autopilot/webhooks/delete.js)_
## `twilio autopilot:webhooks:list`
List all webhooks of an assistant
```
USAGE
$ twilio autopilot:webhooks:list
OPTIONS
-p, --profile=profile Shorthand identifier for your profile.
-s, --assistant-sid=assistant-sid (required) assistant sid
--properties=properties [default: sid, uniqueName, webhookUrl, events, dateCreated, dateUpdated,
webhookMethod] webhook properties to list -
https://www.twilio.com/docs/autopilot/api/event-webhooks#webhook-properties
```
_See code: [src/commands/autopilot/webhooks/list.js](https://github.com/dabblelab/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.18/src/commands/autopilot/webhooks/list.js)_
## `twilio autopilot:webhooks:update`
Update Assistant Webhooks
```
USAGE
$ twilio autopilot:webhooks:update
OPTIONS
-e, --events=events list of space-separated webhook events to update
-m, --method=method which HTTP method to use to update
-p, --profile=profile Shorthand identifier for your profile.
-s, --assistant-sid=assistant-sid (required) assistant sid
-u, --webhookURL=webhookURL the URL to send events to update
-w, --webhook-unique-name=webhook-unique-name unique name for webhook to update
--webhook-sid=webhook-sid SID of the webhook to update
```
_See code: [src/commands/autopilot/webhooks/update.js](https://github.com/dabblelab/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.18/src/commands/autopilot/webhooks/update.js)_
## `twilio autopilot:modelbuilds:create`
Create Model Builds
```
USAGE
$ twilio autopilot:modelbuilds:create
OPTIONS
-p, --profile=profile Shorthand identifier for your profile.
-s, --assistant-sid=assistant-sid (required) assistant sid
-u, --callbackURL=callbackURL URL to get notified of model build status
```
_See code: [src/commands/autopilot/modelbuilds/create.js](https://github.com/dabblelab/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.18/src/commands/autopilot/modelbuilds/create.js)_
## `twilio autopilot:simulate`
Simulate an assistant
```
USAGE
$ twilio autopilot:simulate
OPTIONS
-p, --profile=profile Shorthand identifier for your profile.
-s, --assistant-sid=assistant-sid (required) assistant sid
-t, --text=text (required) User text input
```
_See code: [src/commands/autopilot/simulate.js](https://github.com/dabblelab/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.18/src/commands/autopilot/simulate.js)_
## `twilio autopilot:queries:export`
Export queries of an assistant
```
USAGE
$ twilio autopilot:queries:export
OPTIONS
-p, --profile=profile Shorthand identifier for your profile.
-q, --quantity=quantity (required) number of queries to retrieve
-s, --assistant-sid=assistant-sid (required) assistant sid
```
_See code: [src/commands/autopilot/queries/export.js](https://github.com/dabblelab/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.18/src/commands/autopilot/queries/export.js)_
## `twilio help [COMMAND]`
display help for twilio
```
USAGE
$ twilio help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
```
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v2.2.1/src/commands/help.ts)_
<!-- commandsstop -->