remote-execution Scenario 2 — Webhook Endpoint for Trigger Chain
Written by RTILA X Engineering Team
Intermediate ~6 min
Prerequisites: remote-execution/1
What You'll Learn
Pass parameters to a remote execution
Real-World Use Case
Customising workflows on the fly
LIVE DEMO
Webhook Trigger Chain
Chain: Daily Report
Webhook URL: https://learn.rtila.com/api/webhook/daily-report
Method: POST
EXPECTED OUTPUT
RTILA X PROJECT JSON
{
"name": "Daily_Report_Webhook",
"settings": {
"urls": [
"https://learn.rtila.com/scenarios/remote-execution/2"
]
},
"datasets": {
"webhook_response": {
"item_selector": "css=.webhook-response pre",
"properties": [
{
"name": "json",
"type": "text",
"selector": "css=code"
}
]
}
},
"commands": [
{
"command": "wait_for_selector",
"params": {
"selector": "css=#webhook-date-from"
}
},
{
"command": "fill",
"params": {
"selector": "css=#webhook-date-from",
"value": "2025-01-01"
}
},
{
"command": "fill",
"params": {
"selector": "css=#webhook-date-to",
"value": "2025-01-15"
}
},
{
"command": "click",
"params": {
"selector": "css=#webhook-trigger"
}
},
{
"command": "wait_for_selector",
"params": {
"selector": "css=.webhook-response"
}
},
{
"command": "extract_data",
"params": {
"dataset": "webhook_response"
}
},
{
"command": "comment",
"params": {
"text": "Webhook configuration is done through trigger chains in the RTILA X UI, not via project JSON settings."
}
}
]
}
Webhook Payload
The webhook POST body includes date range parameters. The response JSON contains status, record count, and a report URL.
{
"date_from": "2025-01-01",
"date_to": "2025-01-15"
} 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?
Thank you for your feedback!