Operations (sample payloads)

Main operations

Execute Script

Execute some python code. Sample Input

{
    "variables": [
        \{
            "name": "name",
            "value": "John Doe"
        \},
        \{
            "name": "age",
            "value": 30
        \},
        \{
            "name": "city",
            "value": "New York"
        \}
    ],
    "script": "def executeScript(input):\n    name = input['name']\n    age = input['age']\n    city = input['city']\n    return f'{name} is {age} years old and lives in {city}.'"
}

Sample Output

{
    "result": "John Doe is 30 years old and lives in New York."
}

Was this page helpful?