Skip to main content

scheduling Scenario 5 — Auction Bid Monitor with Notification

Written by RTILA X Engineering Team

Advanced ~10 min
Prerequisites: scheduling/3 scheduling/4

What You'll Learn

Monitor scheduled jobs and handle failures

Real-World Use Case

Building resilient automation systems

LIVE DEMO

Vintage Watch Collection

Current Bids: 12$450.002h 34m remaining
EXPECTED OUTPUT

RTILA X PROJECT JSON

    {
  "name": "Auction_Bid_Monitor",
  "settings": {
    "urls": [
      "https://learn.rtila.com/scenarios/scheduling/5"
    ]
  },
  "datasets": {},
  "commands": [
    {
      "command": "wait_for_selector",
      "params": {
        "selector": "css=.auction-item",
        "iframe": "",
        "timeout": 30000
      }
    },
    {
      "command": "get_text",
      "params": {
        "selector": "css=.bid-count",
        "output_variable": "initial_bids"
      }
    },
    {
      "command": "get_text",
      "params": {
        "selector": "css=.current-bid",
        "output_variable": "initial_price"
      }
    },
    {
      "command": "wait",
      "params": {
        "timeout": 5000
      }
    },
    {
      "command": "get_text",
      "params": {
        "selector": "css=.bid-count",
        "output_variable": "updated_bids"
      }
    },
    {
      "command": "get_text",
      "params": {
        "selector": "css=.current-bid",
        "output_variable": "updated_price"
      }
    },
    {
      "command": "if",
      "params": {
        "condition": {
          "type": "script",
          "expression": "${updated_bids} > ${initial_bids}"
        },
        "then": [
          {
            "command": "comment",
            "params": {
              "text": "Send Telegram notification: new bid detected"
            }
          }
        ],
        "else": [
          {
            "command": "comment",
            "params": {
              "text": "No new bids"
            }
          }
        ]
      }
    }
  ]
}
  

Bid monitoring can be scheduled to check an auction periodically. This example records the initial bid metrics, waits five seconds, reads the updated values, and alerts if the bid count increased.

Did you complete this scenario?

Ready to run this automation?

Copy the project JSON above, open RTILA X, create a new project, and paste it.

This scenario covers 2 RTILA X commands and is referenced in 2 learning articles.

Continue Learning

Was this helpful?