valgaze / dialogflow-speedrun

A learning tool to get up and running fast with DialogFlow
MIT License
6 stars 0 forks source link

Eject strategy #5

Open valgaze opened 4 years ago

valgaze commented 4 years ago

Eject to cloud code

Transpile step

Will need to rejigger entry point-- most important thing is mapping of intentName (case-sensitive) to handler

Issue: what is most convenient form for cloud-code ejection + also local dev.

ex.

module.exports = [
  {name: 'intent abc',
   handler: require('./../a.js')},

  {name: 'intent ced',
   handler: require('./../b.js')},

]
valgaze commented 4 years ago

For local emulation w/ clou functions

df f: https://f6d4576e.ngrok.io/project-id/region-us-central1/functionName

config

{
port: 5001,
webhook: '/',
}