ردود Google Forms في Slack

كل رد جديد على Google Form يُنشر في قناة Slack.

سهل توفّر ~2 ساعة شهريًا الإنتاجيةبواسطة فريق Flowngn

تعمل مع n8n · Make · Zapier

كيف تعمل

المشغّل: Google Sheets — صف جديد في جدول ردود النموذج
  1. راقب الجدول المرتبط بنموذج Google.
  2. رتّب كل إجابة كسطر: السؤال — الإجابة.
  3. أرسلها إلى قناة Slack.

المخطط

GNew responseGoogle Sheets Trigger{ }Format answersCodeSPost to #requestsSlack
مشغّل تطبيق كود

الكود

كود JavaScript المستخدم في خطوات Code، وهو مضمَّن بالفعل في القالب بالأسفل.

Format answers · عقدة Code
// Mode: Run Once for Each Item
// Turns a form response row into readable "question — answer" lines.
const lines = Object.entries($json)
  .filter(([key, value]) => key !== "row_number" && value !== "")
  .map(([question, answer]) => `*${question}*\n${answer}`);

return { json: { text: `📝 New form response\n\n${lines.join("\n\n")}` } };

ابنِها بأداتك

اختر أداتك — نفس الأتمتة، خطوة بخطوة.

انسخه والصقه مباشرة في مساحة عمل n8n (Ctrl+V)، أو حمّله واستخدم Import from File. بعد ذلك اربط حساباتك واستبدل كل قيمة تبدأ بـ YOUR_.

ملف Workflow JSON
عرض الكود (117 سطر)
{
  "name": "ردود Google Forms في Slack (Flowngn)",
  "nodes": [
    {
      "parameters": {
        "content": "## ردود Google Forms في Slack\nكل رد جديد على Google Form يُنشر في قناة Slack.\n\n**Setup**\n1. Open each node and connect your own credentials.\n2. Replace every YOUR_… placeholder.\n3. Test once, then activate.\n\nFree template from Flowngn",
        "height": 260,
        "width": 340
      },
      "id": "26068bc2-eac9-4e99-a8cb-b57353c0b957",
      "name": "Setup notes",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -420,
        -60
      ]
    },
    {
      "parameters": {
        "pollTimes": {
          "item": [
            {
              "mode": "everyMinute"
            }
          ]
        },
        "documentId": {
          "__rl": true,
          "value": "YOUR_SPREADSHEET_ID",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "Form Responses 1",
          "mode": "name"
        },
        "event": "rowAdded",
        "options": {}
      },
      "id": "26068bc2-eac9-4e99-a8cb-b57353c0b957",
      "name": "New response",
      "type": "n8n-nodes-base.googleSheetsTrigger",
      "typeVersion": 1,
      "position": [
        0,
        0
      ]
    },
    {
      "parameters": {
        "jsCode": "// Mode: Run Once for Each Item\n// Turns a form response row into readable \"question — answer\" lines.\nconst lines = Object.entries($json)\n  .filter(([key, value]) => key !== \"row_number\" && value !== \"\")\n  .map(([question, answer]) => `*${question}*\\n${answer}`);\n\nreturn { json: { text: `📝 New form response\\n\\n${lines.join(\"\\n\\n\")}` } };",
        "mode": "runOnceForEachItem"
      },
      "id": "26068bc2-eac9-4e99-a8cb-b57353c0b957",
      "name": "Format answers",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        300,
        0
      ]
    },
    {
      "parameters": {
        "select": "channel",
        "channelId": {
          "__rl": true,
          "value": "#requests",
          "mode": "name"
        },
        "text": "={{ $json.text }}",
        "otherOptions": {}
      },
      "id": "26068bc2-eac9-4e99-a8cb-b57353c0b957",
      "name": "Post to #requests",
      "type": "n8n-nodes-base.slack",
      "typeVersion": 2.2,
      "position": [
        600,
        0
      ]
    }
  ],
  "connections": {
    "New response": {
      "main": [
        [
          {
            "node": "Format answers",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format answers": {
      "main": [
        [
          {
            "node": "Post to #requests",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "meta": {
    "templateCredsSetupCompleted": false
  },
  "tags": []
}

← افتحها في ساحة التجربة لتعديلها

نصائح

  • في Google Forms: Responses ← Link to Sheets لإنشاء الجدول.

أتمتات مشابهة