Wasm Interface
According to the use cases of Slack bots, we define the following 5 functions for Wasm program to communicate with Host program. The 5 functions are as follows:
text_received
image_received
expect_text
expect_image
initiate
If you implement a simple question-and-answer chat bot, you only need to implement the first text_received
function.
For quick start template functions, please go to Serverless Reactor Starter github repo