Skip to main content

remote-execution Scenario 1 — Remote API Trigger with Variables

Written by RTILA X Engineering Team

Beginner ~4 min

What You'll Learn

Trigger a workflow via the remote API

Real-World Use Case

Integrating RTILA X with external systems

LIVE DEMO

Remote Execution API

Project: Price Monitor

API Key: pm-abc-123-def

Endpoint: POST /api/remote

EXPECTED OUTPUT

RTILA X PROJECT JSON

    {
  "name": "Price_Monitor_Remote_Trigger",
  "settings": {
    "urls": [
      "https://learn.rtila.com/scenarios/remote-execution/1"
    ],
    "headless": false,
    "navigation_timeout": 30000,
    "max_concurrent_workers": 1,
    "humanoidEnabled": true,
    "humanoidSensitivity": "medium"
  },
  "datasets": {
    "remote_output": {
      "item_selector": "css=table.remote-output tbody tr",
      "properties": [
        {
          "name": "field",
          "type": "text",
          "selector": "css=td:nth-child(1)"
        },
        {
          "name": "value",
          "type": "text",
          "selector": "css=td:nth-child(2)"
        }
      ]
    }
  },
  "commands": [
    {
      "command": "goto",
      "params": {
        "url": "https://learn.rtila.com/scenarios/remote-execution/1"
      }
    },
    {
      "command": "wait_for_selector",
      "params": {
        "selector": "css=#remote-product-url"
      }
    },
    {
      "command": "fill",
      "params": {
        "selector": "css=#remote-product-url",
        "value": "https://shop.example.com/product/101"
      }
    },
    {
      "command": "fill",
      "params": {
        "selector": "css=#remote-threshold",
        "value": "50.00"
      }
    },
    {
      "command": "click",
      "params": {
        "selector": "css=#remote-trigger"
      }
    },
    {
      "command": "wait_for_selector",
      "params": {
        "selector": "css=.remote-result"
      }
    },
    {
      "command": "extract_data",
      "params": {
        "dataset": "remote_output"
      }
    }
  ],
  "remote": {
    "enabled": true,
    "api_key": "pm-abc-123-def"
  }
}
  

Remote Execution cURL Command

curl -X POST 'https://learn.rtila.com/api/remote' -H "Content-Type: application/json" -d '{"api_key":"pm-abc-123-def","variables":{"product_url":"https://shop.example.com/product/101","threshold":"50.00"}}'

Remote execution accepts variables over the API. The project is queued and the returned job ID can be used to poll for results.

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?