2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

フルーツ勤怠ボットを継承する🥝

2
Last updated at Posted at 2026-03-24

はじめに

私の部門ではSlackで勤怠連絡をしています。
200人規模の大きな部門だったこともあり、各課ごとに親投稿(スレッド)を自動作成し、メンバーはそこへ返信するような工夫をしていました。

image.png

この仕組みは私も先輩から受け継いだものですが、後輩に引き継ぐタイミングが来たのでQiitaにも残します。

勤怠ボットを作るのに必要なもの

  • PowerAutomate
  • Slack

勤怠ボットの作り方

1. PowerAutomate でフロー作成

全体像

image.png

①繰り返し

image.png

②変数を初期化する

image.png

・text→ボットの名前
・icon→ボットのアイコン(ここをフルーツにしていました)

ここでカスタマイズしてください😀

③JSONの解析

.json
{
    "type": "object",
    "properties": {
        "objects": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "text": {
                        "type": "string"
                    },
                    "icon_emoji": {
                        "type": "string"
                    }
                },
                "required": [
                    "text",
                    "icon_emoji"
                ]
            }
        }
    }
}

④Apply to each(繰り返し処理)

image.png
ここでボットに投稿して欲しい内容を設定します。

2. SlackのチャンネルにMicrosoft Power Platform Connectorsを追加

image.png

3. フローの状況をオンにする

image.png

引き継ぎたいとき

作ったフローを共有することができます。

渡す側

1.マイフロー> 共有
image.png
2.引き継ぎたい人を追加する
image.png

引き取る側

PowerAutomateのフローテンプレートを共有してもらう
image.png

最後に

PowerAutomateを使ったフロー作成は新人さんにもおすすめです!
誰かが出来るだけでなく、誰でも出来るようにアウトプットはしていかないとなと思いました。
終わりです!

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?