{
  "_note": "Importable n8n workflow template. After import: (1) fill the 'Avito Engine API' credential (Base URL = http://avito-engine:8000, API Token = your ENGINE_API_TOKEN); (2) fill the Telegram credential (bot token + chat id); (3) adjust location/category/query; (4) Activate. The exact poll cadence is set in the trigger's UI ('Polling interval').",
  "name": "Avito new ad \u2192 Telegram",
  "nodes": [
    {
      "parameters": {
        "location": "moskva",
        "category": "telefony",
        "query": "iphone 13",
        "streamKey": "",
        "withDetail": false,
        "pollTimes": {
          "item": [
            {
              "mode": "everyMinute"
            }
          ]
        }
      },
      "name": "Avito Trigger",
      "type": "avitoTrigger",
      "typeVersion": 1,
      "position": [
        240,
        300
      ],
      "credentials": {
        "avitoApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "chatId": "={{ $node['Avito Trigger'].json['chatId'] || 'YOUR_CHAT_ID' }}",
        "text": "=\ud83d\udcf1 *{{ $json.title }}*\n\ud83d\udcb2 {{ $json.price_full_string || $json.price }} \u20bd\n\ud83d\udccd {{ $json.region }}\n\u23f0 {{ $json.published_at }}\n\ud83d\udd17 {{ $json.url }}",
        "additionalFields": {
          "parse_mode": "MarkdownV2"
        }
      },
      "name": "Telegram",
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.2,
      "position": [
        480,
        300
      ],
      "credentials": {
        "telegramApi": {
          "name": "<your credential>"
        }
      }
    }
  ],
  "connections": {
    "Avito Trigger": {
      "main": [
        [
          {
            "node": "Telegram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  }
}