Making Predictions in Slack
Building AI apps in collaboration with your team.
Function provides a Slack bot that allows you to make predictions right as you discuss and collaborate with your teams.
Installing Function Bot
Install Function in your Slack workspace using the following link:
Make predictions in any conversation with the `/predict` slash command.
Doing so will ask you to authorize Function to join your server:
Logging in to Function
Head over to your Account ↗ page on Function to generate a new access key for Slack:
Next, head over to Slack and login with the /fxn
slash command:
# Send this message in any Slack channel
/fxn
You should see a login form pop up. Paste the access key you just generated and login:
Making Predictions
First, we'll need a predictor to make predictions with. You can either use a public predictor on Function, or make your own. In this guide, we'll be using the @samplefxn/stable-diffusion
predictor:
You can discover and use public predictors on Function.
We'll be using the Stable Diffusion predictor in this guide.
The predictor accepts a prompt
which will be used to generate the image. In a channel, type and send the following message:
# Make a prediction in any Slack channel
/predict @samplefxn/stable-diffusion
You should see a form for specifying the inputs for the prediction. Fill in a prompt and make the prediction!