{
  "name": "[hiroshidigital.com] Send Message In Larksuite",
  "nodes": [
    {
      "id": "9fd838b3-18f7-4056-bbb9-8a9fd843590b",
      "name": "When clicking ‘Test workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        240,
        220
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "7afa44a2-28ec-4e3d-a8bd-a63721648eb2",
      "name": "Get Lark Token",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        640,
        220
      ],
      "parameters": {
        "url": "https://open.larksuite.com/open-apis/auth/v3/tenant_access_token/internal",
        "method": "POST",
        "options": {},
        "jsonBody": "={\n  \"app_id\": \"{{ $json.app_id }}\",\n  \"app_secret\": \"{{ $json.app_secret }}\"\n} ",
        "sendBody": true,
        "sendHeaders": true,
        "specifyBody": "json",
        "headerParameters": {
          "parameters": [
            {
              "name": "Content-Type",
              "value": "application/json"
            }
          ]
        }
      },
      "typeVersion": 4.1
    },
    {
      "id": "4e1fdbef-b881-445c-90ce-95bc9b745772",
      "name": "Input",
      "type": "n8n-nodes-base.set",
      "position": [
        440,
        220
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "322bfa44-ee2a-4ddf-b747-0f7f3405e294",
              "name": "app_id",
              "type": "string",
              "value": "cli_8cdb09dec256ca40"
            },
            {
              "id": "c8faab22-235b-412c-8dc8-8142c6e2e0c4",
              "name": "app_secret",
              "type": "string",
              "value": "H5SEZr8O67zuqdIdBKSPhTkoeEBCRNy4"
            },
            {
              "id": "121fcf72-2a13-4082-a66b-47d56bd4a675",
              "name": "chat_id",
              "type": "string",
              "value": "oc_1d97ee99bffdce243a95b4ebe3ddef7a"
            },
            {
              "id": "c22bf4f3-eac7-4c04-8b2e-8c0e5011bc1e",
              "name": "text",
              "type": "string",
              "value": "https://hiroshidigital.com/"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "92a62eef-e8ec-4e31-b70e-a80dd83d3bba",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        380,
        40
      ],
      "parameters": {
        "content": "You can get app_id and app_secret in Lark here: https://open.larksuite.com/"
      },
      "typeVersion": 1
    },
    {
      "id": "9cde6452-7221-4d43-9e68-afa70fdebc27",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        760,
        40
      ],
      "parameters": {
        "content": "You can get chat_id https://open.larksuite.com/api-explorer/"
      },
      "typeVersion": 1
    },
    {
      "id": "87d2cc29-6318-4fb7-b430-f4b825649133",
      "name": "Send Message",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        840,
        220
      ],
      "parameters": {
        "url": "https://open.larksuite.com/open-apis/message/v4/send/",
        "method": "POST",
        "options": {},
        "jsonBody": "={\n  \"chat_id\": \"{{ $('Input').item.json.chat_id }}\",\n  \"msg_type\": \"text\",\n  \"content\": {\n      \"text\": \"{{ $('Input').item.json.text }}\"\n  }\n}",
        "sendBody": true,
        "specifyBody": "json",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth"
      },
      "typeVersion": 4.1
    },
    {
      "id": "9137a20b-6f13-571e-b93e-2f4eff4344e1",
      "name": "Publication · Overview and setup",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -800,
        0
      ],
      "parameters": {
        "content": "# [hiroshidigital.com] Send Message In Larksuite\n\n## Purpose and structure\nThis folder contains the **[hiroshidigital.com] Send Message In Larksuite** workflow. Its executable nodes use `httpRequest`, `manualTrigger`, `set`. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.\n\n## Setup\nImport inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.\n\n## Entry points\nWhen clicking ‘Test workflow’\n\n## Verification\nSanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.\n\n## Attribution\nhttps://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Manual/1505_Manual_Stickynote_Send_Webhook.json\nMIT; preserve source notices.",
        "width": 700,
        "height": 800,
        "color": 1
      }
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "connections": {
    "Input": {
      "main": [
        [
          {
            "node": "Get Lark Token",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Lark Token": {
      "main": [
        [
          {
            "node": "Send Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "Input",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
