Fn()
notation for calling Apps (formerly called Functions) in your CSML code has been replaced by the newer App()
built-in as of CSML v1.5. Both notations will continue to work until CSML v2 is released, but this documentation will only reference the new App()
usage from now on.node test.js
at the root of the project. You should see something like the following:zip -r9 ../randomuser.zip .
. This will create a deployment package for your app, that you will be able to import in CSML Studio.getRandomUser
, leave index.handler
as your app's main handler and select nodejs12.x
as the runtime.do x = App(..)
(or a remember
), the data is subject to the usual memory size limitations. In general, if your app returns more than a few KB of data, ask yourself if you really need all that data that you most likely won't be able to display in a chatbot (text-based, so really light) or if you shouldn't strip it down directly in the app itself!