Quick feedback after making a rule template using Blockly (yes, it’s possible): Telegram: Process Answer
-
In general it should be fine to just put your placeholders in simple text blocks and the like.
-
If you want to use special blocks like “item X” or “thing Y” like the above (so the user can pick & choose another if desired) then you can’t do it in Blockly directly, so you’ll have to set it to a value first (one of your items or things) and then do a search & replace in your rule code to change that value to the placeholder.
-
DON’T use placeholders in blocks from a block library - string replacements in block libraries use the same {{ }} syntax as rule templates so you’re likely to run into trouble, especially with fields (inputs might work). The best way to avoid that is to declare variables for your parameters, set them using the placeholder at the top of the script and then use the variable. Note that this could be a good practice for all types of scripts in rule templates.