Deploy this function on flows.network, and you will get a Slack bot that calculating the result of a mathematical formula.
This is a simple example to show how flows.network works when the trigger and action both happens in Slack.
To install this Slack calulator App, we will use flows.network, a serverless platform enables you to deploy your own app quick and easy in three simple steps.
Fork this repo and replace parameters in the red boxes in the image below with your own Slack workspace and channel.
- # for an account for deploying flows on flows.network. It's free.
- Click on the "Create a Flow" button to start deploying the ChatGPT GitHub APP
- Authenticate the flows.network to access the
slack-calculator
repo you just forked.
- Click the Deploy button to deploy your function.
Next, the flows.network will direct you to configure the SaaS integration required by your flow.
Here we can see, we need to configue one SaaS integration.
Click on the "Connect/+ Add new authentication" button to authenticate your Slack account. You'll be redirected to a new page where you must grant flows.network permission to install the flows-network-integration
bot on your Slack workspace. The workspace is the one you changed in the code.
Now, click the Check button to see your flow details. As soon as the flow function's status becomes ready
and the flow's status became running
, the Slack calculator App goes live. Go ahead and calulate away in Slack!
flows.network is still in its early stages. We would love to hear your feedback!
To build locally
cargo build target wasm32-wasi --release