3.0.2 • Published 2 years ago

voxa-cli v3.0.2

Weekly downloads
129
License
MIT
Repository
github
Last release
2 years ago

voxa-cli

Create interaction model and publishing information for your Alexa skills.

Install

$ npm install --save voxa-cli

Getting started

Create credentials and share your spreadsheet with a client

To programmatically access your spreadsheet, you’ll need to create a service account and OAuth2 credentials from the Google API Console. If you’ve been burned by OAuth2 before, don’t worry; service accounts are way easier to use.

Follow along with the steps and GIF below. You’ll be in and out of the console in 60 seconds.

Go to the Google APIs Console. Create a new project. Click Enable API. Search for and enable the Google Drive API. Create credentials for a Web Server to access Application Data. Name the service account and grant it a Project Role of Editor. Download the JSON file. Copy the JSON file to your code directory and rename it to client_secret.json

alt text

There is one last required step to authorize your app, and it’s easy to miss!

Find the client_email inside client_secret.json. Back in your spreadsheet, click the Share button in the top right, and paste the client email into the People field to give it edit rights. Hit Send.

alt text

Finally copy the client_secret.json in the root of the project. client_secret.json

Interaction.json

Once you have the OAuth2 you should create the interaction.json. Create a new file on your skill root project ./interaction.json and paste the following snippet. Replace all the values you need.

{
  "local-manifest": {
    "publishingInformation.locales.en-US.name": "Local skill Name",
    "publishingInformation.locales.en-GB.name": "Local skill Name",
    "apis.custom.endpoint.uri": "https://a4a8e881.ngrok.io/skill",
    "events.endpoint.uri": "https://a4a8e881.ngrok.io/skill",
    "apis.custom.endpoint.sslCertificateType": "Wildcard",
    "events.endpoint.sslCertificateType": "Wildcard"
  },
  "platform": ["alexa", "dialogFlow"],
  "content": ["CONTENT_TO_DOWNLOAD_ONE", "CONTENT_TO_DOWNLOAD_TWO"],
  "spreadsheets": ["INTENT SPREADSHEET", "PUBLISHING SPREADSHEET"],
}

Finally execute it and voilà :flushed:

$ node node_modules/voxa-cli/

Options

  • spreadsheets: Array of spreadsheets. Each csv should be a interaction model for a specific locale. Spreadsheet can also be about publishing information. Make sure to review Interaction spreadsheet structure({{ site.url }}/docs/interaction-spreadsheet) and Publishing spreadsheet structure({{ site.url }}/docs/publishing-spreadsheet)
  • content: other tabs to download. simple table, content description you named!. Make sure to review content structure({{ site.url }}/docs/interaction-spreadsheet#tabs-to-download-should-have-the-following-structure)
  • platform: We currently support Alexa and Dialog Flow interaction models. Make sure to review platform structure({{ site.url }}/docs/platform)
  • local-manifest: Build your own local manifest from the publishing information from the spreadsheets. You can overwrite all the values you want. Make sure to review Local manifest({{ site.url }}/docs/local-manifest)

Other links

3.0.2

2 years ago

3.0.1

2 years ago

2.3.0-alpha4

4 years ago

2.3.0-alpha2

4 years ago

2.3.0-alpha3

4 years ago

2.3.0-alpha1

4 years ago

2.3.1-alpha1

4 years ago

2.3.0

4 years ago

2.3.1

4 years ago

2.2.2

4 years ago

2.2.1

5 years ago

2.2.0

5 years ago

2.2.0-alpha2

5 years ago

2.2.0-alpha1

5 years ago

2.1.3-alpha2

5 years ago

2.1.3-alpha1

5 years ago

2.1.2

5 years ago

2.1.2-alpha10

5 years ago

2.1.2-alpha9

5 years ago

2.1.2-alpha8

5 years ago

2.1.2-alpha7

5 years ago

2.1.2-alpha6

5 years ago

2.1.2-alpha5

5 years ago

2.1.2-alpha4

5 years ago

2.1.2-alpha3

5 years ago

2.1.2-alpha2

5 years ago

2.1.2-alpha1

5 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.1

5 years ago

2.0.1-alpha3

5 years ago

2.0.1-alpha2

5 years ago

2.0.1-alpha1

5 years ago

2.0.0

5 years ago

1.0.2-alpha30

5 years ago

1.0.2-alpha29

5 years ago

1.0.2-alpha28

5 years ago

1.0.2-alpha27

5 years ago

1.0.2-alpha26

5 years ago

1.0.2-alpha25

6 years ago

1.0.2-alpha24

6 years ago

1.0.2-alpha23

6 years ago

1.0.2-alpha22

6 years ago

1.0.2-alpha21

6 years ago

1.0.2-alpha20

6 years ago

1.0.2-alpha19

6 years ago

1.0.2-alpha18

6 years ago

1.0.2-alpha17

6 years ago

1.0.2-alpha16

6 years ago

1.0.2-alpha15

6 years ago

1.0.2-alpha14

6 years ago

1.0.2-alpha13

6 years ago

1.0.2-alpha12

6 years ago

1.0.2-alpha11

6 years ago

1.0.2-alpha10

6 years ago

1.0.2-alpha9

6 years ago

1.0.2-alpha8

6 years ago

1.0.2-alpha7

6 years ago

1.0.2-alpha6

6 years ago

1.0.2-alpha5

6 years ago

1.0.2-alpha4

6 years ago

1.0.2-alpha3

6 years ago

1.0.0-alpha1

6 years ago