{"id":75952,"date":"2024-12-03T14:00:00","date_gmt":"2024-12-03T05:00:00","guid":{"rendered":"https:\/\/www.creationline.com\/tech-blog\/?p=75952"},"modified":"2024-12-06T10:48:03","modified_gmt":"2024-12-06T01:48:03","slug":"slack%e3%83%9c%e3%83%83%e3%83%88%e3%82%92azure-app-service%e3%81%a7%e5%8b%95%e3%81%8b%e3%81%9d%e3%81%86-slack-ai-langgraph-azure-openai-llm-python","status":"publish","type":"post","link":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/75952","title":{"rendered":"Slack\u30dc\u30c3\u30c8\u3092Azure App Service\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>\u524d\u56de\u306e\u300c<a href=\"\/tech-blog\/75904\" target=\"_blank\" rel=\"noreferrer noopener\">Slack\u3067\u30b9\u30ec\u30c3\u30c9\u306b\u8fd4\u4fe1\u3059\u308b\u30dc\u30c3\u30c8\u3092\u30ed\u30fc\u30ab\u30ebPC\u3067\u52d5\u304b\u305d\u3046<\/a>\u300d\u306b\u304a\u3044\u3066\u3001<a href=\"https:\/\/slack.com\/intl\/ja-jp\/\" target=\"_blank\" rel=\"noreferrer noopener\">Slack<\/a>\u306e\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u3092\u30ed\u30fc\u30ab\u30ebPC\u4e0a\u3067\u52d5\u304b\u3057\u3001<a href=\"https:\/\/azure.microsoft.com\/ja-jp\/products\/ai-services\/openai-service\" target=\"_blank\" rel=\"noreferrer noopener\">Azure OpenAI<\/a>\u3068\u4f1a\u8a71\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002\u3057\u304b\u3057\u30ed\u30fc\u30ab\u30ebPC\u4e0a\u306e\u52d5\u4f5c\u306a\u306e\u3067\u3001\u5f53\u7136\u306a\u304c\u3089\u30ed\u30fc\u30ab\u30ebPC\u304c\u8d77\u52d5\u3057\u3066\u3044\u308b\u3068\u304d\u3057\u304b\u30dc\u30c3\u30c8\u304c\u52d5\u4f5c\u3057\u306a\u3044\u3068\u3044\u3046\u5927\u304d\u306a\u6b20\u70b9\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u3053\u3067\u672c\u7a3f\u3067\u306f\u3001\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u3092\u5b89\u5b9a\u904b\u7528\u3059\u308b\u305f\u3081\u306b\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u74b0\u5883\u3067\u3042\u308b <a href=\"https:\/\/learn.microsoft.com\/ja-jp\/azure\/app-service\/overview\" target=\"_blank\" rel=\"noreferrer noopener\">Azure App Service<\/a> \u3067\u52d5\u304b\u3057\u3066\u307f\u307e\u3059\u3002\u52a0\u3048\u3066\u3001\u4f1a\u8a71\u5c65\u6b74\u306f<a href=\"https:\/\/learn.microsoft.com\/ja-jp\/azure\/cosmos-db\/postgresql\/\" target=\"_blank\" rel=\"noreferrer noopener\">Azure Cosmos DB for PostgreSQL<\/a> \u306b\u8a18\u9332\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u304a\u3055\u3089\u3044\uff1a\u30ed\u30fc\u30ab\u30ebPC\u3067\u52d5\u304b\u3057\u305fSlack\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8<\/h2>\n\n\n\n<p>\u5b9f\u969b\u306e\u30b3\u30fc\u30c9\u306b\u3064\u3044\u3066\u306f\u524d\u56de\u306e\u300c<a href=\"\/tech-blog\/75904\" target=\"_blank\" rel=\"noreferrer noopener\">Slack\u3067\u30b9\u30ec\u30c3\u30c9\u306b\u8fd4\u4fe1\u3059\u308b\u30dc\u30c3\u30c8\u3092\u30ed\u30fc\u30ab\u30ebPC\u3067\u52d5\u304b\u305d\u3046<\/a>\u300d\u3092\u53c2\u7167\u3057\u3066\u307b\u3057\u3044\u306e\u3067\u3059\u304c\u3001\u6b21\u306e\u7279\u5fb4\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/api.slack.com\/quickstart\" target=\"_blank\" rel=\"noreferrer noopener\">Slack\u30a2\u30d7\u30ea<\/a>\u3068\u3057\u3066\u4f5c\u6210\u3002<\/li>\n\n\n\n<li><a href=\"https:\/\/api.slack.com\/apis\/socket-mode\" target=\"_blank\" rel=\"noreferrer noopener\">\u30bd\u30b1\u30c3\u30c8\u30e2\u30fc\u30c9<\/a>\u3067\u5e38\u6642\u8d77\u52d5\u3057\u3001\u30a2\u30d7\u30ea\u304b\u3089Slack\u3078\u901a\u4fe1\u3002<\/li>\n\n\n\n<li><a href=\"https:\/\/tools.slack.dev\/bolt-python\/ja-jp\/getting-started\/\" target=\"_blank\" rel=\"noreferrer noopener\">Bolt for Python<\/a>\u3092\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3068\u3057\u3066\u4f7f\u7528\u3002<\/li>\n\n\n\n<li><a href=\"https:\/\/langchain-ai.github.io\/langgraph\/\" target=\"_blank\" rel=\"noreferrer noopener\">LangGraph<\/a>\u3092\u4f7f\u7528\u3057\u3066Azure OpenAI\u3068\u63a5\u7d9a\u3002<\/li>\n\n\n\n<li><a href=\"https:\/\/www.sqlite.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">SQLite<\/a>\u306b\u4f1a\u8a71\u5c65\u6b74\u3092\u4fdd\u5b58\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u3053\u308c\u3089\u306e\u7279\u5fb4\u306e\u3044\u304f\u3064\u304b\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u52d5\u304b\u3059\u969b\u306e\u969c\u5bb3\u3068\u306a\u308b\u305f\u3081\u3001\u4f5c\u308a\u5909\u3048\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">HTTP Request URLs<\/h2>\n\n\n\n<p>\u30ed\u30fc\u30ab\u30ebPC\u3067\u52d5\u4f5c\u3055\u305b\u3066\u3044\u305f\u969b\u306b\u63a1\u7528\u3057\u3066\u3044\u305f<a href=\"https:\/\/api.slack.com\/apis\/socket-mode\" target=\"_blank\" rel=\"noreferrer noopener\">\u30bd\u30b1\u30c3\u30c8\u30e2\u30fc\u30c9<\/a>\u306f\u30b9\u30c6\u30fc\u30c8\u30d5\u30eb\u3067\u52d5\u4f5c\u3059\u308b\u305f\u3081\u3001\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u3057\u3066\u52d5\u304b\u3059\u306b\u306f\u4e0d\u9069\u3067\u3059\u3002\u305d\u3053\u3067\u30b9\u30c6\u30fc\u30c8\u30ec\u30b9\u3067\u3042\u308b<a href=\"https:\/\/api.slack.com\/apis\/http\" target=\"_blank\" rel=\"noreferrer noopener\">HTTP Request URLs<\/a>\u3092\u4f7f\u7528\u3059\u308b\u30e2\u30fc\u30c9\u306b\u4f5c\u308a\u5909\u3048\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u30bd\u30b1\u30c3\u30c8\u30e2\u30fc\u30c9\u3068HTTP\u30e2\u30fc\u30c9\u306e\u8a73\u3057\u3044\u6bd4\u8f03\u306b\u3064\u3044\u3066\u306f\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u300c<a href=\"https:\/\/api.slack.com\/apis\/event-delivery\" target=\"_blank\" rel=\"noreferrer noopener\">Exploring HTTP vs Socket Mode<\/a>\u300d\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>HTTP\u30e2\u30fc\u30c9\u3067\u52d5\u4f5c\u3055\u305b\u308b\u306b\u306f\u3001Slack\u304b\u3089\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u53d7\u3051\u4ed8\u3051\u308bHTTP\u30b5\u30fc\u30d0\u30fc\u3092\u8d77\u52d5\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3068\u306f\u3044\u3048\u3001HTTP\u30b5\u30fc\u30d0\u30fc\u3068\u8a00\u3063\u3066\u3082\u305f\u304f\u3055\u3093\u306e\u7a2e\u985e\u304c\u3042\u308b\u305f\u3081\u3001\u3069\u308c\u3092\u9078\u3079\u3070\u3088\u3044\u306e\u3067\u3057\u3087\u3046\u304b\uff1f <a href=\"https:\/\/tools.slack.dev\/bolt-python\/ja-jp\/getting-started\/\" target=\"_blank\" rel=\"noreferrer noopener\">Bolt for Python<\/a>\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u898b\u308b\u3068\u3001<a href=\"https:\/\/tools.slack.dev\/bolt-python\/concepts\/adapters\/\" target=\"_blank\" rel=\"noreferrer noopener\">Adapters<\/a>\u3067<a href=\"https:\/\/palletsprojects.com\/projects\/flask\/\" target=\"_blank\" rel=\"noreferrer noopener\">Flask<\/a>\u3068\u3044\u3046\u8efd\u91cf\u306a\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u304c\u7d39\u4ecb\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u3053\u308c\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u3087\u3046\u3002<a href=\"https:\/\/github.com\/slackapi\/bolt-python\/tree\/main\/examples\/flask\" target=\"_blank\" rel=\"noreferrer noopener\">examples<\/a>\u306b\u3082\u7c21\u5358\u306a\u30b3\u30fc\u30c9\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">HTTP\u30e2\u30fc\u30c9\u306b\u5909\u66f4\u3057\u305f\u3001\u30b9\u30ec\u30c3\u30c9\u3067\u8fd4\u4fe1\u3059\u308b\u30dc\u30c3\u30c8<\/h2>\n\n\n\n<p>\u30bd\u30b1\u30c3\u30c8\u30e2\u30fc\u30c9\u304b\u3089\u3001Flask\u3092\u4f7f\u7528\u3057\u305fHTTP\u30e2\u30fc\u30c9\u306b\u5909\u66f4\u3057\u305f\u30b3\u30fc\u30c9\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3055\u3089\u306b\u3001\u4f1a\u8a71\u5c65\u6b74\u3092 <a href=\"https:\/\/learn.microsoft.com\/ja-jp\/azure\/cosmos-db\/postgresql\/\" target=\"_blank\" rel=\"noreferrer noopener\">Azure Cosmos DB for PostgreSQL<\/a> \u306b\u8a18\u9332\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u3053\u3067\u306f Azure Cosmos DB for PostgreSQL \u306f\u6700\u5b89\u306e\u958b\u767a\u7528\u30d7\u30e9\u30f3\u3067\u4f5c\u6210\u3057\u3066\u3044\u307e\u3059\u3002\u306a\u304a\u3001Azure Cosmos DB for PostgreSQL \u306e\u4f5c\u6210\u624b\u9806\u306a\u3069\u306e\u8a73\u7d30\u306f\u7701\u7565\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\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.flask import SlackRequestHandler\nfrom flask import Flask, request\n\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\nfrom psycopg import Connection\nfrom langgraph.checkpoint.postgres import PostgresSaver\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\napp = App(\n  signing_secret=os.environ.get(\"SLACK_SIGNING_SECRET\"),\n  token=os.getenv(\"SLACK_BOT_TOKEN\")\n)\nslack_bot_id = os.getenv(\"SLACK_BOT_ID\")\n\n@app.event(\"app_mention\")\ndef mention_reply(event, say):\n    with PostgresSaver.from_conn_string( os.getenv(\"DB_URI\") ) as checkpointer:\n        checkpointer.setup()\n        graph = graph_builder.compile(checkpointer=checkpointer)\n\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\nflask_app = Flask(__name__)\nhandler = SlackRequestHandler(app)\n\n@flask_app.route(\"\/slack\/events\", methods=[\"POST\"])\ndef slack_events():\n    return handler.handle(request)<\/pre>\n\n\n\n<p>\u6ce8\u76ee\u70b9\u306f\u6b21\u306e\u901a\u308a\u3067\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=\"\">app = App(\n  signing_secret=os.environ.get(\"SLACK_SIGNING_SECRET\"),\n  token=os.getenv(\"SLACK_BOT_TOKEN\")\n)<\/pre>\n\n\n\n<p><code>SLACK_APP_TOKEN<\/code> \u3092\u4f7f\u308f\u305a\u3001\u4ee3\u308f\u308a\u306b <code>SLACK_SIGNING_SECRET<\/code> \u3092\u4f7f\u3046\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<a href=\"https:\/\/api.slack.com\/apps\/\" target=\"_blank\" rel=\"noreferrer noopener\">Slack API: Applications<\/a>\u304b\u3089\u3001\u4f5c\u6210\u3057\u305f <code>chatbot-test<\/code> \u3092\u958b\u304d\u307e\u3059\u3002\u3053\u3061\u3089\u306e\u300cBasic Information\u300d\u304b\u3089\u3001\u300cApp Credentials\u300d\u306e\u300cSigning Secret\u300d\u3092\u53d6\u5f97\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u308c\u3092\u4ee5\u964d\u306e <code>SLACK_SIGNING_SECRET<\/code> \u3068\u3057\u3066\u4f7f\u7528\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=\"\">    with PostgresSaver.from_conn_string( os.getenv(\"DB_URI\") ) as checkpointer:\n        checkpointer.setup()\n        graph = graph_builder.compile(checkpointer=checkpointer)<\/pre>\n\n\n\n<p><a href=\"https:\/\/api.python.langchain.com\/en\/latest\/checkpoint\/langchain_postgres.checkpoint.PostgresSaver.html\" target=\"_blank\" rel=\"noreferrer noopener\">PostgresSaver<\/a>\u3092\u4f7f\u3063\u3066PostgreSQL\u306b\u63a5\u7d9a\u3057\u3066\u3044\u307e\u3059\u3002\u8a73\u7d30\u306f <a href=\"https:\/\/langchain-ai.github.io\/langgraph\/how-tos\/persistence_postgres\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to use Postgres checkpointer for persistence<\/a> \u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002\u307e\u305f <code>DB_URI<\/code> \u306b\u306fPostgreSQL\u306b\u63a5\u7d9a\u3059\u308b\u305f\u3081\u306e\u60c5\u5831\u3092\u5165\u308c\u307e\u3059\u3002\u3053\u3053\u3067\u306f Azure Cosmos DB for PostgreSQL \u306e\u63a5\u7d9a\u6587\u5b57\u5217\u300cPostgreSQL connection URL\u300d\u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30ed\u30fc\u30ab\u30ebPC\u3067\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u3092\u8d77\u52d5<\/h2>\n\n\n\n<p>\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u3057\u3066\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u524d\u306b\u3001\u30ed\u30fc\u30ab\u30ebPC\u3067\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u3057\u304b\u3057\u3001LAN\u5185\u306b\u3044\u308b\u30ed\u30fc\u30ab\u30ebPC\u3067HTTP\u30e2\u30fc\u30c9\u306e\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u3092\u8d77\u52d5\u3057\u3066\u3082\u3001\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u4e0a\u306eSlack\u304b\u3089\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u53d7\u3051\u53d6\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002\u305d\u3053\u3067 <a href=\"https:\/\/ngrok.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">ngrok<\/a> \u3092\u4f7f\u3063\u3066\u3001\u7c21\u5358\u306b\u30c8\u30f3\u30cd\u30ea\u30f3\u30b0\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/ngrok.com\/docs\/getting-started\/\" target=\"_blank\" rel=\"noreferrer noopener\">Quickstart | ngrok<\/a> \u306e\u624b\u9806\u306b\u5f93\u3044\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30d0\u30a4\u30ca\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001\u30b5\u30a4\u30f3\u30a2\u30c3\u30d7\u3057\u307e\u3059\u3002\u8a8d\u8a3c\u30c8\u30fc\u30af\u30f3\u3092\u53d6\u5f97\u30fb\u8a2d\u5b9a\u3057\u305f\u3089\u3001\u6b21\u306e\u3088\u3046\u306bHTTP\u30678000\u30dd\u30fc\u30c8\u3092\u516c\u958b\u3059\u308b\u3088\u3046\u306b\u8d77\u52d5\u3057\u307e\u3059\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=\"\">% ngrok http 8000<\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"646\" src=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/2024-11-25_18-05-12-1024x646.png\" alt=\"\" class=\"wp-image-75953\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/2024-11-25_18-05-12-1024x646.png 1024w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/2024-11-25_18-05-12-360x227.png 360w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/2024-11-25_18-05-12-768x484.png 768w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/2024-11-25_18-05-12.png 1297w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u300cForwarding\u300d\u3067\u793a\u3055\u308c\u305fURL\u304c\u5916\u90e8\u304b\u3089\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u53d7\u3051\u4ed8\u3051\u308bURL\u3068\u306a\u308a\u307e\u3059\u3002\u3053\u308c\u3092\u30e1\u30e2\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p>\u305d\u3057\u3066\u30dc\u30c3\u30c8\u30a2\u30d7\u30ea\u3092\u8d77\u52d5\u3057\u307e\u3059\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=\"\">% FLASK_APP=app.py flask run -p 8000<\/pre>\n\n\n\n<p><code>FLASK_APP<\/code> \u3067\u6307\u5b9a\u3059\u308b\u306e\u306f\u30dc\u30c3\u30c8\u30a2\u30d7\u30ea\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u3068\u3057\u307e\u3059\u3002 <code>-p 8000<\/code> \u306f8000\u756a\u30dd\u30fc\u30c8\u3067\u5f85\u3061\u53d7\u3051\u3059\u308b\u3068\u3044\u3046\u610f\u5473\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u8a66\u3057\u306b <a href=\"https:\/\/curl.se\/\" target=\"_blank\" rel=\"noreferrer noopener\">curl<\/a> \u30b3\u30de\u30f3\u30c9\u3067\u30a2\u30af\u30bb\u30b9\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002URL\u306f\u5148\u7a0b\u30e1\u30e2\u3057\u305f\u3082\u306e\u3067\u3001\u30d1\u30b9\u3092 <code>\/slack\/events<\/code> \u3068\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\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=\"\">% curl -X POST https:\/\/\u2605-\u2605-\u2605-\u2605-\u2605.ngrok-free.app\/slack\/events\n{\"error\": \"invalid request\"}<\/pre>\n\n\n\n<p>\u30a8\u30e9\u30fc\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u30a2\u30d7\u30ea\u3092\u8d77\u52d5\u3057\u305f\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u3082\u30a2\u30af\u30bb\u30b9\u3092\u53d7\u3051\u4ed8\u3051\u305f\u30ed\u30b0\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u306f\u305a\u3067\u3059\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=\"\">127.0.0.1 - - [25\/Nov\/2024 18:17:43] \"POST \/slack\/events HTTP\/1.1\" 401 -<\/pre>\n\n\n\n<p>\u3053\u308c\u3067\u30dc\u30c3\u30c8\u30a2\u30d7\u30ea\u3092\u30ed\u30fc\u30ab\u30ebPC\u3067\u8d77\u52d5\u3057\u3001\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u5074\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3059\u308b\u6e96\u5099\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Slack\u5074\u3067\u30a2\u30d7\u30ea\u3092\u30bd\u30b1\u30c3\u30c8\u30e2\u30fc\u30c9\u304b\u3089HTTP\u30e2\u30fc\u30c9\u306b\u5207\u308a\u66ff\u3048<\/h2>\n\n\n\n<p>Slack\u5074\u306e\u30a2\u30d7\u30ea\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3057\u3087\u3046\u3002\u300c<a href=\"\/tech-blog\/75904\" target=\"_blank\" rel=\"noreferrer noopener\">Slack\u3067\u30b9\u30ec\u30c3\u30c9\u306b\u8fd4\u4fe1\u3059\u308b\u30dc\u30c3\u30c8\u3092\u30ed\u30fc\u30ab\u30ebPC\u3067\u52d5\u304b\u305d\u3046<\/a>\u300d\u3067\u6709\u52b9\u5316\u3057\u305f\u30bd\u30b1\u30c3\u30c8\u30e2\u30fc\u30c9\u3092\u7121\u52b9\u5316\u3059\u308b\u3053\u3068\u3067\u3001HTTP\u30e2\u30fc\u30c9\u3092\u6709\u52b9\u5316\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/api.slack.com\/apps\/\" target=\"_blank\" rel=\"noreferrer noopener\">Slack API: Applications<\/a>\u304b\u3089\u3001\u4f5c\u6210\u3057\u305f <code>chatbot-test<\/code> \u3092\u958b\u304d\u307e\u3059\u3002\u6b21\u306b\u5de6\u306e\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u30a8\u30ea\u30a2\u306b\u3042\u308b\u300cSocket Mode\u300d\u3092\u300cEnable Socket Mode\u300d\u30c8\u30b0\u30eb\u30b9\u30a4\u30c3\u30c1\u3092\u30aa\u30d5\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Slack\u5074\u3067\u30a2\u30d7\u30ea\u306e\u30ea\u30af\u30a8\u30b9\u30c8URL\u3092\u8a2d\u5b9a<\/h2>\n\n\n\n<p>Slack\u304b\u3089\u30dc\u30c3\u30c8\u30a2\u30d7\u30ea\u306eHTTP\u30b5\u30fc\u30d0\u30fc\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308bURL\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/api.slack.com\/apps\/\" target=\"_blank\" rel=\"noreferrer noopener\">Slack API: Applications<\/a>\u304b\u3089\u3001\u4f5c\u6210\u3057\u305f <code>chatbot-test<\/code> \u3092\u958b\u304d\u307e\u3059\u3002\u6b21\u306b\u5de6\u306e\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u30a8\u30ea\u30a2\u306b\u3042\u308b\u300cEvent Subscriptions\u300d\u3092\u958b\u304d\u3001\u300cRequest URL\u300d\u306b\u524d\u9805\u3067curl\u3067\u30a2\u30af\u30bb\u30b9\u3057\u3066\u307f\u305f\u300c <code>https:\/\/\u2605-\u2605-\u2605-\u2605-\u2605.ngrok-free.app\/slack\/events<\/code> \u300d\u3092\u5165\u529b\u3057\u3066\u30a8\u30f3\u30bf\u30fc\u3092\u62bc\u3057\u307e\u3059\u3002\u3057\u3070\u3089\u304f\u5f85\u3064\u3068 <strong>Verified<\/strong> &#x2714; \u3068\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001\u53f3\u4e0b\u306e\u300cSave Changes\u300d\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3082\u3057 <strong>Verified<\/strong> &#x2714; \u304c\u8868\u793a\u3055\u308c\u305a\u306b\u300c <code>Your URL didn't respond with the value of the challenge parameter<\/code> \u300d\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u5834\u5408\u306f\u5165\u529b\u3057\u305fURL\u304c\u9593\u9055\u3063\u3066\u3044\u306a\u3044\u304b\u3001\u30a2\u30d7\u30ea\u304c\u8d77\u52d5\u3057\u3066\u3044\u308b\u304b\u3001ngrok\u304c\u8d77\u52d5\u3057\u3066\u3044\u308b\u304b\u3001\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Slack\u3067\u78ba\u8a8d<\/h2>\n\n\n\n<p>\u3067\u306fSlack\u3067\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u306b\u8a71\u3057\u304b\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=\"255\" src=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/2024-11-27_18-36-33-1-1024x255.png\" alt=\"\" class=\"wp-image-75955\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/2024-11-27_18-36-33-1-1024x255.png 1024w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/2024-11-27_18-36-33-1-360x89.png 360w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/2024-11-27_18-36-33-1-768x191.png 768w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/2024-11-27_18-36-33-1.png 1420w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u30b9\u30ec\u30c3\u30c9\u5185\u3067\u8fd4\u4fe1\u304c\u3042\u308a\u307e\u3057\u305f\uff01 HTTP\u30e2\u30fc\u30c9\u3067\u30dc\u30c3\u30c8\u304c\u52d5\u3044\u3066\u3044\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Azure App Service \u306e\u6e96\u5099<\/h2>\n\n\n\n<p>\u30dc\u30c3\u30c8\u30a2\u30d7\u30ea\u3092\u30ed\u30fc\u30ab\u30ebPC\u3067\u52d5\u304b\u3059\u3053\u3068\u3068\u540c\u3058\u3088\u3046\u306b\u3001<a href=\"https:\/\/learn.microsoft.com\/ja-jp\/azure\/virtual-machines\/\" target=\"_blank\" rel=\"noreferrer noopener\">Azure Virtual Machines<\/a>\u4e0a\u3067\u52d5\u304b\u3059\u3068\u3044\u3046\u624b\u3082\u3042\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u4e00\u7dd2\u306bPostgreSQL\u3082\u4eee\u60f3\u30de\u30b7\u30f3\u5185\u306b\u307e\u3068\u3081\u3066\u3057\u307e\u3048\u3070\u3001\u3082\u3063\u3068\u5b89\u4e0a\u304c\u308b\u3067\u3057\u3087\u3046\u3002\u53cd\u9762\u3001\u4eee\u60f3\u30de\u30b7\u30f3\u306e\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u306f\u3084\u3063\u3071\u308a\u5927\u5909\u3067\u3059\u3002\u305d\u3053\u3067\u3001\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u74b0\u5883\u3067\u3042\u308b <a href=\"https:\/\/learn.microsoft.com\/ja-jp\/azure\/app-service\/overview\" target=\"_blank\" rel=\"noreferrer noopener\">Azure App Service<\/a> \u3067\u52d5\u304b\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u3053\u3061\u3089\u306a\u3089\u4eee\u60f3\u30de\u30b7\u30f3\u306e\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u306f\u5fc5\u8981\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Azure App Service \u306e\u30c7\u30d7\u30ed\u30a4<\/h3>\n\n\n\n<p>Azure App Service\u306e\u4f5c\u6210\u624b\u9806\u3092\u898b\u3066\u3044\u304d\u307e\u3059\u3002\u7279\u306b\u91cd\u8981\u306a\u70b9\u306e\u307f\u3092\u30d4\u30c3\u30af\u30a2\u30c3\u30d7\u3057\u3066\u3044\u304d\u307e\u3059\u3002\u8a73\u7d30\u306f <a href=\"https:\/\/learn.microsoft.com\/ja-jp\/azure\/app-service\" target=\"_blank\" rel=\"noreferrer noopener\">Azure App Service<\/a>\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>Azure \u30de\u30fc\u30b1\u30c3\u30c8\u30d7\u30ec\u30a4\u30b9\u304b\u3089\u300cWeb\u30a2\u30d7\u30ea\u300d\u3092\u9078\u629e\u3057\u307e\u3059\u3002\u307e\u304e\u3089\u308f\u3057\u3044\u3067\u3059\u304cAzure App Service\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u6b21\u306e\u8a2d\u5b9a\u3067\u4f5c\u6210\u3057\u307e\u3059\u3002\u306a\u304a\u3001\u8981\u70b9\u306e\u307f\u8a18\u8f09\u3057\u3066\u304a\u308a\u3001\u958b\u767a\u7528\u306e\u6700\u4f4e\u9650\u306e\u8a2d\u5b9a\u3067\u3042\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u57fa\u672c\n<ul class=\"wp-block-list\">\n<li>\u516c\u958b: \u30b3\u30fc\u30c9<\/li>\n\n\n\n<li>\u30e9\u30f3\u30bf\u30a4\u30e0\u30b9\u30bf\u30c3\u30af: Python 3.12<\/li>\n\n\n\n<li>\u30aa\u30da\u30ec\u30fc\u30c6\u30a3\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0: Linux<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\n<ul class=\"wp-block-list\">\n<li>\u306a\u3057<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u30c7\u30d7\u30ed\u30a4\n<ul class=\"wp-block-list\">\n<li>\u306a\u3057<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\n<ul class=\"wp-block-list\">\n<li>\u30d1\u30d6\u30ea\u30c3\u30af\u30a2\u30af\u30bb\u30b9\u3092\u6709\u52b9\u306b\u3059\u308b: \u30aa\u30f3<\/li>\n\n\n\n<li>\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u3092\u6709\u52b9\u306b\u3059\u308b: \u30aa\u30d5<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u76e3\u8996\u3068\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u4fdd\u8b77\n<ul class=\"wp-block-list\">\n<li>\u306a\u3057<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">\u30a2\u30d7\u30ea\u306e\u8a2d\u5b9a<\/h3>\n\n\n\n<p>\u4f5c\u6210\u3057\u305fWeb\u30a2\u30d7\u30ea\u306e\u300c\u8a2d\u5b9a\u300d\u2192\u300c\u74b0\u5883\u5909\u6570\u300d\u3067\u3001\u30ed\u30fc\u30ab\u30ebPC\u3067\u306f<a href=\"https:\/\/pypi.org\/project\/python-dotenv\/\" target=\"_blank\" rel=\"noreferrer noopener\">python-dotenv<\/a>\u3067\u8a2d\u5b9a\u3057\u3066\u3044\u305f\u74b0\u5883\u5909\u6570\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>AZURE_OPENAI_API_KEY<\/code><\/li>\n\n\n\n<li><code>AZURE_OPENAI_API_VERSION<\/code><\/li>\n\n\n\n<li><code>AZURE_OPENAI_ENDPOINT<\/code><\/li>\n\n\n\n<li><code>AZURE_OPENAI_MODEL_NAME<\/code><\/li>\n\n\n\n<li><code>SLACK_BOT_ID<\/code><\/li>\n\n\n\n<li><code>SLACK_BOT_TOKEN<\/code><\/li>\n\n\n\n<li><code>SLACK_SIGNING_SECRET<\/code><\/li>\n\n\n\n<li><code>DB_URI<\/code><\/li>\n<\/ul>\n\n\n\n<p>\u300c\u8a2d\u5b9a\u300d\u2192\u300c\u69cb\u6210\u300d\u306e\u300c\u5168\u822c\u8a2d\u5b9a\u300d\u30bf\u30d6\u3067\u3001\u300c\u30b9\u30bf\u30c3\u30af\u306e\u8a2d\u5b9a\u300d\u306e\u300c\u30b9\u30bf\u30fc\u30c8\u30a2\u30c3\u30d7\u30b3\u30de\u30f3\u30c9\u300d\u306b\u6b21\u3092\u6307\u5b9a\u3057\u3001\u300c\u4fdd\u5b58\u300d\u3057\u307e\u3059\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=\"\">FLASK_APP=app.py flask run -p 8000 -h 0.0.0.0<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u30a2\u30d7\u30ea\u306e\u30d7\u30c3\u30b7\u30e5\u8a2d\u5b9a<\/h3>\n\n\n\n<p>\u672c\u7a3f\u3067\u306f\u30ed\u30fc\u30ab\u30ebPC\u4e0a\u306b <a href=\"https:\/\/git-scm.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">Git<\/a> \u30ec\u30dd\u30b8\u30c8\u30ea\u3092\u4f5c\u308a\u3001\u305d\u308c\u3092 Azure \u306b\u30d7\u30c3\u30b7\u30e5\u3059\u308b\u3068\u3044\u3046\u5f62\u3092\u53d6\u308a\u307e\u3059\u3002<a href=\"https:\/\/learn.microsoft.com\/ja-jp\/azure\/app-service\/deploy-local-git\" target=\"_blank\" rel=\"noreferrer noopener\">Azure App Service \u3078\u306e\u30ed\u30fc\u30ab\u30eb Git \u30c7\u30d7\u30ed\u30a4<\/a> \u3082\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u306a\u304a\u3001<a href=\"https:\/\/learn.microsoft.com\/ja-jp\/azure\/app-service\/configure-basic-auth-disable\" target=\"_blank\" rel=\"noreferrer noopener\">App Service \u30c7\u30d7\u30ed\u30a4\u3067\u57fa\u672c\u8a8d\u8a3c\u3092\u7121\u52b9\u306b\u3059\u308b<\/a> \u306b\u3088\u308c\u3070\u3001\u57fa\u672c\u8a8d\u8a3c\u306e\u5229\u7528\u306f\u63a8\u5968\u3055\u308c\u3066\u3044\u306a\u3044\u3088\u3046\u3067\u3059\u3002\u3057\u304b\u3057\u30ed\u30fc\u30ab\u30eb Git \u306f\u57fa\u672c\u8a8d\u8a3c\u304c\u7121\u52b9\u3067\u306f\u5229\u7528\u3067\u304d\u307e\u305b\u3093\u3002\u57fa\u672c\u8a8d\u8a3c\u3092\u5229\u7528\u3057\u306a\u3044\u30c7\u30d7\u30ed\u30a4\u65b9\u6cd5\u306f\u4eca\u5f8c\u306e\u691c\u8a0e\u8ab2\u984c\u3068\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u300c\u8a2d\u5b9a\u300d\u2192\u300c\u69cb\u6210\u300d\u306e\u300c\u5168\u822c\u8a2d\u5b9a\u300d\u30bf\u30d6\u3067\u3001\u300c\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306e\u8a2d\u5b9a\u300d\u3067\u300cSCM\u57fa\u672c\u8a8d\u8a3c\u306e\u767a\u884c\u8cc7\u683c\u60c5\u5831\u300d\u3068\u300cFTP\u57fa\u672c\u8a8d\u8a3c\u306e\u767a\u884c\u8cc7\u683c\u60c5\u5831\u300d\u3092\u4e21\u65b9\u30aa\u30f3\u306b\u3057\u3001\u300c\u4fdd\u5b58\u300d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u300c\u30c7\u30d7\u30ed\u30a4\u300d\u2192\u300c\u30c7\u30d7\u30ed\u30a4\u30bb\u30f3\u30bf\u30fc\u300d\u3067\u300c\u8a2d\u5b9a\u300d\u30bf\u30d6\u3092\u958b\u304d\u307e\u3059\u3002\u300c\u30bd\u30fc\u30b9\u300d\u306e\u30d7\u30eb\u30c0\u30a6\u30f3\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u300c <strong>\u30ed\u30fc\u30ab\u30eb Git<\/strong> \u300d\u3092\u9078\u629e\u3057\u3001\u4e00\u65e6\u300c\u4fdd\u5b58\u300d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>Git \u30d7\u30c3\u30b7\u30e5\u5148\u306e\u300cGit Clone URI\u300d\u304c\u51fa\u3066\u304f\u308b\u306e\u3067\u3001\u3053\u308c\u3092\u30e1\u30e2\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u300c\u30ed\u30fc\u30ab\u30ebGit\u307e\u305f\u306fFTPS\u306e\u8cc7\u683c\u60c5\u5831\u300d\u30bf\u30d6\u3092\u958b\u304d\u307e\u3059\u3002\u300c\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30b9\u30b3\u30fc\u30d7\u300d\u306e\u300c\u30ed\u30fc\u30ab\u30ebGit\u30e6\u30fc\u30b6\u30fc\u540d\u300d\u3068\u300c\u30d1\u30b9\u30ef\u30fc\u30c9\u300d\u3092\u7528\u3044\u3066\u3001\u5148\u306e\u300cGit Clone URI\u300d\u306b\u5bfe\u3057\u3066\u30ec\u30dd\u30b8\u30c8\u30ea\u304c\u30d7\u30c3\u30b7\u30e5\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30a2\u30d7\u30ea\u306e\u30d7\u30c3\u30b7\u30e5<\/h3>\n\n\n\n<p>\u672c\u7a3f\u306e\u6700\u521d\u3067\u4f5c\u6210\u3057\u305fPython\u30b9\u30af\u30ea\u30d7\u30c8\u3092 <code>app.py<\/code> \u3068\u3044\u3046\u540d\u524d\u3067\u30ed\u30fc\u30ab\u30eb\u306eGit\u30ec\u30dd\u30b8\u30c8\u30ea\u306b\u683c\u7d0d\u3057\u307e\u3057\u3087\u3046\u3002\u3053\u3053\u3067\u306f <code>webapp-slackbot<\/code> \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u4e2d\u306b\u5165\u308c\u3066\u3044\u304d\u307e\u3059\u3002\u307e\u305f\u3001\u6b21\u306e <code>requirements.txt<\/code> \u3082\u4e00\u7dd2\u306b\u542b\u3081\u307e\u3059\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\npython-dotenv\nopenai\nlangchain_openai\npsycopg\npsycopg-pool\nlanggraph-checkpoint-postgres\nslack_bolt\nFlask<\/pre>\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=\"\">% mkdir webapp-slackbot\n% cd webapp-slackbot\n% git init\n% git branch -M main master\n% cp ...\/app.py ...\/requirements.txt .\n% git add app.py requirements.txt\n% git commit -m \"initial import.\" .\n% git remote add origin \u3010Git Clone URI\u3011\n% git push origin master<\/pre>\n\n\n\n<p>\u3010Git Clone URI\u3011\u306f\u5148\u306b\u30e1\u30e2\u3057\u305f\u300cGit Clone URI\u300d\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u3053\u3067\u6c42\u3081\u3089\u308c\u308b\u30e6\u30fc\u30b6\u30fc\u540d\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u5148\u306e\u300c\u30ed\u30fc\u30ab\u30ebGit\u30e6\u30fc\u30b6\u30fc\u540d\u300d\u3068\u300c\u30d1\u30b9\u30ef\u30fc\u30c9\u300d\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u6b63\u3057\u304f\u30d7\u30c3\u30b7\u30e5\u3055\u308c\u308c\u3070\u3001\u5f8c\u306f\u81ea\u52d5\u7684\u306b\u30d3\u30eb\u30c9\u30fb\u30c7\u30d7\u30ed\u30a4\u3057\u3066\u304f\u308c\u307e\u3059\u3002\u3053\u308c\u3067Azure App Service\u3067\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u3057\u3066\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u304c\u52d5\u304d\u59cb\u3081\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Slack\u5074\u3067\u30a2\u30d7\u30ea\u306e\u30ea\u30af\u30a8\u30b9\u30c8URL\u3092\u518d\u8a2d\u5b9a<\/h2>\n\n\n\n<p>Slack\u304b\u3089\u30dc\u30c3\u30c8\u30a2\u30d7\u30ea\u306eHTTP\u30b5\u30fc\u30d0\u30fc\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308bURL\u3092\u3001ngrok\u304b\u3089Azure App Service\u306b\u5207\u308a\u66ff\u3048\u307e\u3059\u3002\u4f5c\u6210\u3057\u305fWeb\u30a2\u30d7\u30ea\u306e\u300c\u6982\u8981\u300d\u306e\u300c\u898f\u5b9a\u306e\u30c9\u30e1\u30a4\u30f3\u300d\u3092\u30b3\u30d4\u30fc\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/api.slack.com\/apps\/\" target=\"_blank\" rel=\"noreferrer noopener\">Slack API: Applications<\/a>\u304b\u3089 <code>chatbot-test<\/code> \u3092\u958b\u304d\u307e\u3059\u3002\u6b21\u306b\u5de6\u306e\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u30a8\u30ea\u30a2\u306b\u3042\u308b\u300cEvent Subscriptions\u300d\u3092\u958b\u304d\u3001\u300cRequest URL\u300d\u306b\u5148\u306b\u30b3\u30d4\u30fc\u3057\u305f\u30db\u30b9\u30c8\u540d\u3092\u5165\u529b\u3057\u307e\u3059\u3002\u300c <code>https:\/\/\u2605.\u2605.azurewebsites.net\/slack\/events<\/code> \u300d\u306e\u3088\u3046\u306b\u30d1\u30b9\u306f\u88dc\u3044\u307e\u3059\u3002\u5165\u529b\u3057\u3066\u30a8\u30f3\u30bf\u30fc\u3092\u62bc\u3057\u3001\u3057\u3070\u3089\u304f\u5f85\u3064\u3068 <strong>Verified<\/strong> &#x2714; \u3068\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001\u53f3\u4e0b\u306e\u300cSave Changes\u300d\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Slack\u3067\u78ba\u8a8d<\/h2>\n\n\n\n<p>\u3067\u306f\u3001Slack\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-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"546\" src=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/2024-11-27_14-19-38-1024x546.png\" alt=\"\" class=\"wp-image-75956\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/2024-11-27_14-19-38-1024x546.png 1024w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/2024-11-27_14-19-38-360x192.png 360w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/2024-11-27_14-19-38-768x410.png 768w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/2024-11-27_14-19-38.png 1432w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u30b9\u30ec\u30c3\u30c9\u5185\u3067\u4f1a\u8a71\u304c\u6210\u7acb\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>Azure Cosmos DB for PostgreSQL \u306e\u63a5\u7d9a\u6587\u5b57\u5217\u306b\u306f <a href=\"https:\/\/www.postgresql.org\/docs\/current\/app-psql.html\" target=\"_blank\" rel=\"noreferrer noopener\">psql<\/a> \u30b3\u30de\u30f3\u30c9\u3082\u3042\u308b\u306e\u3067 <code>SELECT thread_id, checkpoints FROM checkpoints;<\/code> \u306a\u3069\u767a\u884c\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002\u4f1a\u8a71\u5c65\u6b74\u304c\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308b\u3068\u601d\u3044\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\u6b21\u306e\u7279\u5fb4\u3092\u6301\u3064Slack\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u30a2\u30d7\u30ea\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/api.slack.com\/quickstart\" target=\"_blank\" rel=\"noreferrer noopener\">Slack\u30a2\u30d7\u30ea<\/a>\u3068\u3057\u3066\u4f5c\u6210\u3002<\/li>\n\n\n\n<li><a href=\"https:\/\/api.slack.com\/apis\/http\" target=\"_blank\" rel=\"noreferrer noopener\">HTTP Request URLs<\/a>\u30e2\u30fc\u30c9\u3067\u8d77\u52d5\u3057\u3001Slack\u304b\u3089\u30a2\u30d7\u30ea\u3078\u901a\u4fe1\u3002<\/li>\n\n\n\n<li><a href=\"https:\/\/tools.slack.dev\/bolt-python\/ja-jp\/getting-started\/\" target=\"_blank\" rel=\"noreferrer noopener\">Bolt for Python<\/a>\u3092\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3068\u3057\u3066\u4f7f\u7528\u3002<\/li>\n\n\n\n<li><a href=\"https:\/\/langchain-ai.github.io\/langgraph\/\" target=\"_blank\" rel=\"noreferrer noopener\">LangGraph<\/a>\u3092\u4f7f\u7528\u3057\u3066Azure OpenAI\u3068\u63a5\u7d9a\u3002<\/li>\n\n\n\n<li><a href=\"https:\/\/learn.microsoft.com\/ja-jp\/azure\/cosmos-db\/postgresql\/\" target=\"_blank\" rel=\"noreferrer noopener\">Azure Cosmos DB for PostgreSQL<\/a>\u306b\u4f1a\u8a71\u5c65\u6b74\u3092\u4fdd\u5b58\u3002<\/li>\n\n\n\n<li><a href=\"https:\/\/learn.microsoft.com\/ja-jp\/azure\/app-service\" target=\"_blank\" rel=\"noreferrer noopener\">Azure App Service<\/a>\u3067\u30dc\u30c3\u30c8\u3092\u8d77\u52d5\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u3053\u308c\u3067\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u306a\u308a\u3001\u30ed\u30fc\u30ab\u30ebPC\u3067\u5b9f\u884c\u3059\u308b\u5fc5\u8981\u304c\u306a\u304f\u306a\u308a\u3001\u5e38\u6642\u5b89\u5b9a\u7a3c\u50cd\u304c\u671f\u5f85\u3067\u304d\u307e\u3059\u3002\u6587\u4e2d\u3067\u3082\u8ff0\u3079\u305f\u901a\u308a\u3001\u8d77\u52d5\u306b\u5fc5\u8981\u306a\u6700\u4f4e\u9650\u306e\u8a2d\u5b9a\u3057\u304b\u884c\u3063\u3066\u3044\u306a\u3044\u305f\u3081\u76e3\u8996\u306a\u3069\u306f\u306a\u304f\u3001\u6599\u91d1\u7bc0\u7d04\u306e\u305f\u3081\u958b\u767a\u7528\u306e\u6700\u4f4e\u30b9\u30da\u30c3\u30af\u306a\u306e\u3067\u3001\u9ad8\u30a2\u30af\u30bb\u30b9\u6642\u306b\u306f\u554f\u984c\u304c\u767a\u751f\u3059\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u3057\u304b\u3057\u306a\u304c\u3089\u9006\u306b\u8a00\u3046\u3068\u3001\u6700\u4f4e\u9650\u306e\u571f\u53f0\u304c\u3067\u304d\u305f\u306e\u3067\u3001\u3053\u3053\u304b\u3089\u672c\u756a\u5411\u3051\u306b\u3055\u307e\u3056\u307e\u306a\u5b9f\u969b\u306e\u8981\u671b\u3092\u7d44\u307f\u8fbc\u3093\u3067\u3044\u304f\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3068\u3082\u8a00\u3048\u308b\u3067\u3057\u3087\u3046\u3002\u3053\u306e\u5148\u3055\u3089\u306b\u6539\u5584\u30fb\u6539\u826f\u3092\u9032\u3081\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b \u524d\u56de\u306e\u300cSlack\u3067\u30b9\u30ec\u30c3\u30c9\u306b\u8fd4\u4fe1\u3059\u308b\u30dc\u30c3\u30c8\u3092\u30ed\u30fc\u30ab\u30ebPC\u3067\u52d5\u304b\u305d\u3046\u300d\u306b\u304a\u3044\u3066\u3001Slack\u306e\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u3092\u30ed\u30fc\u30ab\u30ebPC\u4e0a\u3067\u52d5\u304b\u3057\u3001Azure OpenAI\u3068\u4f1a\u8a71\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002\u3057\u304b\u3057\u30ed\u30fc\u30ab\u30ebPC\u4e0a\u306e\u52d5\u4f5c [&#8230;]<\/p>\n","protected":false},"author":2,"featured_media":75956,"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-75952","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\u30dc\u30c3\u30c8\u3092Azure App Service\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 \u524d\u56de\u306e\u300cSlack\u3067\u30b9\u30ec\u30c3\u30c9\u306b\u8fd4\u4fe1\u3059\u308b\u30dc\u30c3\u30c8\u3092\u30ed\u30fc\u30ab\u30ebPC\u3067\u52d5\u304b\u305d\u3046\u300d\u306b\u304a\u3044\u3066\u3001Slack\u306e\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u3092\u30ed\u30fc\u30ab\u30ebPC\u4e0a\u3067\u52d5\u304b\u3057\u3001Azure\" \/>\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\/75952\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Slack\u30dc\u30c3\u30c8\u3092Azure App Service\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 \u524d\u56de\u306e\u300cSlack\u3067\u30b9\u30ec\u30c3\u30c9\u306b\u8fd4\u4fe1\u3059\u308b\u30dc\u30c3\u30c8\u3092\u30ed\u30fc\u30ab\u30ebPC\u3067\u52d5\u304b\u305d\u3046\u300d\u306b\u304a\u3044\u3066\u3001Slack\u306e\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u3092\u30ed\u30fc\u30ab\u30ebPC\u4e0a\u3067\u52d5\u304b\u3057\u3001Azure\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/75952\" \/>\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-12-03T05:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-12-06T01:48:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/2024-11-27_14-19-38.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1432\" \/>\n\t<meta property=\"og:image:height\" content=\"764\" \/>\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=\"4\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\\\/75952#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/75952\"},\"author\":{\"name\":\"Daisuke Higuchi\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/16f1373831fb6fd17387f16ae1195206\"},\"headline\":\"Slack\u30dc\u30c3\u30c8\u3092Azure App Service\u3067\u52d5\u304b\u305d\u3046 #slack #ai #langgraph #azure #openai #llm #python\",\"datePublished\":\"2024-12-03T05:00:00+00:00\",\"dateModified\":\"2024-12-06T01:48:03+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/75952\"},\"wordCount\":277,\"image\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/75952#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/2024-11-27_14-19-38.png\",\"articleSection\":[\"AI\",\"Azure\",\"ChatGPT\uff06AI\",\"d-higuchi\",\"LLM\",\"Python\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/75952\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/75952\",\"name\":\"Slack\u30dc\u30c3\u30c8\u3092Azure App Service\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\\\/75952#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/75952#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/2024-11-27_14-19-38.png\",\"datePublished\":\"2024-12-03T05:00:00+00:00\",\"dateModified\":\"2024-12-06T01:48:03+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 \u524d\u56de\u306e\u300cSlack\u3067\u30b9\u30ec\u30c3\u30c9\u306b\u8fd4\u4fe1\u3059\u308b\u30dc\u30c3\u30c8\u3092\u30ed\u30fc\u30ab\u30ebPC\u3067\u52d5\u304b\u305d\u3046\u300d\u306b\u304a\u3044\u3066\u3001Slack\u306e\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u3092\u30ed\u30fc\u30ab\u30ebPC\u4e0a\u3067\u52d5\u304b\u3057\u3001Azure\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/75952#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/75952\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/75952#primaryimage\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/2024-11-27_14-19-38.png\",\"contentUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/2024-11-27_14-19-38.png\",\"width\":1432,\"height\":764},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/75952#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"HOME\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u8457\u8005\uff08Author\uff09\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"d-higuchi\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Slack\u30dc\u30c3\u30c8\u3092Azure App Service\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\u30dc\u30c3\u30c8\u3092Azure App Service\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 \u524d\u56de\u306e\u300cSlack\u3067\u30b9\u30ec\u30c3\u30c9\u306b\u8fd4\u4fe1\u3059\u308b\u30dc\u30c3\u30c8\u3092\u30ed\u30fc\u30ab\u30ebPC\u3067\u52d5\u304b\u305d\u3046\u300d\u306b\u304a\u3044\u3066\u3001Slack\u306e\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u3092\u30ed\u30fc\u30ab\u30ebPC\u4e0a\u3067\u52d5\u304b\u3057\u3001Azure","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\/75952","og_locale":"ja_JP","og_type":"article","og_title":"Slack\u30dc\u30c3\u30c8\u3092Azure App Service\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 \u524d\u56de\u306e\u300cSlack\u3067\u30b9\u30ec\u30c3\u30c9\u306b\u8fd4\u4fe1\u3059\u308b\u30dc\u30c3\u30c8\u3092\u30ed\u30fc\u30ab\u30ebPC\u3067\u52d5\u304b\u305d\u3046\u300d\u306b\u304a\u3044\u3066\u3001Slack\u306e\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u3092\u30ed\u30fc\u30ab\u30ebPC\u4e0a\u3067\u52d5\u304b\u3057\u3001Azure","og_url":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/75952","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-12-03T05:00:00+00:00","article_modified_time":"2024-12-06T01:48:03+00:00","og_image":[{"width":1432,"height":764,"url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/2024-11-27_14-19-38.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":"4\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/75952#article","isPartOf":{"@id":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/75952"},"author":{"name":"Daisuke Higuchi","@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/16f1373831fb6fd17387f16ae1195206"},"headline":"Slack\u30dc\u30c3\u30c8\u3092Azure App Service\u3067\u52d5\u304b\u305d\u3046 #slack #ai #langgraph #azure #openai #llm #python","datePublished":"2024-12-03T05:00:00+00:00","dateModified":"2024-12-06T01:48:03+00:00","mainEntityOfPage":{"@id":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/75952"},"wordCount":277,"image":{"@id":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/75952#primaryimage"},"thumbnailUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/2024-11-27_14-19-38.png","articleSection":["AI","Azure","ChatGPT\uff06AI","d-higuchi","LLM","Python"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/75952","url":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/75952","name":"Slack\u30dc\u30c3\u30c8\u3092Azure App Service\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\/75952#primaryimage"},"image":{"@id":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/75952#primaryimage"},"thumbnailUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/2024-11-27_14-19-38.png","datePublished":"2024-12-03T05:00:00+00:00","dateModified":"2024-12-06T01:48:03+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 \u524d\u56de\u306e\u300cSlack\u3067\u30b9\u30ec\u30c3\u30c9\u306b\u8fd4\u4fe1\u3059\u308b\u30dc\u30c3\u30c8\u3092\u30ed\u30fc\u30ab\u30ebPC\u3067\u52d5\u304b\u305d\u3046\u300d\u306b\u304a\u3044\u3066\u3001Slack\u306e\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u3092\u30ed\u30fc\u30ab\u30ebPC\u4e0a\u3067\u52d5\u304b\u3057\u3001Azure","breadcrumb":{"@id":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/75952#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/75952"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/75952#primaryimage","url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/2024-11-27_14-19-38.png","contentUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/2024-11-27_14-19-38.png","width":1432,"height":764},{"@type":"BreadcrumbList","@id":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/75952#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"HOME","item":"https:\/\/www.creationline.com\/tech-blog"},{"@type":"ListItem","position":2,"name":"\u8457\u8005\uff08Author\uff09","item":"https:\/\/www.creationline.com\/tech-blog\/author"},{"@type":"ListItem","position":3,"name":"d-higuchi","item":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi"},{"@type":"ListItem","position":4,"name":"Slack\u30dc\u30c3\u30c8\u3092Azure App Service\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\/75952","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=75952"}],"version-history":[{"count":2,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/75952\/revisions"}],"predecessor-version":[{"id":76184,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/75952\/revisions\/76184"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/media\/75956"}],"wp:attachment":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/media?parent=75952"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/categories?post=75952"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/tags?post=75952"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}