r/GoogleAssistantDev • • Nov 14 '19

Any limitations/cautions about using the Dialogflow inline code editor?

I have an action that uses an external editor and pushes updates via firebase deploy functions. This is somewhat time consuming and I'm contemplating copying this into the inline editor. Just seeing what people's experience is with the inline editor and if it can handle more complex actions (mine uses Firebase and does digital transactions).

Thanks!

6 Upvotes

4 comments sorted by

1

u/cgilhoi Nov 17 '19

Thanks folks. The reason I was considering it is that I recently developed an Alexa skill and was happy with the Alexa-hosted option. You can have multiple files with that and does some real-time error flagging.

4

u/afirstenberg GDE Nov 14 '19

I almost never use the inline editor unless I'm doing small one-off tests of things. I much prefer having a real editing environment.

The biggest downside of the inline editor is that you only have he ability to edit one file. If you like splitting code between files to manage them better - you can't.

Otherwise - it is doing exactly what you're doing... deploying it to Firebase Cloud Functions.

3

u/porters_quarters Nov 14 '19

The editor can be used for complex actions, http calls, and has a package.json for external repos, but I agree with afirstenberg.

I’ll add that it doesn’t have any QoL features found in IDEs, like linting, automatically closing quotes or brackets, and still requires semicolons. The window dimensions can’t be expanded beyond the standard minimal height / width. These are all very superficial reasons to not use it, because it will still work, but in my experience frustrates the whole process of creating fulfillment.

2

u/fleker2 Googler Nov 15 '19

The main limitation is that you have a package.json and index.js. Advanced editing things like Typescript, lint checks, more than one file, etc. are not going to be available. You can use it if you want, and you won't see any technical barriers compared to having the same setup locally. But keep in mind it just pushes to Firebase Functions behind the scenes, which probably won't be a big improvement in speed if at all.