Introduction
Cloud Functions allow you to display dynamic content in your chatbot. You can source content from product databases, CRM systems, or APIs and then display that content in a conversation with your chatbot users. This is useful for displaying search results, making bookings, or processing e-Commerce transactions in your chatbot.
Note: This feature is aimed at developers so the documentation leans on the technical side.
Developers can create Cloud Functions within the built-in editor in Stackchat Studio or through their preferred IDE. Once entered or uploaded, these function are accessible to your bot at run-time i.e. when a user is interacting with your bot.
Environment Information
- Cloud Functions execute in a Node.js 12.x runtime, with
node-fetch
2.6.0 and@stackchat/dynamic-content-toolkit
0.0.9 libraries made available at run-time. - You can use ES6/ES2015 syntax for your code and we will transpile it for you.
- You can develop Cloud Functions in your local IDE (if you want to use NPM) and upload your JavaScript bundle via the built-in editor in Stackchat Studio or via API.