Skip to content

Instantly share code, notes, and snippets.

View AlexPernot's full-sized avatar

Alex Pernot AlexPernot

View GitHub Profile
@doppelganger9
doppelganger9 / fix-dialogflow-alexa-export.js
Created March 31, 2018 21:40
NodeJS Script to convert DialogFlow exported project for Alexa to new Alexa Skill Kit Interaction model schema.
import * as fs from 'fs';
/**
* put your Exported to Alexa DialogFlow project in the `alexa-export` directory
* run this script, it will generate an IntentSchemaV2.json that should pass the new
* Alexa Skill Kit schema definition validations.
* This is based on my project, it is by no means exhaustive, feel free to fork and
* add what you need.
*/