To send notifications in Slack, you can use our webhook.
Don't worry, you don't need to code anything and it will take seconds to set it up! đ
Here are the steps to follow:
1. Go to the Slack api website and create an app from scratch.
2. Name and create your app
3. Pick the incoming Webhooks option as you will post message from Joonbot into Slack.
4. Activate incoming Webhooks.
5. Add a new webhook to your Slack workspace.
6. Select the channel where you want the notifications to be sent.
7. Copy the Webhook URL given by Slack.
8. Now, create a variable block after the questions you need answers from in your Slack notification. It The variable block will be your Slack notification.
â ïž The name of the variable block has to be text and the type has to be a text also.
You can give the value you want and so use variables that you used to store data collected.
9. Now, you need to add a webhook block, configure the webhook method as POST and paste the webhook URL previously copied on Slack API website.
10. After that, don't forget to go back into your webhook block and select the webhook you created.
11. Done!
So, in my example, I ask for the name and save it under the {{name}} variable and I also ask for the email and save it under the {{email}} variable.
I created my Slack notification with the variable block and expected this format:
Title: my webhook name
Notification: New lead {{email}} - {{name}}
Here is the result:
https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX
CrĂ©er webhook avec lâurl hook slack + POST
Comments
0 comments
Please sign in to leave a comment.