{
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "My workflow 6",
  "tags": [],
  "nodes": [
    {
      "id": "3af4e712-e54c-44c7-9fca-02b7ed28d702",
      "name": "Telegram Trigger",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        1200,
        -160
      ],
      "parameters": {
        "updates": [
          "*"
        ],
        "additionalFields": {}
      },
      "typeVersion": 1.2
    },
    {
      "id": "d8a0405f-3cb1-4202-b785-44cbceb338a5",
      "name": "Create a session",
      "type": "n8n-nodes-base.airtop",
      "position": [
        1360,
        -160
      ],
      "parameters": {
        "profileName": "facebook",
        "additionalFields": {},
        "saveProfileOnTermination": true
      },
      "typeVersion": 1
    },
    {
      "id": "92f2efe9-144f-46bc-93f7-d4371b16eb65",
      "name": "Create a window",
      "type": "n8n-nodes-base.airtop",
      "position": [
        1504,
        -160
      ],
      "parameters": {
        "url": "https://facebook.com",
        "resource": "window",
        "additionalFields": {}
      },
      "typeVersion": 1
    },
    {
      "id": "179c6f4c-3a3f-4b7d-bb54-9f7b7fe69a60",
      "name": "Get live view",
      "type": "n8n-nodes-base.airtop",
      "position": [
        1808,
        -160
      ],
      "parameters": {
        "resource": "window",
        "operation": "getLiveView",
        "additionalFields": {}
      },
      "typeVersion": 1
    },
    {
      "id": "cfa30d68-9246-4248-a2ce-8df7ffe1cfe2",
      "name": "Click an element",
      "type": "n8n-nodes-base.airtop",
      "position": [
        2160,
        -160
      ],
      "parameters": {
        "resource": "interaction",
        "additionalFields": {},
        "elementDescription": "\u0427\u0442\u043e \u0443 \u0432\u0430\u0441 \u043d\u043e\u0432\u043e\u0433\u043e,"
      },
      "typeVersion": 1
    },
    {
      "id": "499d222c-166a-4b3a-8411-15628c75818d",
      "name": "Type text",
      "type": "n8n-nodes-base.airtop",
      "position": [
        1184,
        112
      ],
      "parameters": {
        "text": "={{ $('Telegram Trigger').item.json.message.text }}",
        "resource": "interaction",
        "operation": "type",
        "additionalFields": {}
      },
      "typeVersion": 1
    },
    {
      "id": "024e67da-8c99-44c8-9d1a-d079051705eb",
      "name": "Click an element1",
      "type": "n8n-nodes-base.airtop",
      "position": [
        1520,
        112
      ],
      "parameters": {
        "resource": "interaction",
        "additionalFields": {},
        "elementDescription": "\u0434\u0430\u043b\u0435\u0435"
      },
      "typeVersion": 1
    },
    {
      "id": "c109e780-bc96-4499-bed8-867f145383bf",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        2336,
        -160
      ],
      "parameters": {
        "amount": 3
      },
      "typeVersion": 1.1
    },
    {
      "id": "f2133d2d-7074-40f1-845a-6066092c12ca",
      "name": "Wait1",
      "type": "n8n-nodes-base.wait",
      "position": [
        1344,
        112
      ],
      "parameters": {
        "amount": 2
      },
      "typeVersion": 1.1
    },
    {
      "id": "166c1075-595d-4429-86bc-92249ace1858",
      "name": "Wait2",
      "type": "n8n-nodes-base.wait",
      "position": [
        1664,
        -160
      ],
      "parameters": {
        "amount": 1
      },
      "typeVersion": 1.1
    },
    {
      "id": "e2ef934a-c6d7-43a7-8b6e-9a65aa5f4e66",
      "name": "Wait3",
      "type": "n8n-nodes-base.wait",
      "position": [
        1984,
        -160
      ],
      "parameters": {
        "amount": 3
      },
      "typeVersion": 1.1
    },
    {
      "id": "b1f5724f-2ec4-4f71-b7c6-e51da033ce62",
      "name": "Click an element2",
      "type": "n8n-nodes-base.airtop",
      "position": [
        1680,
        112
      ],
      "parameters": {
        "resource": "interaction",
        "additionalFields": {},
        "elementDescription": "\u041e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u0442\u044c"
      },
      "typeVersion": 1
    },
    {
      "id": "000ebe74-809e-4036-9fc4-5f4841e85690",
      "name": "Click an element3",
      "type": "n8n-nodes-base.airtop",
      "position": [
        1840,
        112
      ],
      "parameters": {
        "resource": "interaction",
        "additionalFields": {},
        "elementDescription": "1 \u043c\u0438\u043d"
      },
      "typeVersion": 1
    },
    {
      "id": "4792ffd6-99c4-46c0-8117-859084808e5b",
      "name": "Click an element4",
      "type": "n8n-nodes-base.airtop",
      "position": [
        2000,
        112
      ],
      "parameters": {
        "resource": "interaction",
        "additionalFields": {},
        "elementDescription": "\u041a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u043a"
      },
      "typeVersion": 1
    },
    {
      "id": "36f85924-b795-4415-8ff2-333a17baead5",
      "name": "Type text1",
      "type": "n8n-nodes-base.airtop",
      "position": [
        2160,
        112
      ],
      "parameters": {
        "text": "@\u0432\u0441\u0435 @\u043f\u043e\u0434\u043f\u0438\u0441\u0447\u043a\u0438",
        "resource": "interaction",
        "operation": "type",
        "pressEnterKey": true,
        "additionalFields": {}
      },
      "typeVersion": 1
    },
    {
      "id": "436d8f43-a73c-485b-a985-531f14f8e46c",
      "name": "Send a text message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2336,
        112
      ],
      "parameters": {
        "text": "\u2705 Facebook: post published.",
        "chatId": "={{ $('Telegram Trigger').item.json.message.chat.id }}",
        "additionalFields": {
          "appendAttribution": false
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "a1ea0671-0d52-46db-b6c1-a1f1a35e4035",
      "name": "README",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        208,
        -400
      ],
      "parameters": {
        "color": 6,
        "width": 868,
        "height": 1032,
        "content": "## Overview\nThis template helps you **automatically post messages from Telegram to Facebook** using **Airtop no-code browser automation**.  \nIt is ideal for creators, small businesses, recruiters, and social media managers who want to save time and keep their content consistent across platforms without manual copy-pasting.\n\n## Why this is valuable\nCross-posting between Telegram and Facebook is often repetitive. Doing it manually wastes valuable time, introduces mistakes, and slows down audience engagement.  \nBy automating this process with n8n and Airtop:\n- You publish instantly from **Telegram to Facebook**.  \n- All followers on both platforms receive the same updates.  \n- Teams avoid context switching between apps.  \n- Your workflow remains **no-code**, reliable, and easy to customize.  \n\nThis makes the template a great fit for marketing teams, community managers, e-commerce sellers, and content creators who want to grow engagement and visibility with minimal effort.\n\n## How it works\n1. A **Telegram Trigger** captures a new message.  \n2. **Airtop Session** opens a Facebook browser session.  \n3. The bot **clicks the composer**, types the Telegram message, and presses **Publish**.  \n4. Optional actions include tagging users, posting comments, or adding hashtags.  \n5. A **Telegram confirmation** notifies you that the post is live.\n\n## Setup instructions\n1. Import the workflow into n8n.  \n2. Add credentials: Telegram Bot Token + Airtop API key.  \n3. Run the workflow once and log into Facebook inside Airtop (session is saved).  \n4. Send any text to your Telegram bot \u2192 it posts directly to Facebook.  \n\n## Customization\n- Change selectors to post into groups or pages.  \n- Add Airtop nodes to upload media.  \n- Append hashtags or mentions.  \n- Use Cron trigger for scheduled posts.  \n- Duplicate sessions for multi-account setups.  \n\n## Troubleshooting\n- If typing fails, update Airtop selectors.  \n- Enable \u201csaveProfileOnTermination\u201d to avoid relogin.  \n- Increase Wait times for slow connections.  \n\n"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "",
  "connections": {
    "Wait": {
      "main": [
        [
          {
            "node": "Type text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait1": {
      "main": [
        [
          {
            "node": "Click an element1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait2": {
      "main": [
        [
          {
            "node": "Get live view",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait3": {
      "main": [
        [
          {
            "node": "Click an element",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Type text": {
      "main": [
        [
          {
            "node": "Wait1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Type text1": {
      "main": [
        [
          {
            "node": "Send a text message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get live view": {
      "main": [
        [
          {
            "node": "Wait3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create a window": {
      "main": [
        [
          {
            "node": "Wait2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Click an element": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create a session": {
      "main": [
        [
          {
            "node": "Create a window",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "Create a session",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Click an element1": {
      "main": [
        [
          {
            "node": "Click an element2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Click an element2": {
      "main": [
        [
          {
            "node": "Click an element3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Click an element3": {
      "main": [
        [
          {
            "node": "Click an element4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Click an element4": {
      "main": [
        [
          {
            "node": "Type text1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}