Cloud Functions allow you to create custom interactions that allow users to interact with your data and content, such as product databases, CRM systems, schedules, third party APIs, or any other data source.
Developers create the functions within the Stackchat editor or through their preferred IDE. Once entered or uploaded these functions can be accessed by your bot.
When you first visit a bot's page, you have two options, Start from Scratch and Upload File.
First time Stackchat developers will likely want to start from scratch. When you click the Start from Scratch button, you will be taken to the Cloud Function editor.
Here you can directly input the functions you create. The editor also features a dark mode and the ability to download the contents of the editor.
For developers who want to use their own IDE, they can reference this example on Github.
Once Cloud Functions have been exported from a developer's IDE, they will become visible on the Cloud Functions page. The button above the editor shows the number of functions that have been exported, and you can click that button to see the names of the ones that have been exported.
IDE users can also remove all existing Cloud Functions using the Reset button.