Tags
What are tags and what are they used for in an automated task?
Tags are dynamic variables that allow you to personalize and transfer data between different steps of an automated task. These tags facilitate the integration of data from one service to another, enabling the creation of more efficient and personalized workflows.
How do tags work in an automated task?
Each step of an automated task can generate tags related to the operation it performs. For example, when searching for products on Amazon, the step could return tags such as:
{{title}}: The product title.
{{price}}: The product price.
{{original_price}}: The original price of the product.
{{image_url}}: The product image URL.
How are tags used in an automated task?
Tags can be referenced in subsequent steps of the task to use the obtained data. For example, if you extract products from Amazon and in the next step you want to post them on Telegram, you could configure the message as follows:
{{title}}
Now for only {{price}}
Before {{original_price}}
See more: {{image_url}}
Special tags in Botize
Botize includes some special tags that can be very useful:
{date}: Contains the current date.
{time}: Contains the current time.
The time zone will be determined by the one indicated within your automated task.
Tags and Mustache format
Botize accepts the Mustache format so you can have greater control over your tags. For example, if you are extracting products from Amazon and want to post the original price only if it exists, you can use the Mustache format like this:
{{#original_price}}Before: {{.}}€{{/original_price}}
Tags with lists of values or complex objects
Botize accepts the Mustache format for tags that contain lists of values or more complex objects. For example, if you extract a list of H2 subtitles with the HTML parsing tool and store them in a tag called {{subtitles}}, you can use the tag {{subtitles.0}} to refer to the first subtitle, or the tag {{subtitles.1}} to refer to the second subtitle.