{"id":75904,"date":"2024-11-27T11:50:00","date_gmt":"2024-11-27T02:50:00","guid":{"rendered":"https:\/\/www.creationline.com\/tech-blog\/?p=75904"},"modified":"2024-11-27T11:26:06","modified_gmt":"2024-11-27T02:26:06","slug":"slack%e3%81%a7%e3%82%b9%e3%83%ac%e3%83%83%e3%83%89%e3%81%ab%e8%bf%94%e4%bf%a1%e3%81%99%e3%82%8b%e3%83%9c%e3%83%83%e3%83%88%e3%82%92%e3%83%ad%e3%83%bc%e3%82%ab%e3%83%abpc%e3%81%a7%e5%8b%95%e3%81%8b","status":"publish","type":"post","link":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/75904","title":{"rendered":"Slack\u3067\u30b9\u30ec\u30c3\u30c9\u306b\u8fd4\u4fe1\u3059\u308b\u30dc\u30c3\u30c8\u3092\u30ed\u30fc\u30ab\u30ebPC\u3067\u52d5\u304b\u305d\u3046 #slack #ai #langgraph #azure #openai #llm #python"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u306f\u3058\u3081\u306b<\/h2>\n\n\n\n<p>\u5f0a\u793e\u3067\u306f\u3055\u307e\u3056\u307e\u306a\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u30c4\u30fc\u30eb\u3092\u5229\u7528\u3057\u3066\u304a\u308a\u3001\u4e2d\u3067\u3082<a href=\"https:\/\/slack.com\/intl\/ja-jp\/\" target=\"_blank\" rel=\"noreferrer noopener\">Slack<\/a>\u306e\u5229\u7528\u7387\u304c\u9ad8\u3044\u3067\u3059\u3002Slack\u306b\u306f\u65e2\u306b<a href=\"https:\/\/slack.com\/intl\/ja-jp\/features\/ai\" target=\"_blank\" rel=\"noreferrer noopener\">Slack AI<\/a>\u3068\u3044\u3046\u6a5f\u80fd\u304c\u3042\u308a\u3001\u30c1\u30e3\u30c3\u30c8\u3084\u30e1\u30cb\u30e5\u30fc\u3067\u3055\u307e\u3056\u307e\u306a\u4ed5\u4e8b\u3092\u4efb\u305b\u3089\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u672c\u7a3f\u3067\u306f<a href=\"https:\/\/azure.microsoft.com\/ja-jp\/products\/ai-services\/openai-service\" target=\"_blank\" rel=\"noreferrer noopener\">Azure OpenAI<\/a>\u3068\u4f1a\u8a71\u3059\u308b\u72ec\u81ea\u306eSlack\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u3092\u4f5c\u6210\u3057\u3001\u30ed\u30fc\u30ab\u30ebPC\u3067\u52d5\u304b\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Slack\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u306e\u30ef\u30fc\u30af\u30b9\u30da\u30fc\u30b9\u6e96\u5099<\/h2>\n\n\n\n<p>\u6ce8\u610f\uff1a\u3053\u3053\u3067\u306fSlack\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u3092\u52d5\u304b\u3059\u305f\u3081\u306b\u5225\u9014\u30ef\u30fc\u30af\u30b9\u30da\u30fc\u30b9\u3092\u4f5c\u6210\u3057\u3066\u5229\u7528\u3057\u3066\u3044\u307e\u3059\u3002\u30c6\u30b9\u30c8\u7528\u306b\u306f\u5c02\u7528\u306e\u30ef\u30fc\u30af\u30b9\u30da\u30fc\u30b9\u3092\u6e96\u5099\u3059\u308b\u3068\u826f\u3044\u3068\u601d\u3044\u307e\u3059\u3002\u3082\u3057\u304a\u4f7f\u3044\u306eSlack\u30ef\u30fc\u30af\u30b9\u30da\u30fc\u30b9\u3067\u30c6\u30b9\u30c8\u3059\u308b\u306a\u3089\u3001\u30dc\u30c3\u30c8\u4f5c\u6210\u6a29\u9650\u304c\u306a\u3044\u5834\u5408\u306f\u6a29\u9650\u3092\u6301\u3064\u7ba1\u7406\u8005\u306b\u304a\u554f\u3044\u5408\u308f\u305b\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>Slack\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u306f <a href=\"https:\/\/slack.com\/intl\/ja-jp\/help\/articles\/360001537467\" target=\"_blank\" rel=\"noreferrer noopener\">Slack \u30a2\u30d7\u30ea<\/a> \u306e\u4e00\u3064\u3068\u3057\u3066\u4f5c\u6210\u3059\u308b\u306e\u3067\u3001Slack\u30a2\u30d7\u30ea\u306e\u6e96\u5099\u3092\u3057\u307e\u3057\u3087\u3046\u3002\u4f5c\u6210\u624b\u9806\u306f <a href=\"https:\/\/api.slack.com\/quickstart\" target=\"_blank\" rel=\"noreferrer noopener\">Slack apps - Quickstart<\/a> \u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u307e\u305a <a href=\"https:\/\/api.slack.com\/apps\/\" target=\"_blank\" rel=\"noreferrer noopener\">Slack API: Applications<\/a> \u3092\u958b\u304d\u3001\u300cCreate New App\u300d\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u307e\u3059\u3002\u30c0\u30a4\u30a2\u30ed\u30b0\u304c\u51fa\u308b\u306e\u3067\u300cFrom scratch\u300d\u3092\u9078\u3073\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u300cApp Name\u300d\u3092\u300c <strong>chatbot-test<\/strong> \u300d\u3068\u5165\u529b\u3057\u3001\u300cPick a workspace to develop your app in\u300d\u3067\u306fSlack\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u30ef\u30fc\u30af\u30b9\u30da\u30fc\u30b9\u3092\u9078\u629e\u3057\u3001\u300cCreate App\u300d\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u300cBasic Information\u300d\u753b\u9762\u306b\u9077\u79fb\u3059\u308b\u306e\u3067\u3001\u5de6\u306e\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u30a8\u30ea\u30a2\u306b\u3042\u308b\u300cOAuth &amp; Permissions\u300d\u3092\u9078\u629e\u3057\u307e\u3059\u3002\u4e0b\u306b\u30b9\u30af\u30ed\u30fc\u30eb\u3057\u3066\u300cScopes\u300d\u307e\u3067\u9032\u307f\u3001\u300cBot Token Scopes\u300d\u306e\u300cAdd an OAuth Scope\u300d\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u307e\u3059\u3002\u300c <strong>app_mentions:read<\/strong> \u300d\u3092\u9078\u3073\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u304c\u81ea\u8eab\u306b\u5411\u3051\u305f\u30e1\u30f3\u30b7\u30e7\u30f3\u3092\u8aad\u307f\u8fbc\u3080\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u518d\u3073\u300cAdd an OAuth Scope\u300d\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u3001\u300c <strong>chat:write<\/strong> \u300d\u3092\u9078\u3073\u307e\u3059\u3002\u3053\u308c\u3067\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u306f\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u66f8\u304d\u8fbc\u3080\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u4ed6\u306b\u3082\u3055\u307e\u3056\u307e\u306a\u6a29\u9650\u304c\u3042\u308b\u306e\u3067 <a href=\"https:\/\/api.slack.com\/scopes\" target=\"_blank\" rel=\"noreferrer noopener\">Permission scopes<\/a> \u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u6a29\u9650\u3092\u8ffd\u52a0\u3057\u305f\u3089\u5de6\u306e\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u30a8\u30ea\u30a2\u306b\u3042\u308b\u300cEvent Subscriptions\u300d\u3092\u9078\u629e\u3057\u307e\u3059\u3002\u300cEnable Events\u300d\u30c8\u30b0\u30eb\u30b9\u30a4\u30c3\u30c1\u3092\u30aa\u30f3\u306b\u3057\u307e\u3059\u3002\u300cSubscribe to bot events\u300d\u306e\u6298\u308a\u305f\u305f\u307f\u3092\u958b\u304d\u3001\u300cAdd Bot User Event\u300d\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u307e\u3059\u3002\u300c <strong>app_mention<\/strong> \u300d\u3092\u9078\u3073\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u306f\u81ea\u8eab\u306b\u5411\u3051\u305f\u30e1\u30f3\u30b7\u30e7\u30f3\u306e\u307f\u3092\u30e1\u30c3\u30bb\u30fc\u30b8\u30a4\u30d9\u30f3\u30c8\u3068\u3057\u3066\u8aad\u307f\u53d6\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u53f3\u4e0b\u306e\u300cSave Changes\u300d\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u3066\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30a4\u30d9\u30f3\u30c8\u30b5\u30d6\u30b9\u30af\u30e9\u30a4\u30d6\u3092\u8a2d\u5b9a\u3057\u305f\u3089\u5de6\u306e\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u30a8\u30ea\u30a2\u306b\u3042\u308b\u300cSocket Mode\u300d\u3092\u9078\u629e\u3057\u307e\u3059\u3002\u3053\u306e\u624b\u9806\u306f <a href=\"https:\/\/api.slack.com\/apis\/socket-mode\" target=\"_blank\" rel=\"noreferrer noopener\">Socket Mode<\/a> \u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u300cEnable Socket Mode\u300d\u30c8\u30b0\u30eb\u30b9\u30a4\u30c3\u30c1\u3092\u30aa\u30f3\u306b\u3057\u307e\u3059\u3002\u3059\u308b\u3068\u300cGenerate an app-level token to enable Socket Mode\u300d\u30c0\u30a4\u30a2\u30ed\u30b0\u304c\u51fa\u308b\u306e\u3067\u3001\u3053\u3053\u3067\u306f\u300cToken Name\u300d\u306b\u300c <strong>bolt<\/strong> \u300d\u3068\u5165\u529b\u3057\u3001\u300cGenerate\u300d\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u307e\u3059(\u3053\u306e <strong>bolt<\/strong> \u3068\u3044\u3046\u540d\u79f0\u306b\u3064\u3044\u3066\u306f\u5f8c\u8ff0\u3057\u307e\u3059)\u3002\u8868\u793a\u3055\u308c\u308b\u300cToken\u300d\u306f\u30a2\u30d7\u30ea\u30c8\u30fc\u30af\u30f3\u306a\u3069\u3068\u547c\u3070\u308c\u308b\u3082\u306e\u3067\u3059(<code>xapp-<\/code> \u3067\u59cb\u307e\u308b\u6587\u5b57\u5217\u3067\u3059)\u3002\u3042\u3068\u3067\u5229\u7528\u3059\u308b\u306e\u3067\u3053\u308c\u3092\u30b3\u30d4\u30fc\u3057\u3066\u4fdd\u5b58\u3057\u3001\u4e00\u65e6\u300cDone\u300d\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u3066\u9589\u3058\u307e\u3059\u3002\u306a\u304a\u30a2\u30d7\u30ea\u30c8\u30fc\u30af\u30f3\u306f\u518d\u95b2\u89a7\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u30bd\u30b1\u30c3\u30c8\u30e2\u30fc\u30c9\u3092\u6709\u52b9\u5316\u3057\u305f\u3089\u5de6\u306e\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u30a8\u30ea\u30a2\u306b\u3042\u308b\u300cInstall App\u300d\u3092\u9078\u629e\u3057\u307e\u3059\u3002\u305d\u3057\u3066\u300cInstall to <strong>\u30ef\u30fc\u30af\u30b9\u30da\u30fc\u30b9<\/strong> \u300d\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u307e\u3059\u3002\u30a2\u30d7\u30ea\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u540c\u610f\u753b\u9762\u304c\u51fa\u308b\u306e\u3067\u300c\u8a31\u53ef\u3059\u308b\u300d\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u307e\u3059\u3002\u8868\u793a\u3055\u308c\u308b\u300cBot User OAuth Token\u300d\u306f\u30dc\u30c3\u30c8\u30c8\u30fc\u30af\u30f3\u306a\u3069\u3068\u547c\u3070\u308c\u308b\u3082\u306e\u3067\u3059(<code>xoxb-<\/code> \u3067\u59cb\u307e\u308b\u6587\u5b57\u5217\u3067\u3059)\u3002\u3042\u3068\u3067\u5229\u7528\u3059\u308b\u306e\u3067\u3053\u308c\u3092\u30b3\u30d4\u30fc\u3057\u3066\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3067\u306f\u3044\u3064\u3082\u306eSlack\u306e\u753b\u9762\u306b\u623b\u308a\u307e\u3057\u3087\u3046\u3002\u5de6\u306eApp\u30c4\u30ea\u30fc\u306b\u300c <strong>chatbot-test<\/strong> \u300d\u304c\u8ffd\u52a0\u3055\u308c\u3066\u3044\u308b\u306f\u305a\u3067\u3059\u3002\u30a2\u30d7\u30ea\u3068\u4f1a\u8a71\u3057\u305f\u3044\u30c1\u30e3\u30f3\u30cd\u30eb\u3067\u300c <code>\/invite @chatbot-test<\/code> \u300d\u3092\u5b9f\u884c\u3057\u3066\u62db\u5f85\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"571\" height=\"106\" src=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/slack-local-bot_2024-11-21_18-54-00.png\" alt=\"\" class=\"wp-image-75905\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/slack-local-bot_2024-11-21_18-54-00.png 571w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/slack-local-bot_2024-11-21_18-54-00-360x67.png 360w\" sizes=\"auto, (max-width: 571px) 100vw, 571px\" \/><\/figure>\n\n\n\n<p>Slack\u30c1\u30e3\u30f3\u30cd\u30eb\u306b\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u304c\u3084\u3063\u3066\u304d\u307e\u3057\u305f\uff01 \u3057\u304b\u3057\u3001\u5b9f\u969b\u306b\u51e6\u7406\u3092\u884c\u3046\u90e8\u5206\u3092\u4f5c\u3063\u3066\u3044\u306a\u3044\u305f\u3081\u3001\u3053\u306e\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u306f\u629c\u3051\u6bbb\u3067\u3059\u3002\u6b21\u9805\u3067\u51e6\u7406\u90e8\u5206\u3092\u4f5c\u3063\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Slack\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u306e\u672c\u4f53\u4f5c\u6210<\/h2>\n\n\n\n<p>\u672c\u7a3f\u3067\u306f <a href=\"https:\/\/tools.slack.dev\/bolt-python\/ja-jp\/getting-started\/\" target=\"_blank\" rel=\"noreferrer noopener\">Bolt for Python<\/a> \u3092\u4f7f\u3063\u3066\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u672c\u4f53\u306e\u51e6\u7406\u90e8\u5206\u3092\u4f5c\u3063\u3066\u3044\u304d\u307e\u3059\u3002\u5148\u306e\u30bd\u30b1\u30c3\u30c8\u30e2\u30fc\u30c9\u306e\u8a2d\u5b9a\u6642\u306b\u540d\u4ed8\u3051\u305f\u300cbolt\u300d\u3068\u306f\u3053\u308c\u3092\u610f\u5473\u3057\u3066\u3044\u307e\u3059\u3002\u307e\u305fGitHub\u30ec\u30dd\u30b8\u30c8\u30ea\u306b\u306f\u3055\u307e\u3056\u307e\u306a <a href=\"https:\/\/github.com\/slackapi\/bolt-python\/tree\/main\/examples\" target=\"_blank\" rel=\"noreferrer noopener\">examples<\/a> \u304c\u3042\u308b\u306e\u3067\u3053\u3061\u3089\u3082\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u3053\u3053\u3067\u306fSlack\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u306b\u30e1\u30f3\u30b7\u30e7\u30f3\u3059\u308b\u3068\u3001\u30b9\u30ec\u30c3\u30c9\u3067\u5fdc\u7b54\u3057\u3066\u304f\u308c\u308b\u3068\u3044\u3046\u51e6\u7406\u3092\u4f5c\u308a\u307e\u3059\u3002\u6b21\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">from slack_bolt import App\nfrom slack_bolt.adapter.socket_mode import SocketModeHandler\nimport re\n\nimport os\nfrom dotenv import load_dotenv\nload_dotenv()\n\napp = App(token=os.getenv(\"SLACK_BOT_TOKEN\"))\nslack_bot_id = os.getenv(\"SLACK_BOT_ID\")\n\n@app.event(\"app_mention\")\ndef mention_reply(event, say):\n    user = event['user']\n    text = event['text']\n    if 'thread_ts' in event:\n        thread_ts = event['thread_ts']\n    else:\n        thread_ts = event['ts']\n\n    msg = re.sub(f'&lt;@{slack_bot_id}>', '', text)\n    say(\n        text=f\"Received mention from user: &lt;@{user}>, text: {msg}, ts: {thread_ts}\",\n        thread_ts=thread_ts\n    )\n\nif __name__ == \"__main__\":\n    SocketModeHandler(app, os.getenv(\"SLACK_APP_TOKEN\")).start()<\/pre>\n\n\n\n<p>\u6ce8\u76ee\u70b9\u3092\u6319\u3052\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/pypi.org\/project\/python-dotenv\/\" target=\"_blank\" rel=\"noreferrer noopener\">python-dotenv<\/a> \u3092\u4f7f\u3063\u3066\u74b0\u5883\u5909\u6570\u3092\u8aad\u307f\u8fbc\u3093\u3067\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>SLACK_BOT_TOKEN<\/code> : \u300cBot User OAuth Token\u300d\u3067\u3059(<code>xoxb-<\/code> \u3067\u59cb\u307e\u308b\u6587\u5b57\u5217)<\/li>\n\n\n\n<li><code>SLACK_APP_TOKEN<\/code> : \u300cToken\u300d\u3067\u3059(<code>xapp-<\/code> \u3067\u59cb\u307e\u308b\u6587\u5b57\u5217\u3067\u3059)<\/li>\n\n\n\n<li><code>SLACK_BOT_ID<\/code> : <code>@chatbot-test<\/code> \u306e\u30e1\u30f3\u30d0\u30fcID\u3067\u3059\u3002Slack\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u304b\u3089\u30b3\u30d4\u30fc\u3057\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u30b9\u30ec\u30c3\u30c9\u3067\u8fd4\u4fe1\u3059\u308b\u969b\u306b\u306f <code>thread_ts<\/code> \u3068 <code>ts<\/code> \u3068\u3044\u3046\u5024\u304c\u91cd\u8981\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">    if 'thread_ts' in event:\n        thread_ts = event['thread_ts']\n    else:\n        thread_ts = event['ts']<\/pre>\n\n\n\n<p>\u30c1\u30e3\u30c3\u30c8\u30e1\u30c3\u30bb\u30fc\u30b8\u306b\u306f <code>ts<\/code> \u3068\u3044\u3046\u5024\u304c\u632f\u3089\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306f\u300c\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u300d\u3092\u610f\u5473\u3057\u3066\u3044\u307e\u3059\u3002\u4f8b\u3048\u3070\u3042\u308b\u30e1\u30c3\u30bb\u30fc\u30b8\u306e <code>ts<\/code> \u304c <code>1234567890.123456<\/code> \u3067\u3042\u308b\u3068\u3057\u307e\u3059\u3002\u3053\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u306b\u5bfe\u3057\u3066\u30b9\u30ec\u30c3\u30c9\u3067\u8fd4\u4fe1\u3059\u308b\u306b\u306f <code>thread_ts<\/code> \u306b <code>1234567890.123456<\/code> \u3092\u30bb\u30c3\u30c8\u3057\u3066\u9001\u4fe1\u3057\u307e\u3059\u3002\u4ee5\u964d\u3001\u540c\u3058\u30b9\u30ec\u30c3\u30c9\u5185\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u9001\u4fe1\u3059\u308b\u306b\u306f <code>thread_ts<\/code> \u306b <code>1234567890.123456<\/code> \u3092\u30bb\u30c3\u30c8\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">    msg = re.sub(f'&lt;@{slack_bot_id}>', '', text)<\/pre>\n\n\n\n<p>Slack\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u3078\u306e\u30e1\u30f3\u30b7\u30e7\u30f3 <code>@chatbot-test<\/code> \u3092\u524a\u9664\u3057\u3066\u3044\u307e\u3059\u3002\u672c\u7bc0\u3067\u306f\u7279\u306b\u95a2\u4fc2\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u4eca\u5f8c\u3053\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u3092Azure OpenAI\u306b\u6e21\u3059\u3068\u304d\u306b\u90aa\u9b54\u306b\u306a\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u306e\u3067\u524a\u9664\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">    say(\n        text=f\"Received mention from user: &lt;@{user}>, text: {msg}, ts: {thread_ts}\",\n        thread_ts=thread_ts\n    )<\/pre>\n\n\n\n<p>\u30c1\u30e3\u30c3\u30c8\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u9001\u4fe1\u3057\u3066\u3044\u307e\u3059\u3002\u524d\u8ff0\u306e\u901a\u308a <code>thread_ts<\/code> \u3092\u30bb\u30c3\u30c8\u3057\u3066\u540c\u4e00\u30b9\u30ec\u30c3\u30c9\u5185\u306b\u8fd4\u4fe1\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3067\u306f\u3001\u3053\u306ePython\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u30ed\u30fc\u30ab\u30ebPC\u4e0a\u3067\u69cb\u3044\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">(langgraph) % .\/31_slack_thread_reply.py\n&#x26a1;&#xfe0f; Bolt app is running!<\/pre>\n\n\n\n<p>\u52d5\u304d\u51fa\u3057\u307e\u3057\u305f\u3002Slack\u306e\u307b\u3046\u3067 <code>@chatbot-test<\/code> \u306b\u30e1\u30f3\u30b7\u30e7\u30f3\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"467\" height=\"167\" src=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/slack-local-bot_2024-11-22_10-59-14.png\" alt=\"\" class=\"wp-image-75906\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/slack-local-bot_2024-11-22_10-59-14.png 467w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/slack-local-bot_2024-11-22_10-59-14-360x129.png 360w\" sizes=\"auto, (max-width: 467px) 100vw, 467px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"571\" height=\"238\" src=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/slack-local-bot_2024-11-22_10-59-31.png\" alt=\"\" class=\"wp-image-75907\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/slack-local-bot_2024-11-22_10-59-31.png 571w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/slack-local-bot_2024-11-22_10-59-31-360x150.png 360w\" sizes=\"auto, (max-width: 571px) 100vw, 571px\" \/><\/figure>\n\n\n\n<p>\u30b9\u30ec\u30c3\u30c9\u3068\u3057\u3066\u8fd4\u4fe1\u304c\u8fd4\u3063\u3066\u304d\u307e\u3057\u305f\uff01 \u3055\u3089\u306b\u30b9\u30ec\u30c3\u30c9\u5185\u3067\u4f1a\u8a71\u3092\u7d9a\u3051\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"579\" height=\"486\" src=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/slack-local-bot_2024-11-22_11-04-30.png\" alt=\"\" class=\"wp-image-75908\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/slack-local-bot_2024-11-22_11-04-30.png 579w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/slack-local-bot_2024-11-22_11-04-30-360x302.png 360w\" sizes=\"auto, (max-width: 579px) 100vw, 579px\" \/><\/figure>\n\n\n\n<p>\u30b9\u30ec\u30c3\u30c9\u5185\u3067\u306e\u30e1\u30f3\u30b7\u30e7\u30f3\u306a\u3057\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u306b\u306f\u53cd\u5fdc\u3057\u307e\u305b\u3093\u3002\u3053\u308c\u306f\u30e1\u30f3\u30b7\u30e7\u30f3\u3055\u308c\u305f\u5834\u5408\u306e\u307f\u53cd\u5fdc\u3059\u308b\u3088\u3046\u306b\u4f5c\u6210\u3057\u305f\u305f\u3081\u306a\u306e\u3067\u3001\u60f3\u5b9a\u901a\u308a\u306e\u52d5\u4f5c\u3067\u3059\u3002\u30b9\u30ec\u30c3\u30c9\u5185\u3067\u30e1\u30f3\u30b7\u30e7\u30f3\u3059\u308c\u3070\u3001\u304d\u3061\u3093\u3068\u5fdc\u7b54\u3057\u3066\u304f\u308c\u307e\u3059\u3002\u307e\u305f\u3001\u8fd4\u4fe1\u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b <code>thread_ts<\/code> \u304c\u5909\u308f\u3063\u3066\u3044\u306a\u3044\u3053\u3068\u306b\u3082\u6ce8\u76ee\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u308c\u306f\u6700\u521d\u306b\u30e1\u30f3\u30b7\u30e7\u30f3\u3057\u305f\u30e1\u30c3\u30bb\u30fc\u30b8\u306e <code>ts<\/code> \u3092\u8868\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Slack\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u3068Azure OpenAI\u306e\u9023\u643a<\/h2>\n\n\n\n<p>\u524d\u9805\u3067\u4f5c\u6210\u3057\u305fSlack\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u306f\u7c21\u5358\u306a\u30b5\u30f3\u30d7\u30eb\u306a\u306e\u3067\u3001\u5b9a\u578b\u6587\u306e\u5fdc\u7b54\u3057\u304b\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u305d\u3053\u3067 <a href=\"https:\/\/azure.microsoft.com\/ja-jp\/products\/ai-services\/openai-service\" target=\"_blank\" rel=\"noreferrer noopener\">Azure OpenAI<\/a> \u3068\u9023\u643a\u3055\u305b\u3066\u4f1a\u8a71\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u4eca\u56de\u306f\u30ed\u30fc\u30ab\u30ebPC\u3067\u52d5\u4f5c\u3055\u305b\u308b\u306e\u3067\u3001\u300c<a href=\"https:\/\/www.creationline.com\/tech-blog\/75797\" target=\"_blank\" rel=\"noreferrer noopener\">LangGraph\u306e\u4f1a\u8a71\u5c65\u6b74\u3092SQLite\u306b\u4fdd\u6301\u3057\u3088\u3046<\/a>\u300d\u3092\u524d\u63d0\u3068\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30b3\u30fc\u30c9\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">from slack_bolt import App\nfrom slack_bolt.adapter.socket_mode import SocketModeHandler\nimport re\n\nfrom typing import Annotated\nfrom typing_extensions import TypedDict\nfrom langgraph.graph import StateGraph, START, END\nfrom langgraph.graph.message import add_messages\nfrom langchain_core.messages import BaseMessage, AIMessage, HumanMessage\nfrom langchain_openai import AzureChatOpenAI\nimport sqlite3\nfrom langgraph.checkpoint.sqlite import SqliteSaver\n\nimport os\nfrom dotenv import load_dotenv\nload_dotenv()\n\n# os.getenv(\"AZURE_OPENAI_API_KEY\")\n# os.getenv(\"AZURE_OPENAI_ENDPOINT\")\nllm = AzureChatOpenAI(\n         azure_deployment = os.getenv(\"AZURE_OPENAI_MODEL_NAME\"),\n         api_version = os.getenv(\"AZURE_OPENAI_API_VERSION\"),\n         temperature = 0.95,\n         max_tokens = 1024,\n      )\n\nclass State(TypedDict):\n    messages: Annotated[list, add_messages]\n\ndef chatbot(state: State):\n    res = llm.invoke(state[\"messages\"])\n    return {\"messages\": res}\n\ngraph_builder = StateGraph(State)\ngraph_builder.add_node(\"chatbot\", chatbot)\ngraph_builder.set_entry_point(\"chatbot\")\ngraph_builder.set_finish_point(\"chatbot\")\n\nconn = sqlite3.connect(\"checkpoints.sqlite\", check_same_thread=False)\nmemory = SqliteSaver(conn)\ngraph = graph_builder.compile(checkpointer=memory)\n\napp = App(token=os.getenv(\"SLACK_BOT_TOKEN\"))\nslack_bot_id = os.getenv(\"SLACK_BOT_ID\")\n\n@app.event(\"app_mention\")\ndef mention_reply(event, say):\n    user = event['user']\n    text = event['text']\n    if 'thread_ts' in event:\n        thread_ts = event['thread_ts']\n    else:\n        thread_ts = event['ts']\n\n    msg = re.sub(f'&lt;@{slack_bot_id}>', '', text)\n    events = graph.stream(\n        {\"messages\": [(\"user\", msg)]},\n        {\"configurable\": {\"thread_id\": thread_ts}},\n        stream_mode=\"values\"\n    )\n    for event in events:\n        message = event[\"messages\"][-1]\n        if type(message) == AIMessage:\n            say(\n                text=message.content,\n                thread_ts=thread_ts\n            )\n\nif __name__ == \"__main__\":\n    SocketModeHandler(app, os.getenv(\"SLACK_APP_TOKEN\")).start()<\/pre>\n\n\n\n<p>\u6ce8\u76ee\u70b9\u3092\u6319\u3052\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">    msg = re.sub(f'&lt;@{slack_bot_id}>', '', text)<\/pre>\n\n\n\n<p>\u524d\u8ff0\u306e\u901a\u308a\u3001Azure OpenAI\u306b\u6e21\u3059\u3068\u304d\u306b\u90aa\u9b54\u306b\u306a\u308a\u305d\u3046\u306a\u306e\u3067\u3001Slack\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u3078\u306e\u30e1\u30f3\u30b7\u30e7\u30f3 <code>@chatbot-test<\/code> \u3092\u524a\u9664\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">    events = graph.stream(\n        {\"messages\": [(\"user\", msg)]},\n        {\"configurable\": {\"thread_id\": thread_ts}},\n        stream_mode=\"values\"\n    )<\/pre>\n\n\n\n<p>LangGraph\u306b\u304a\u3051\u308b\u3072\u3068\u307e\u3068\u307e\u308a\u306e\u4f1a\u8a71\u3092\u793a\u3059 <code>thread_id<\/code> \u306b\u306f\u3001Slack\u306b\u304a\u3051\u308b\u30b9\u30ec\u30c3\u30c9\u306e\u8b58\u5225\u5b50\u3067\u3042\u308b <code>thread_ts<\/code> \u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001LangGraph\u3068Slack\u306e\u4e21\u65b9\u3067\u30b9\u30ec\u30c3\u30c9\u306e\u7bc4\u56f2\u304c\u4e00\u81f4\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">    for event in events:\n        message = event[\"messages\"][-1]\n        if type(message) == AIMessage:\n            say(\n                text=message.content,\n                thread_ts=thread_ts\n            )<\/pre>\n\n\n\n<p><code>thread_ts<\/code> \u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067Slack\u306b\u304a\u3051\u308b\u30b9\u30ec\u30c3\u30c9\u5185\u306b\u8fd4\u4fe1\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3067\u306f\u3001\u3053\u306ePython\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u30ed\u30fc\u30ab\u30ebPC\u4e0a\u3067\u5b9f\u884c\u3057\u3001<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">(langgraph) % .\/32_slack_langgraph_sqlite.py\n&#x26a1;&#xfe0f; Bolt app is running!<\/pre>\n\n\n\n<p>Slack\u306e\u307b\u3046\u3067 <code>@chatbot-test<\/code> \u306b\u30e1\u30f3\u30b7\u30e7\u30f3\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"376\" height=\"137\" src=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/slack-local-bot_2024-11-22_11-45-34.png\" alt=\"\" class=\"wp-image-75909\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/slack-local-bot_2024-11-22_11-45-34.png 376w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/slack-local-bot_2024-11-22_11-45-34-360x131.png 360w\" sizes=\"auto, (max-width: 376px) 100vw, 376px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"564\" height=\"276\" src=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/slack-local-bot_2024-11-22_11-45-47.png\" alt=\"\" class=\"wp-image-75910\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/slack-local-bot_2024-11-22_11-45-47.png 564w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/slack-local-bot_2024-11-22_11-45-47-360x176.png 360w\" sizes=\"auto, (max-width: 564px) 100vw, 564px\" \/><\/figure>\n\n\n\n<p>\u30b9\u30ec\u30c3\u30c9\u3068\u3057\u3066\u8fd4\u4fe1\u304c\u8fd4\u3063\u3066\u304d\u307e\u3057\u305f\uff01 \u5f15\u304d\u7d9a\u304d\u4f1a\u8a71\u3092\u7d9a\u3051\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"599\" src=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/slack-local-bot_2024-11-22_11-50-03-1024x599.png\" alt=\"\" class=\"wp-image-75911\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/slack-local-bot_2024-11-22_11-50-03-1024x599.png 1024w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/slack-local-bot_2024-11-22_11-50-03-360x211.png 360w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/slack-local-bot_2024-11-22_11-50-03-768x450.png 768w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/slack-local-bot_2024-11-22_11-50-03.png 1447w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u898b\u4e8b\u306b\u30b9\u30ec\u30c3\u30c9\u5185\u3067\u4f1a\u8a71\u304c\u6210\u7acb\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u3067\u306f\u3001\u5225\u306e\u30b9\u30ec\u30c3\u30c9\u3067\u300c\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u306f\u4f55\uff1f\u300d\u3068\u805e\u3044\u3066\u307f\u3066\u3001\u3053\u306e\u4f1a\u8a71\u5185\u5bb9\u3092\u899a\u3048\u3066\u3044\u308b\u304b\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"491\" src=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/slack-local-bot_2024-11-22_11-52-31-1024x491.png\" alt=\"\" class=\"wp-image-75912\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/slack-local-bot_2024-11-22_11-52-31-1024x491.png 1024w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/slack-local-bot_2024-11-22_11-52-31-360x173.png 360w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/slack-local-bot_2024-11-22_11-52-31-768x368.png 768w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/slack-local-bot_2024-11-22_11-52-31.png 1412w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u60f3\u5b9a\u901a\u308a\u3001\u5225\u30b9\u30ec\u30c3\u30c9\u306e\u5185\u5bb9\u306f\u77e5\u3089\u306a\u3044\u3088\u3046\u3067\u3059\u3002\u5143\u306e\u30b9\u30ec\u30c3\u30c9\u3067\u805e\u3044\u3066\u307f\u308b\u3068\u3001<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"322\" src=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/slack-local-bot_2024-11-22_11-54-41-1024x322.png\" alt=\"\" class=\"wp-image-75913\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/slack-local-bot_2024-11-22_11-54-41-1024x322.png 1024w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/slack-local-bot_2024-11-22_11-54-41-360x113.png 360w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/slack-local-bot_2024-11-22_11-54-41-768x242.png 768w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/slack-local-bot_2024-11-22_11-54-41.png 1401w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u304d\u3061\u3093\u3068\u307e\u3068\u3081\u3066\u304f\u308c\u307e\u3057\u305f\u3002\u30b9\u30ec\u30c3\u30c9\u3054\u3068\u3067\u4f1a\u8a71\u304c\u72ec\u7acb\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p>\u672c\u7a3f\u3067\u306f<a href=\"https:\/\/azure.microsoft.com\/ja-jp\/products\/ai-services\/openai-service\" target=\"_blank\" rel=\"noreferrer noopener\">Azure OpenAI<\/a>\u3068Slack\u306e\u30b9\u30ec\u30c3\u30c9\u5185\u3067\u4f1a\u8a71\u3059\u308b\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u3092<a href=\"https:\/\/tools.slack.dev\/bolt-python\/ja-jp\/getting-started\/\" target=\"_blank\" rel=\"noreferrer noopener\">Bolt for Python<\/a>\u3068<a href=\"https:\/\/langchain-ai.github.io\/langgraph\/\" target=\"_blank\" rel=\"noreferrer noopener\">LangGraph<\/a>\u3067\u4f5c\u6210\u3057\u3001\u30ed\u30fc\u30ab\u30ebPC\u3067\u52d5\u304b\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u307e\u3060\u5358\u7d14\u306bAzure OpenAI\u3068\u3084\u308a\u3068\u308a\u3057\u3066\u3044\u308b\u3060\u3051\u3067\u3059\u304c\u3001LangGraph\u3092\u7d44\u307f\u5408\u308f\u305b\u305f\u3053\u3068\u304b\u3089\u3001\u3055\u307e\u3056\u307e\u306a\u5fdc\u7528\u304c\u3067\u304d\u308b\u3088\u3046\u306a\u5f62\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u306a\u304a\u3001\u30a8\u30e9\u30fc\u51e6\u7406\u306f\u307e\u3063\u305f\u304f\u884c\u3063\u3066\u3044\u307e\u305b\u3093\u3057\u3001Azure OpenAI\u3068\u306e\u3084\u308a\u3068\u308a\u306b\u6642\u9593\u304c\u304b\u304b\u3063\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u306b\u304f\u3044\u306a\u3069\u3001\u3055\u3089\u306a\u308b\u6539\u5584\u30fb\u6539\u826f\u306e\u4f59\u5730\u304c\u3042\u308a\u307e\u3059\u3002\u3055\u3089\u306b\u3001\u4eca\u56de\u306f\u30ed\u30fc\u30ab\u30ebPC\u3067\u52d5\u4f5c\u3055\u305b\u3066\u3044\u308b\u305f\u3081\u3001\u5b89\u5b9a\u3057\u305f\u52d5\u4f5c\u5834\u6240\u306e\u78ba\u4fdd\u3082\u5fc5\u8981\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u672c\u30d6\u30ed\u30b0\u3067\u306f\u5f15\u304d\u7d9a\u304dAI\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u306e\u6539\u5584\u30fb\u6539\u826f\u3092\u9032\u3081\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b \u5f0a\u793e\u3067\u306f\u3055\u307e\u3056\u307e\u306a\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u30c4\u30fc\u30eb\u3092\u5229\u7528\u3057\u3066\u304a\u308a\u3001\u4e2d\u3067\u3082Slack\u306e\u5229\u7528\u7387\u304c\u9ad8\u3044\u3067\u3059\u3002Slack\u306b\u306f\u65e2\u306bSlack AI\u3068\u3044\u3046\u6a5f\u80fd\u304c\u3042\u308a\u3001\u30c1\u30e3\u30c3\u30c8\u3084\u30e1\u30cb\u30e5\u30fc\u3067\u3055\u307e\u3056\u307e\u306a\u4ed5\u4e8b\u3092\u4efb\u305b\u3089\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059 [&#8230;]<\/p>\n","protected":false},"author":2,"featured_media":75913,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"content-type":"","footnotes":""},"categories":[779,58,817,31,1004,323],"tags":[],"class_list":["post-75904","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai","category-azure","category-chatgpt-ai","category-higuchi","category-llm","category-python"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Slack\u3067\u30b9\u30ec\u30c3\u30c9\u306b\u8fd4\u4fe1\u3059\u308b\u30dc\u30c3\u30c8\u3092\u30ed\u30fc\u30ab\u30ebPC\u3067\u52d5\u304b\u305d\u3046 #slack #ai #langgraph #azure #openai #llm #python - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3<\/title>\n<meta name=\"description\" content=\"AI, Azure, ChatGPT\uff06AI, d-higuchi, LLM, Python |\u306f\u3058\u3081\u306b \u5f0a\u793e\u3067\u306f\u3055\u307e\u3056\u307e\u306a\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u30c4\u30fc\u30eb\u3092\u5229\u7528\u3057\u3066\u304a\u308a\u3001\u4e2d\u3067\u3082Slack\u306e\u5229\u7528\u7387\u304c\u9ad8\u3044\u3067\u3059\u3002Slack\u306b\u306f\u65e2\u306bSlack\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/75904\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Slack\u3067\u30b9\u30ec\u30c3\u30c9\u306b\u8fd4\u4fe1\u3059\u308b\u30dc\u30c3\u30c8\u3092\u30ed\u30fc\u30ab\u30ebPC\u3067\u52d5\u304b\u305d\u3046 #slack #ai #langgraph #azure #openai #llm #python - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\" \/>\n<meta property=\"og:description\" content=\"AI, Azure, ChatGPT\uff06AI, d-higuchi, LLM, Python |\u306f\u3058\u3081\u306b \u5f0a\u793e\u3067\u306f\u3055\u307e\u3056\u307e\u306a\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u30c4\u30fc\u30eb\u3092\u5229\u7528\u3057\u3066\u304a\u308a\u3001\u4e2d\u3067\u3082Slack\u306e\u5229\u7528\u7387\u304c\u9ad8\u3044\u3067\u3059\u3002Slack\u306b\u306f\u65e2\u306bSlack\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/75904\" \/>\n<meta property=\"og:site_name\" content=\"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/creationline\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-27T02:50:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/slack-local-bot_2024-11-22_11-54-41.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1401\" \/>\n\t<meta property=\"og:image:height\" content=\"441\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Daisuke Higuchi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@creationline\" \/>\n<meta name=\"twitter:site\" content=\"@creationline\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"Daisuke Higuchi\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"3\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/75904#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/75904\"},\"author\":{\"name\":\"Daisuke Higuchi\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/16f1373831fb6fd17387f16ae1195206\"},\"headline\":\"Slack\u3067\u30b9\u30ec\u30c3\u30c9\u306b\u8fd4\u4fe1\u3059\u308b\u30dc\u30c3\u30c8\u3092\u30ed\u30fc\u30ab\u30ebPC\u3067\u52d5\u304b\u305d\u3046 #slack #ai #langgraph #azure #openai #llm #python\",\"datePublished\":\"2024-11-27T02:50:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/75904\"},\"wordCount\":180,\"image\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/75904#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/slack-local-bot_2024-11-22_11-54-41.png\",\"articleSection\":[\"AI\",\"Azure\",\"ChatGPT\uff06AI\",\"d-higuchi\",\"LLM\",\"Python\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/75904\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/75904\",\"name\":\"Slack\u3067\u30b9\u30ec\u30c3\u30c9\u306b\u8fd4\u4fe1\u3059\u308b\u30dc\u30c3\u30c8\u3092\u30ed\u30fc\u30ab\u30ebPC\u3067\u52d5\u304b\u305d\u3046 #slack #ai #langgraph #azure #openai #llm #python - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/75904#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/75904#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/slack-local-bot_2024-11-22_11-54-41.png\",\"datePublished\":\"2024-11-27T02:50:00+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/16f1373831fb6fd17387f16ae1195206\"},\"description\":\"AI, Azure, ChatGPT\uff06AI, d-higuchi, LLM, Python |\u306f\u3058\u3081\u306b \u5f0a\u793e\u3067\u306f\u3055\u307e\u3056\u307e\u306a\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u30c4\u30fc\u30eb\u3092\u5229\u7528\u3057\u3066\u304a\u308a\u3001\u4e2d\u3067\u3082Slack\u306e\u5229\u7528\u7387\u304c\u9ad8\u3044\u3067\u3059\u3002Slack\u306b\u306f\u65e2\u306bSlack\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/75904#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/75904\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/75904#primaryimage\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/slack-local-bot_2024-11-22_11-54-41.png\",\"contentUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/slack-local-bot_2024-11-22_11-54-41.png\",\"width\":1401,\"height\":441},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/75904#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"HOME\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"ChatGPT\uff06AI\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/chatgpt-ai\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"AI\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/chatgpt-ai\\\/ai\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Slack\u3067\u30b9\u30ec\u30c3\u30c9\u306b\u8fd4\u4fe1\u3059\u308b\u30dc\u30c3\u30c8\u3092\u30ed\u30fc\u30ab\u30ebPC\u3067\u52d5\u304b\u305d\u3046 #slack #ai #langgraph #azure #openai #llm #python\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#website\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/\",\"name\":\"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\",\"description\":\"\u30a2\u30b8\u30e3\u30a4\u30eb\uff06DevOps\u3001\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\u3001AI\uff06LLM\u306e\u5148\u7aef\u6280\u8853\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/16f1373831fb6fd17387f16ae1195206\",\"name\":\"Daisuke Higuchi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/d-higuchi-wp-icon-230x230.png\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/d-higuchi-wp-icon-230x230.png\",\"contentUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/d-higuchi-wp-icon-230x230.png\",\"caption\":\"Daisuke Higuchi\"},\"description\":\"Chef\u30fbDocker\u30fbMirantis\u88fd\u54c1\u306a\u3069\u306e\u6280\u8853\u8981\u7d20\u306b\u52a0\u3048\u3066\u3001\u4f1a\u8b70\u306e\u9032\u3081\u65b9\u30fb\u6587\u7ae0\u306e\u66f8\u304d\u65b9\u306a\u3069\u306e\u696d\u52d9\u6539\u5584\u306b\u3082\u53d6\u308a\u7d44\u3093\u3067\u3044\u307e\u3059\u3002\u300cChef\u6d3b\u7528\u30ac\u30a4\u30c9\u300d\u5171\u8457\u306e\u307b\u304b\u3001Debian Official Developer\u3082\u3084\u3063\u3066\u3044\u307e\u3059\u3002\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Slack\u3067\u30b9\u30ec\u30c3\u30c9\u306b\u8fd4\u4fe1\u3059\u308b\u30dc\u30c3\u30c8\u3092\u30ed\u30fc\u30ab\u30ebPC\u3067\u52d5\u304b\u305d\u3046 #slack #ai #langgraph #azure #openai #llm #python - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","description":"AI, Azure, ChatGPT\uff06AI, d-higuchi, LLM, Python |\u306f\u3058\u3081\u306b \u5f0a\u793e\u3067\u306f\u3055\u307e\u3056\u307e\u306a\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u30c4\u30fc\u30eb\u3092\u5229\u7528\u3057\u3066\u304a\u308a\u3001\u4e2d\u3067\u3082Slack\u306e\u5229\u7528\u7387\u304c\u9ad8\u3044\u3067\u3059\u3002Slack\u306b\u306f\u65e2\u306bSlack","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/75904","og_locale":"ja_JP","og_type":"article","og_title":"Slack\u3067\u30b9\u30ec\u30c3\u30c9\u306b\u8fd4\u4fe1\u3059\u308b\u30dc\u30c3\u30c8\u3092\u30ed\u30fc\u30ab\u30ebPC\u3067\u52d5\u304b\u305d\u3046 #slack #ai #langgraph #azure #openai #llm #python - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","og_description":"AI, Azure, ChatGPT\uff06AI, d-higuchi, LLM, Python |\u306f\u3058\u3081\u306b \u5f0a\u793e\u3067\u306f\u3055\u307e\u3056\u307e\u306a\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u30c4\u30fc\u30eb\u3092\u5229\u7528\u3057\u3066\u304a\u308a\u3001\u4e2d\u3067\u3082Slack\u306e\u5229\u7528\u7387\u304c\u9ad8\u3044\u3067\u3059\u3002Slack\u306b\u306f\u65e2\u306bSlack","og_url":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/75904","og_site_name":"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","article_publisher":"https:\/\/www.facebook.com\/creationline","article_published_time":"2024-11-27T02:50:00+00:00","og_image":[{"width":1401,"height":441,"url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/slack-local-bot_2024-11-22_11-54-41.png","type":"image\/png"}],"author":"Daisuke Higuchi","twitter_card":"summary_large_image","twitter_creator":"@creationline","twitter_site":"@creationline","twitter_misc":{"\u57f7\u7b46\u8005":"Daisuke Higuchi","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"3\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/75904#article","isPartOf":{"@id":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/75904"},"author":{"name":"Daisuke Higuchi","@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/16f1373831fb6fd17387f16ae1195206"},"headline":"Slack\u3067\u30b9\u30ec\u30c3\u30c9\u306b\u8fd4\u4fe1\u3059\u308b\u30dc\u30c3\u30c8\u3092\u30ed\u30fc\u30ab\u30ebPC\u3067\u52d5\u304b\u305d\u3046 #slack #ai #langgraph #azure #openai #llm #python","datePublished":"2024-11-27T02:50:00+00:00","mainEntityOfPage":{"@id":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/75904"},"wordCount":180,"image":{"@id":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/75904#primaryimage"},"thumbnailUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/slack-local-bot_2024-11-22_11-54-41.png","articleSection":["AI","Azure","ChatGPT\uff06AI","d-higuchi","LLM","Python"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/75904","url":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/75904","name":"Slack\u3067\u30b9\u30ec\u30c3\u30c9\u306b\u8fd4\u4fe1\u3059\u308b\u30dc\u30c3\u30c8\u3092\u30ed\u30fc\u30ab\u30ebPC\u3067\u52d5\u304b\u305d\u3046 #slack #ai #langgraph #azure #openai #llm #python - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","isPartOf":{"@id":"https:\/\/www.creationline.com\/tech-blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/75904#primaryimage"},"image":{"@id":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/75904#primaryimage"},"thumbnailUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/slack-local-bot_2024-11-22_11-54-41.png","datePublished":"2024-11-27T02:50:00+00:00","author":{"@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/16f1373831fb6fd17387f16ae1195206"},"description":"AI, Azure, ChatGPT\uff06AI, d-higuchi, LLM, Python |\u306f\u3058\u3081\u306b \u5f0a\u793e\u3067\u306f\u3055\u307e\u3056\u307e\u306a\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u30c4\u30fc\u30eb\u3092\u5229\u7528\u3057\u3066\u304a\u308a\u3001\u4e2d\u3067\u3082Slack\u306e\u5229\u7528\u7387\u304c\u9ad8\u3044\u3067\u3059\u3002Slack\u306b\u306f\u65e2\u306bSlack","breadcrumb":{"@id":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/75904#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/75904"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/75904#primaryimage","url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/slack-local-bot_2024-11-22_11-54-41.png","contentUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/slack-local-bot_2024-11-22_11-54-41.png","width":1401,"height":441},{"@type":"BreadcrumbList","@id":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/75904#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"HOME","item":"https:\/\/www.creationline.com\/tech-blog"},{"@type":"ListItem","position":2,"name":"ChatGPT\uff06AI","item":"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai"},{"@type":"ListItem","position":3,"name":"AI","item":"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/ai"},{"@type":"ListItem","position":4,"name":"Slack\u3067\u30b9\u30ec\u30c3\u30c9\u306b\u8fd4\u4fe1\u3059\u308b\u30dc\u30c3\u30c8\u3092\u30ed\u30fc\u30ab\u30ebPC\u3067\u52d5\u304b\u305d\u3046 #slack #ai #langgraph #azure #openai #llm #python"}]},{"@type":"WebSite","@id":"https:\/\/www.creationline.com\/tech-blog\/#website","url":"https:\/\/www.creationline.com\/tech-blog\/","name":"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","description":"\u30a2\u30b8\u30e3\u30a4\u30eb\uff06DevOps\u3001\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\u3001AI\uff06LLM\u306e\u5148\u7aef\u6280\u8853","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.creationline.com\/tech-blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/16f1373831fb6fd17387f16ae1195206","name":"Daisuke Higuchi","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2023\/08\/d-higuchi-wp-icon-230x230.png","url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2023\/08\/d-higuchi-wp-icon-230x230.png","contentUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2023\/08\/d-higuchi-wp-icon-230x230.png","caption":"Daisuke Higuchi"},"description":"Chef\u30fbDocker\u30fbMirantis\u88fd\u54c1\u306a\u3069\u306e\u6280\u8853\u8981\u7d20\u306b\u52a0\u3048\u3066\u3001\u4f1a\u8b70\u306e\u9032\u3081\u65b9\u30fb\u6587\u7ae0\u306e\u66f8\u304d\u65b9\u306a\u3069\u306e\u696d\u52d9\u6539\u5584\u306b\u3082\u53d6\u308a\u7d44\u3093\u3067\u3044\u307e\u3059\u3002\u300cChef\u6d3b\u7528\u30ac\u30a4\u30c9\u300d\u5171\u8457\u306e\u307b\u304b\u3001Debian Official Developer\u3082\u3084\u3063\u3066\u3044\u307e\u3059\u3002","url":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi"}]}},"_links":{"self":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/75904","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/comments?post=75904"}],"version-history":[{"count":1,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/75904\/revisions"}],"predecessor-version":[{"id":75914,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/75904\/revisions\/75914"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/media\/75913"}],"wp:attachment":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/media?parent=75904"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/categories?post=75904"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/tags?post=75904"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}